Skip to content

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

Closed

Description

@frostyard-machines

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):

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

  1. added
    sweep
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sweep

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions