secrets/

directory
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT

README

lys-secrets

lys-secrets

The freedesktop Secret Service and Bitwarden vault of lys.

Documentation

lys-secrets serves org.freedesktop.secrets for libsecret (secret-tool), Chromium and Electron apps, git-credential-libsecret, python-secretstorage and the Secret portal, with collections encrypted at rest. It also serves your Bitwarden vault (dev.stubbe.lys.Vault1) to lys-shell, and can act as SSH agent and GnuPG pinentry. Password prompts use the desktop's dialogs.

Any program running as you can read an unlocked collection; see How secrets are protected.

Install

Disable any other Secret Service provider first.

  • NixOS / home-manager: import lys.nixosModules.lys-secrets or lys.homeModules.lys-secrets from github:stubbedev/lys and set services.lys-secrets.enable = true;.
  • Debian, Ubuntu, Fedora: install the .deb or .rpm from the latest release, then systemctl --user enable --now lys-secrets.
  • Others: see Getting started.

Usage

Log in through lys-login, or unlock at its lock screen, to unlock the login collection. Then:

secret-tool store --label='An example' app example
secret-tool lookup app example

Directories

Path Synopsis
Package client is a Secret Service client for lys components that keep a secret of their own in the user's keyring, such as the portal's per-app master secrets.
Package client is a Secret Service client for lys components that keep a secret of their own in the user's keyring, such as the portal's per-app master secrets.
cmd
lys-secrets command
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.
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.
Package control is lys-secrets' login channel: a unix socket in the user's runtime directory through which lys-login's login and lock screens hand over the password they just verified, so the login collection unlocks with it, and through which a password change moves the login collection from the old password to the new.
Package control is lys-secrets' login channel: a unix socket in the user's runtime directory through which lys-login's login and lock screens hand over the password they just verified, so the login collection unlocks with it, and through which a password change moves the login collection from the old password to the new.
internal
bitwarden
Package bitwarden is an in-process Bitwarden client: the key hierarchy (master key, user key, RSA private key, organization keys), the EncString envelope, TOTP codes, and the identity and sync API, so lys-secrets reads a vault with no external daemon and wipes its keys on lock.
Package bitwarden is an in-process Bitwarden client: the key hierarchy (master key, user key, RSA private key, organization keys), the EncString envelope, TOTP codes, and the identity and sync API, so lys-secrets reads a vault with no external daemon and wipes its keys on lock.
dialogtest
Package dialogtest is the shell's dialog host as a test sees it: it serves dev.stubbe.lys.PortalDialogs1 on the test's bus, records each password and access dialog, and answers them from the test's script.
Package dialogtest is the shell's dialog host as a test sees it: it serves dev.stubbe.lys.PortalDialogs1 on the test's bus, records each password and access dialog, and answers them from the test's script.
keyring
Package keyring is the Secret Service's storage core: a collection of items whose labels, attributes and secrets are encrypted at rest under a key derived from the collection's password.
Package keyring is the Secret Service's storage core: a collection of items whose labels, attributes and secrets are encrypted at rest under a key derived from the collection's password.
lockedmem
Package lockedmem holds secrets outside the Go heap: each Buf is an anonymous mapping of its own, so the collector never copies it, locked against swap where RLIMIT_MEMLOCK allows, excluded from core dumps, and zeroed before it is unmapped.
Package lockedmem holds secrets outside the Go heap: each Buf is an anonymous mapping of its own, so the collector never copies it, locked against swap where RLIMIT_MEMLOCK allows, excluded from core dumps, and zeroed before it is unmapped.
pinentry
Package pinentry speaks GnuPG's pinentry protocol, Assuan over a process's standard input and output, for gpg-agent: it asks for passphrases and confirmations through a UI, and, where gpg-agent allows an external password cache, keeps passphrases in one under the org.gnupg.Passphrase schema pinentry-gnome3 uses.
Package pinentry speaks GnuPG's pinentry protocol, Assuan over a process's standard input and output, for gpg-agent: it asks for passphrases and confirmations through a UI, and, where gpg-agent allows an external password cache, keeps passphrases in one under the org.gnupg.Passphrase schema pinentry-gnome3 uses.
prompt
Package prompt asks the user for lys-secrets' passwords through the shell's dialog host (dev.stubbe.lys.PortalDialogs1), so the prompts look like every other lys dialog and lys-secrets draws no UI itself.
Package prompt asks the user for lys-secrets' passwords through the shell's dialog host (dev.stubbe.lys.PortalDialogs1), so the prompts look like every other lys dialog and lys-secrets draws no UI itself.
service
Package service serves the freedesktop Secret Service API (org.freedesktop.secrets) over keyring collections stored encrypted in a directory: sessions with plain and DH transport, collections and items with their properties and signals, aliases, and prompts that ask the user through a Prompter.
Package service serves the freedesktop Secret Service API (org.freedesktop.secrets) over keyring collections stored encrypted in a directory: sessions with plain and DH transport, collections and items with their properties and signals, aliases, and prompts that ask the user through a Prompter.
sshagent
Package sshagent is lys-secrets' SSH agent: it serves the agent protocol for the keys in ~/.ssh that have a .pub beside them and for those added with ssh-add.
Package sshagent is lys-secrets' SSH agent: it serves the agent protocol for the keys in ~/.ssh that have a .pub beside them and for those added with ssh-add.
usersock
Package usersock serves a unix socket only the user's own processes may use: it lives in a 0700 directory, and a peer whose SO_PEERCRED uid is another is refused before it is heard.
Package usersock serves a unix socket only the user's own processes may use: it lives in a 0700 directory, and a peer whose SO_PEERCRED uid is another is refused before it is heard.
Package secretbus declares the Secret Service's D-Bus interfaces, events and signals once, for the service that emits them and the clients that follow them.
Package secretbus declares the Secret Service's D-Bus interfaces, events and signals once, for the service that emits them and the clients that follow them.
Package secretstest serves lys-secrets' Secret Service on a test's own bus, so a consumer (lys-shell's Secret portal) is checked against the real service instead of a fake.
Package secretstest serves lys-secrets' Secret Service on a test's own bus, so a consumer (lys-shell's Secret portal) is checked against the real service instead of a fake.
Package transport is the Secret Service's secret transports, the encryption both ends of a session agree on: plain, and the DH session over the 1024-bit MODP group with HKDF-SHA256 and AES-128-CBC.
Package transport is the Secret Service's secret transports, the encryption both ends of a session agree on: plain, and the DH session over the 1024-bit MODP group with HKDF-SHA256 and AES-128-CBC.
Package vault is the dev.stubbe.lys.Vault1 contract: lys-secrets' Bitwarden vault on the session bus, so the one process that holds the vault's keys serves every surface that shows or uses it (lys-shell's bar module, dropdown and launcher mode, its NetworkManager secret agent).
Package vault is the dev.stubbe.lys.Vault1 contract: lys-secrets' Bitwarden vault on the session bus, so the one process that holds the vault's keys serves every surface that shows or uses it (lys-shell's bar module, dropdown and launcher mode, its NetworkManager secret agent).

Jump to

Keyboard shortcuts

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