Skip to content

Store application secrets in the OS keychain #3597

Closed

Description

@pbek

QOwnNotes currently stores several secrets in the settings file encrypted through CryptoService/SimpleCrypt. The SimpleCrypt key is stored in the same settings file, so this only obfuscates the values and does not provide secure secret storage.

This feature request tracks migrating secret storage to qtkeychain so tokens, passwords, and API keys are stored in the platform keychain/credential store. Existing SimpleCrypt-backed settings should be migrated into the keychain on first use.

Activity

  1. added
    Type: Feature
    on May 5, 2026
  2. added 8 commits that reference this issue on May 5, 2026
  3. pbek commented on May 5, 2026

    @pbek
    OwnerAuthor

    26.5.4

    • Fixed a startup crash when the Markdown LSP server initialized while qtkeychain
      secret migration was running a nested event loop during main window setup;
      Markdown LSP startup is now delayed until the status bar exists, fixing the
      regression from the keychain changes (for #3597)

    26.5.3

    • Secrets such as cloud connection passwords, proxy passwords, API keys, and
      scripting secret settings are now stored in the operating system keychain via
      qtkeychain instead of being obfuscated with SimpleCrypt in the settings file;
      existing SimpleCrypt-backed secrets are migrated to the keychain automatically
      when possible (for #3597)
  4. added a commit that references this issue on May 6, 2026
  5. pbek commented on May 6, 2026

    @pbek
    OwnerAuthor

    26.5.5

    • Keychain secrets are now deleted together with their references when removing
      scripts, cloud connections, settings groups, or all settings, preventing stale
      qtkeychain entries from being left behind (for #3597)
  6. added 2 commits that reference this issue on May 7, 2026
  7. pbek commented on May 7, 2026

    @pbek
    OwnerAuthor

    26.5.6

    • Fixed a possible crash when opening the settings dialog by synchronizing access
      to the shared settings cache while background tasks may read or write settings
      (for #3597)
  8. added 2 commits that reference this issue on Jun 25, 2026
  9. pbek commented on Jun 25, 2026

    @pbek
    OwnerAuthor

    26.6.9

    • Improved secret storage fallback handling by keeping legacy SimpleCrypt
      encryption compatible with pre-qtkeychain secrets and migrating old plaintext
      secret settings to encrypted storage even when the desktop keychain is
      unavailable (for #3597)
  10. added a commit that references this issue on Jun 25, 2026
  11. rakekniven commented on Sep 22, 2026

    @rakekniven
    Contributor

    I was a bit irritated because after the first start with the migration I was asked for my password three times.
    Did not enter anything out of caution and at each start always came the dialogue three times.

    After reading this issue, the matter is so far clear.

    Idea: Show infobox before migration starts and the keychain dialog comes up.

  12. pbek commented on Sep 22, 2026

    @pbek
    OwnerAuthor

    26.9.10

    • A notice is now shown before stored passwords and API keys are migrated to the
      operating system keychain, explaining the system password prompts that may follow
      (for #3597)
  13. added a commit that references this issue on Sep 22, 2026
  14. rakekniven commented on Sep 25, 2026

    @rakekniven
    Contributor

    Very nice

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

    Type: Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions