Secrets Management
Auberge stores all configuration, including sensitive values, in config.toml.
Generate a config.toml scaffold at the XDG config path:
auberge config init --output "$(auberge config path)"auberge config init derives the scaffold from the Key Registry
(ansible/keys.yml). Without --output, the scaffold is printed to stdout —
useful for piping or inspecting available keys. Pass --playbooks <a,b,c>
to emit only the keys required by the named playbooks.
Setting Config Values
Section titled “Setting Config Values”auberge config set SECRET_NAME valueRequired values:
auberge config set admin_user_name yournameauberge config set admin_user_email you@example.comauberge config set domain example.comauberge config set cloudflare_dns_api_token your-tokenauberge config set ssh_port 22022Optional values:
# Only needed for Cockpit web console loginauberge config set admin_user_password your-linux-passwordRun auberge config init to print the full list of known keys, each with
its documentation string from the Key Registry.
Password Commands
Section titled “Password Commands”Values prefixed with ! are treated as shell commands. When a config value is consumed (during deploy, backup, or other operations), Auberge runs the command via sh -c and uses the trimmed stdout as the actual value. The command is not evaluated at config set time.
Value formats:
| Stored value | Behaviour |
|---|---|
!cmd |
Runs sh -c "cmd", uses trimmed stdout |
!!literal |
Stores as !literal (escape hatch - no command is run) |
plain string |
Used as-is |
Example (config.toml):
baikal_admin_password = "!op read op://vault/baikal/password"cloudflare_dns_api_token = "secret123"some_literal_bang = "!!not-a-cmd"Requirements: the command must exit 0 and produce non-empty UTF-8 output. The operation fails with a clear error if either condition is not met.
A run resolves every ! value in config.toml, optional keys included. If any of them fails, the run stops before Ansible starts. The error names the key and shows the command’s stderr, never its stdout. Fix the command or remove the key.
The command’s stdin is closed, but it keeps your terminal, so tools that prompt on /dev/tty still work (for example an age YubiKey PIN prompt).
Viewing Config
Section titled “Viewing Config”auberge config listSecurity
Section titled “Security”- Never commit
config.tomlto version control - it contains plaintext secrets config.tomlis listed in.gitignore- Run
auberge config initto print a fresh scaffold derived from the Key Registry
Troubleshooting
Section titled “Troubleshooting”“Missing required config value”
auberge config list # Check what is setauberge config set KEY value # Set if missing