Commit 1136db9ac1

1136db9ac14f93d2ef778c0b591f9c5ec322ed1c

parent: 8f2ce3e9ae

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-26 16:26 UTC

Drop the login keychain note: the download version keeps passphrases in the protected Keychain

Layout: unified · split

Changed files (6)
Sources/OrgApp/CryptPassphrases.swift +1 −16 · view
@@ -61,21 +61,6 @@ public final class CryptPassphrases {
61 defaults.set(setting.rawValue, forKey: Self.settingKey) 61 defaults.set(setting.rawValue, forKey: Self.settingKey)
62 } 62 }
63 63
64 /// Whether this build can keep passphrases limited to this device: the Developer ID Mac app
65 /// has no Keychain entitlement and keeps them in the login keychain.
66 public static var protectsItems: Bool {
67 #if os(macOS) && !APPSTORE
68 false
69 #else
70 true
71 #endif
72 }
73
74 /// Said beside the setting where `protectsItems` is false.
75 public static var caveat: String {
76 String(localized: "This version of orgstar keeps remembered passphrases in your login keychain without limiting them to this Mac; Touch ID or your password is still asked before one is used.")
77 }
78
79 /// Face ID, Touch ID or Optic ID, as this device has it; the Mac's is Touch ID. 64 /// Face ID, Touch ID or Optic ID, as this device has it; the Mac's is Touch ID.
80 public static var biometryName: String { 65 public static var biometryName: String {
81 #if os(macOS) 66 #if os(macOS)
@@ -228,7 +213,7 @@ public final class CryptPassphrases {
228 213
229/// The Keychain. New items are this device only, unlocked, after user presence. Items earlier 214/// The Keychain. New items are this device only, unlocked, after user presence. Items earlier
230/// versions saved without that move over at their first read. A build without a Keychain 215/// versions saved without that move over at their first read. A build without a Keychain
231/// entitlement (the Developer ID Mac app) can't make such items and keeps the old kind. 216/// entitlement (a local build) can't make such items and keeps the old kind.
232@MainActor 217@MainActor
233public final class SystemKeychain: PassphraseKeychain { 218public final class SystemKeychain: PassphraseKeychain {
234 public init() {} 219 public init() {}
Sources/OrgApp/DecryptSettings.swift −1 · view
@@ -25,7 +25,6 @@ public struct DecryptSettings: View {
25 } footer: { 25 } footer: {
26 VStack(alignment: .leading, spacing: 6) { 26 VStack(alignment: .leading, spacing: 6) {
27 Text(CryptPassphrases.explanation) 27 Text(CryptPassphrases.explanation)
28 if !CryptPassphrases.protectsItems { Text(CryptPassphrases.caveat) }
29 } 28 }
30 .font(.caption) 29 .font(.caption)
31 .foregroundStyle(.secondary) 30 .foregroundStyle(.secondary)
Tests/OrgAppTests/CryptReviewTests.swift −1 · view
@@ -294,7 +294,6 @@ struct CryptReviewTests {
294 session.cancelUnlock() 294 session.cancelUnlock()
295 #expect(session.passphrases.context(for: path.path) !== context) 295 #expect(session.passphrases.context(for: path.path) !== context)
296 session.passphrases.endSession(for: path.path) 296 session.passphrases.endSession(for: path.path)
297 #expect(!CryptPassphrases.protectsItems)
298 } 297 }
299 298
300 // 3b 299 // 3b
docs/manual/guide/04-outlines.org +1 −1 · view
@@ -995,7 +995,7 @@ The decrypted text is kept in memory only:
995- Recovery versions and hourly snapshots are kept encrypted with the file's passphrase, and Recovery Versions… shows them decrypted. Changes made to the file elsewhere are merged in memory, and a conflict is compared in memory. 995- Recovery versions and hourly snapshots are kept encrypted with the file's passphrase, and Recovery Versions… shows them decrypted. Changes made to the file elsewhere are merged in memory, and a conflict is compared in memory.
996- The index, search, Spotlight, Quick Look, the agenda, widgets and the watch don't read the file's text. iCalendar export and publishing leave it out, and Emacs isn't given a copy of it. A clocked heading shows as "Encrypted entry" outside the editor. Handoff doesn't offer the file, and Share Subtree… refuses its entries. 996- The index, search, Spotlight, Quick Look, the agenda, widgets and the watch don't read the file's text. iCalendar export and publishing leave it out, and Emacs isn't given a copy of it. A clocked heading shows as "Encrypted entry" outside the editor. Handoff doesn't offer the file, and Share Subtree… refuses its entries.
997- Archiving from =NAME.org.gpg= goes to =NAME_archive.org.gpg=, encrypted with the same passphrase (Org would write =NAME.org.gpg_archive=, unencrypted). Entries aren't refiled or copied from it to a file that isn't encrypted. 997- Archiving from =NAME.org.gpg= goes to =NAME_archive.org.gpg=, encrypted with the same passphrase (Org would write =NAME.org.gpg_archive=, unencrypted). Entries aren't refiled or copied from it to a file that isn't encrypted.
998- Saved passphrases are kept by the file's path, on this device only, readable while it's unlocked and after Face ID, Touch ID or the device password; renaming the file forgets it. Passphrases saved by earlier versions move to this kind of item the first time they're used with the setting on. The version of orgstar downloaded from the website can't make such items (it has no Keychain entitlement): it keeps saved passphrases in the login keychain, not limited to this Mac, still asking for Touch ID or the password before one is used, and says so under Use Touch ID to Decrypt. 998- Saved passphrases are kept by the file's path, on this device only, readable while it's unlocked and after Face ID, Touch ID or the device password; renaming the file forgets it. Passphrases saved by earlier versions move to this kind of item the first time they're used with the setting on.
999 999
1000=age= files (=.age=) aren't supported. 1000=age= files (=.age=) aren't supported.
1001 1001
docs/manual/guide/13-configuration.org +1 −1 · view
@@ -173,7 +173,7 @@ The footer shows the path of =capture.toml=. Templates are covered in [[file:08-
173| Use Touch ID to Decrypt | On or off | Off, asked the first time a passphrase works | 173| Use Touch ID to Decrypt | On or off | Off, asked the first time a passphrase works |
174| Saved Passphrases | Forget, for each file | | 174| Saved Passphrases | Forget, for each file | |
175 175
176With it on, a passphrase typed for an encrypted entry or file is saved in the Keychain, and Touch ID or your password unlocks it from then on. With it off, nothing is saved in the Keychain or read from it. Turning it off asks first, saying how many saved passphrases it removes. Saved Passphrases lists the files with a saved passphrase. In the download version, a note under the switch says passphrases are kept in the login keychain, not limited to this Mac. 176With it on, a passphrase typed for an encrypted entry or file is saved in the Keychain, and Touch ID or your password unlocks it from then on. With it off, nothing is saved in the Keychain or read from it. Turning it off asks first, saying how many saved passphrases it removes. Saved Passphrases lists the files with a saved passphrase.
177 177
178The choice is kept on this Mac, not in =config.toml=, so it isn't synced and can't be changed by editing a file. On iPhone and iPad the same switch, Use Face ID to Decrypt, is in the Settings tab. See [[file:04-outlines.org::*Face ID and Touch ID][Face ID and Touch ID]]. 178The choice is kept on this Mac, not in =config.toml=, so it isn't synced and can't be changed by editing a file. On iPhone and iPad the same switch, Use Face ID to Decrypt, is in the Settings tab. See [[file:04-outlines.org::*Face ID and Touch ID][Face ID and Touch ID]].
179 179
l10n/Localizable.xcstrings −34 · view
@@ -46311,40 +46311,6 @@
46311 } 46311 }
46312 } 46312 }
46313 }, 46313 },
46314 "This version of orgstar keeps remembered passphrases in your login keychain without limiting them to this Mac; Touch ID or your password is still asked before one is used.": {
46315 "localizations": {
46316 "de": {
46317 "stringUnit": {
46318 "state": "translated",
46319 "value": "Diese Version von orgstar bewahrt gemerkte Passwörter im Anmeldeschlüsselbund auf, ohne sie auf diesen Mac zu beschränken; Touch ID oder dein Passwort wird trotzdem abgefragt, bevor eines verwendet wird."
46320 }
46321 },
46322 "es": {
46323 "stringUnit": {
46324 "state": "translated",
46325 "value": "Esta versión de orgstar guarda las frases de contraseña recordadas en tu llavero de inicio de sesión sin limitarlas a este Mac; aun así se pide Touch ID o tu contraseña antes de usar una."
46326 }
46327 },
46328 "fr": {
46329 "stringUnit": {
46330 "state": "translated",
46331 "value": "Cette version d'orgstar garde les phrases secrètes mémorisées dans votre trousseau de session sans les limiter à ce Mac ; Touch ID ou votre mot de passe est quand même demandé avant d'en utiliser une."
46332 }
46333 },
46334 "ja": {
46335 "stringUnit": {
46336 "state": "translated",
46337 "value": "このバージョンのorgstarは、保存したパスフレーズをこのMacに限定せずログインキーチェーンに保持します。使用する前にTouch IDまたはパスワードを求めます。"
46338 }
46339 },
46340 "pt-BR": {
46341 "stringUnit": {
46342 "state": "translated",
46343 "value": "Esta versão do orgstar guarda as senhas lembradas nas suas chaves de início de sessão sem limitá-las a este Mac; o Touch ID ou sua senha ainda são pedidos antes de usar uma."
46344 }
46345 }
46346 }
46347 },
46348 "This view can't be saved from here; write it in views.toml.": { 46314 "This view can't be saved from here; write it in views.toml.": {
46349 "localizations": { 46315 "localizations": {
46350 "de": { 46316 "de": {
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form