Repository navigation
fix(linux): persist credentials in Secret Service with keyutils as cache - #304
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue / Issue relacionada
Closes #302. Spec:
odd/tasks/302-linux-keyring-persistence.md(S1–S6, S3b).Scope / Alcance
On Linux, credentials were stored with
keyringlinux-native= kernel keyutils, which «is completely in-memory and will not persist across reboots». This switches to keyutils as a cache plus Secret Service (GNOME Keyring / KWallet) as the persistent store.src-tauri/Cargo.toml:linux-native→linux-native-sync-persistent+crypto-rust(encrypted D-Bus transfer); system libdbus, no vendored C.windows-native/apple-nativeunchanged.src-tauri/src/secrets.rs(Linux-only,cfg(target_os = "linux")):SsCredential(keyutils_persistent.rs:170-173);setand delete, so a promotion can never overwrite or resurrect a value saved/deleted concurrently; Secret Service is checked once per key per process.libdbus-1-devinlinux-ci.yml,linux-pr-ci.yml,linux-release.ymland the devcontainer. New isolated#[ignore]smokes read directly from Secret Service (the old round trip also passed with keyutils) and are wired into the "Secret Service smoke" step oflinux-ci.yml.docs/build-linux.mdnow describe the real store.Dependencies: Windows and macOS dependency trees are identical to
main. Newly compiled on Linux only:dbus-secret-service4.1.0 and its crypto crates (aes,cbc,cipher,hkdf,hmac,num*, …).zbus 4/secret-serviceappear inCargo.lockbut are compiled on no target.Review slices:
986517e(CI deps),14fa47f(fix + tests, high-risk unit on its own),cdaac14(docs),b2a2d13(ODD log).Acceptance and validation / Aceptación y validación
cargo test --lockedcargo fmt --all -- --checknpm testlinux_promotion, 4 threads)Remaining / Pendiente
linux-ci.ymlon this branch (with_bundle: testsis enough): the live Secret Service smokes only run there.linux-release.yml.