You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep: notesd keeps device tokens in a plain file when no Secret Service answers, but ADR-0016, ADR-0031 and the README say the keyring #249
Kind: inconsistency. Severity: medium (where a device's sync token is kept).
Rule:
docs/adr/0016-... lines 43-46: "The Secret Service keeps the token on the device ... FROSTNOTES_SECRETS=file keeps it in a 0600 file for CI and development."
docs/adr/0031-... line 118 and lines 131-132: "Device tokens go to the Secret Service's default collection ... FROSTNOTES_SECRETS=file (flatpak override --env=…) still keeps tokens in a 0600 file."
README.md lines 81-82: "A device's sync token stays in the Secret Service, in an item labeled Frostnotes: …."
Where (commit 83fb2a5):
internal/secrets/open.go lines 31-32: when no Secret Service answers, Open logs "no Secret Service; keeping secrets in a file" and returns the file store, without FROSTNOTES_SECRETS=file.
Why it matters: On a desktop with no Secret Service, the token goes to a plain file with only a log line, while the ADRs and the README say it goes to the keyring unless the user sets the override. The pairing probe of ADR-0031 then passes on the file store, so the user is not told. The README's note on --delete-data is also wrong for such a device: the token is in the data directory, not in the keyring.
Suggested fix: Needs a decision: either remove the automatic fallback (fail as ErrNoKeyring does and name FROSTNOTES_SECRETS=file), or record the fallback in an ADR and say it in the README and the app.
Activity
fix(secrets): keep no device token in a plain file in the Flatpak unl…