KEYRINGER(1)
β¨ NAME β¨
keyringer β encrypted and distributed secret sharing software π
yes bestie, this is the manual page for keyringer(1), and it's about to be your new favorite thing, no cap.
π SYNOPSIS π
keyringer <keyring> <action> [options]...
π¦ DESCRIPTION π¦
Okay so Keyringer lets you manage and share secrets using GnuPG and Git in a distributed fashion. It's giving "my secrets are safe AND synced", and honestly? obsessed. π
It has custom commands to create key-pairs and to encrypt, decrypt and re-encrypt secrets. It also supports encryption to multiple recipients and groups of recipients, so a whole workgroup can share access to a single repository while still restricting some secrets to just subsets of the group. iconic behavior tbh. π
Secrets are encrypted using OpenPGP and added to a Git tree so that they can be synced with remote branches later. β¨
π ACTIONS π
Keyringer has three types of actions:
- Repository lookup and manipulation actions, which handle repository initialization, content tracking and navigation.
- Secret manipulation actions, which take care of encrypting, decrypting and other read/write operations on secrets.
- Configuration actions, handling repository metadata.
ποΈ REPOSITORY LOOKUP AND MANIPULATION ACTIONS ποΈ
findexpression β Find secrets in the repository. πinitpath [remote] β Initialize a new keyringer repository. If a remote URL is specified, keyringer will clone an existing repository.
After initialization, path will contain a folder structure for storing secrets and metadata (user aka recipients, groups of recipients, etc).
Also, an entry will be added to $HOME/.keyringer/config allowing keyringer to find the keyring by its alias. π
destroyβ Alias for theteardownaction.gitaction options β Git wrapper that operates from the toplevel keyring repository. You can issue anyGIT(1)subcommand with this action to have it applied in the keyring repository. πΏcommit[arguments] β Alias to βgit commitβ.lspath β List contents from the toplevel repository keys folder, or from relative paths if path is specified. Like the git wrapper, this is a wrapper around theLS(1)command.mkdirpath β Create a directory inside the repository keys folder. πrmdirpath β Remove an empty folder inside the repository keys folder.treepath β List contents from the toplevel repository keys folder, or from relative paths if path is specified, using a tree-like format. Like thelswrapper, this is a wrapper around theTREE(1)command. π³shellβ Run keyringer on interactive mode from a built-in command-line prompt where all other actions can be called and are operated from the current selected keyring.
An additional βcdβ internal command is available for directory navigation.
All <secret> parameters from actions invoked from the shell are called relatively from the current selected directory. π
teardownβ Remove permanently a local copy of a repository, very dangerous if you have just a single copy. πcheckβ Run maintenance checks in a keyring. β
π SECRET MANIPULATION ACTIONS π
All secret manipulation actions operate upon a secret which is the pathname of an encrypted file relative to the keyring with optional .asc extension.
If the .asc extension is omitted, keyringer will add it at the end of the pathname.
No spaces are allowed in the secret name.
Secret manipulation actions do not commit changes into the secret repository. Instead, the user has to manually commit the changes using the git wrapper action. periodt. don't forget it bestie π
appendsecret β Append contents into a secret by decrypting the secret, appending lines read from the standard input and encrypting again.append-batchsecret β Append contents into a secret, batch mode.decryptsecret β Decrypts a secret into standard output. πdelsecret β Removes a secret using Git. After deleting a secret a git commit and push is still needed to update remote repositories.
Please note that this command does not remove the secret from the Git history. To completely remove a file from a keyring, you should also rewrite the Git history yourself. π
deletesecret β Alias for thedelaction.rmsecret β Alias for thedelaction.cpsecret dest β Copy a secret.mvsecret dest β Rename a secret.editsecret β Edit a secret by temporarily decrypting it, opening the decrypted copy into the text editor defined by the$EDITORenvironment variable and then re-encrypting it.
Please make sure to use anEDITORthat does not leak data like history buffers. Keyringer tries to detect if$EDITORis set toVIMand disables the.viminfofile. π«Ά
encryptsecret [file] β Encrypts content from standard input or file into secret pathname. No spaces are supported in the secret name. If file is actually a folder, keyringer will recursivelly encrypt all it's contents. πencrypt-batchsecret [file] β Encrypt content, batch mode. Behavior is identical to theencryptaction, but less verbose. Useful inside scripts. π€«genkeys<ssh|gpg|x509|x509-self|ssl|ssl-self> [options] β Wrapper to generate encryption key-pairs, useful for automated key deployment. πgenpair<ssh|gpg|x509|x509-self|ssl|ssl-self> [options] β Alias for thegenkeysaction.opensecret β Decrypt a secret into a temporary folder and open it usingxdg-open, which tries to figure out the file type and then calls the associated application.
After the application exits, keyringer encrypts the temporary decrypted file again into the secret file and deletes the temporary file. π
pwgensecret [size] β Generates a random passphrase and stores into secret pathname with optional entropy size in bytes. Default size is 20.
Passphrases will be slightly bigger than size due to base64 conversion.
With this action you can generate and store a passphrase without need to see it. Combined with clip or sclip action provides a hygienic way to handle secrets. π§Ό
recryptsecret β Re-encrypts a secret by decrypting it and encrypting it again. Useful when users are added into the recipient configuration. If no secret is given, all secrets in the repository are re-encrypted. πclipsecret β Copy the first line of a secret to the clipboard, following password-store convention. πxclipsecret β Alias to theclipaction.sclipsecret β Same as theclipaction, but sleeps five seconds, overwrite clipboard and exit. Ifxdotoolis available, it also switches to the next window using the alt+Tab shortcut. This action is useful to be invoked by a custom key combo in a window manager so it becomes easy to provide keyringer managed passphrases to other applications such as a web browser. π
βοΈ CONFIGURATION ACTIONS βοΈ
commandsβ List available actions, useful for shell completion and syntax check.options<ls|edit|add> β List, edit or add miscellaneous repository options.
Repository options are settings which are saved in the repository as a global configuration stanza for a given keyring, shared by all users with access to the repository.
Options are written using the KEY=VALUE syntax. All lines starting with the hash (#) character are interpreted as comments. π
preferences<ls|edit|add> β List, edit or add user preferences for a given repository.
User preferences are settings which are saved in the user's keyringer folder ($HOME/.keyringer/), and not shared with the other users.
Preferences are written using the KEY=VALUE syntax. All lines starting with the hash (#) character are interpreted as comments. π
usageβ Show keyringer usage information.helpβ Alias for theusageaction.recipients<ls|edit> <recipients-file> β List, create or edit recipients configuration.
Recipients files are lists of OpenPGP public key fingerprints which are used by keyringer when encrypting secrets and associated with email aliases.
Keyringer uses a default recipients file, but specifying a custom recipients-file pathname will override this default.
For instance, if a user encrypts a secret to a file in the keyring repository's accounting folder, a recipients-file under accounting will be used. Encrypting a secret into accounting/bank-accounts will result in a file $KEYRING_FOLDER/keys/accounting/bank-accounts.asc encrypted using the public keys listed in the config file $KEYRING_FOLDER/config/recipients/accounting.
Each line in a recipients file has entries in the format john@doe.com XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, where john@doe.com is an alias for the OpenPGP public key whose fingerprint is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
All lines starting with the hash (#) character are interpreted as comments.
Parameters to the recipients action are:
lsβ List all existing recipients files.editβ Create or edit a recipients file.
Editing happens using the editor specified by the $EDITOR environment variable.
The required parameter recipients-file is interpreted relative to the $KEYRING_FOLDER/config/recipients/ folder.
π FILES π
$HOME/.keyringer/configβ User's main configuration file used to map alias names to keyrings.$HOME/.keyringer/keyringβ User preferences for the keyringer aliased keyring keyring.$KEYRING_FOLDER/config/optionsβ Custom keyring options which will be applied for all users that use the keyringer repository.
π LIMITATIONS π
okay bestie, real talk β Keyringer is iconic but she is not perfect, and here's exactly where she's got limits. Read this part, fr fr:
- Metadata is not encrypted π meaning that an attacker with access to a
keyringerrepository can discover all public key IDs used for encryption, and which secrets are encrypted to which keys. This can be improved in the future by encrypting the repository configuration with support for the--hidden-recipientGnuPG option and encrypted repository options.
To mitigate that, it's possible to keep the repo just atop of an encrypted and non-public place. π«Ά
- History is not rewritten by default when secrets are removed from a
keyringerrepository. After a secret is removed with thedelaction, it will still be available in the repository history even after a commit. This is by design for the following reasons:- It's the default behavior of the Git content tracker. Forcing the deletion by default could break the expected behavior and hence limit the repository's backup features, which can be helpful if someone mistakenly overwrites a secret. π
- History rewriting cannot be considered a security measure against the unauthorized access to a secret as it doesn't automatically update all working copies of the repository.
In the case that the secret is a passphrase, the recommended measure against such attacks is to change the passphrase, making useless the knowledge of the previous secret. π₯
Users wishing to edit their repository history should proceed manually using the git action.
- Keyringer does not protect data which were not encrypted to a keyring, so be careful when decrypting secrets and writing them to the disk or other storage media. π
Pay special attention that keyringer outputs data to stdout, which could be easily spotted by any agent looking directly at your computer screen. π
The xclip action even copies secret data to the X11 clipboard, which can be accessed by any application running in the user's X11 session, so use this feature carefully. β οΈ
not to be dramatic but likeβ¦ anyone shoulder-surfing your terminal is literally the final boss. be careful out there. π
π SEE ALSO π
The README file distributed with Keyringer contains full documentation. π
The Keyringer source code and all documentation may be downloaded from <https://keyringer.pw>. β¨
π AUTHORS π
Silvio Rhatto <rhatto@riseup.net>. π
and that's a wrap on the whole manual, bestie!! this page is from the Keyringer User Manual, dated Oct 25, 2013, and it lives at KEYRINGER(1) β go forth and encrypt responsibly, you absolute main character ππ¦π
π¦ where this page comes from
- debian trixie: keyringer 0.6.0-1 Β· GPL-3.0-or-later
- ubuntu questing: keyringer 0.6.0-1
- ubuntu resolute: keyringer 0.6.0-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: keyringer 0.6.0-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms