Documentation
¶
Overview ¶
Command lys-secrets serves the freedesktop Secret Service (org.freedesktop.secrets) for a lys desktop: libsecret, Chromium and Electron apps, git's credential helper and the portal's Secret backend keep their secrets in collections encrypted at rest under $XDG_DATA_HOME/lys-secrets. It also holds the user's Bitwarden vault (dev.stubbe.lys.Vault1): its account under $XDG_STATE_HOME/lys-secrets/bitwarden, the credential that renews it in the Secret Service's default collection. It is a small process of its own, apart from the shell, so the code holding unlocked keys is only this.
lys-secrets [--unlock-fd N] [--collection-lock-after D] [--collection-lock-on-screen-lock]
[--confirm-foreign-reads] [--ssh-agent]
[--vault-lock-after D] [--vault-sync-interval D] [--vault-collection-folder NAME]
The login collection unlocks with the password the user logs in or unlocks the session with: lys-login, at both its login and its lock screen, sends it over the control socket at $XDG_RUNTIME_DIR/lys-secrets/control, and whatever starts this process with the password in hand may write it to an inherited descriptor (--unlock-fd). When another provider already owns org.freedesktop.secrets, lys-secrets logs who and serves the vault alone; when another lys-secrets serves the vault, it exits.
With --ssh-agent it also serves the SSH agent protocol on $XDG_RUNTIME_DIR/lys-secrets/ssh, for the keys of ~/.ssh and those added with ssh-add, remembering key passphrases in the login collection, and hands that socket to the session as SSH_AUTH_SOCK.
lys-secrets pinentry (or pinentry-lys, a link to lys-secrets)
is GnuPG's pinentry (pinentry-program in gpg-agent.conf): it asks for passphrases through the desktop's dialog and can remember them in the login collection, under pinentry-gnome3's org.gnupg.Passphrase schema.