Skip to main content

chainmail secret set

Store a secret in the daemon's vault. The value comes from --from-pass (first line), or is typed at the terminal without echo, or is read from stdin. Secrets can't be read back.

Usage​

chainmail secret set <name> [flags]

Examples​

# typed at the terminal without echo
chainmail secret set accounts/work
chainmail secret set accounts/work --from-pass mail/work
chainmail secret set oauth_clients/google --from-pass google/oauth-client

Flags​

--from-pass string read the secret from this pass entry (first line)

Global flags​

--output string output format: json or table (default $CHAINMAIL_OUTPUT, then cli.toml, then table on a terminal, json otherwise)
--socket string daemon socket (default $CHAINMAIL_SOCKET, then cli.toml, then /run/chainmail/chainmail.sock)

See also​