lys-secrets

command
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL