Knowledge base

<vault>

An external secrets vault
Secrets not in the node’s files but in a separate vault

Two lines — the address and the token — and from that moment the node can read secrets from an external vault instead of its own files.

What can be moved there. Signing keys (domain-key), the certificate for accepting mail and the password to its private key (smtp-server-tls-certificate), as well as submission password checking via LDAP (authentication-method with the value {vault}:ldap).

The reference is written right in the directive — instead of a path you write {vault}:path/key. The configuration stays readable: it shows where a secret comes from, but not the secret itself.

There is one block per node. There cannot be two vaults.

The token is created by hand on the Vault side and sits in the configuration in plain text — that is, one secret does remain on the node, but one instead of many, and it is revoked in one place.

Example configuration
# the address and the token — all that is needed to connect
<vault>
    server-url https://myvault:4500
    access-token akhdfasdhf786282684734kjsdhf
</vault>

# further secrets are taken by reference instead of a path
smtp-server-tls-certificate {vault}:/v1/kv/data/tlsCerts:smtp-cert
The manual’s example. Only the token stays in the configuration; keys, certificates and their passwords live in the vault and do not end up in the node’s backups.
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.