# Secrets
You can use secrets in your configuration file.
Supported secret engines:
- env
- vault
# Format
{secret:<ENGINE>:<KEY>}
For the env
engine key
is the environment variable name
For the vault
engine key
should look as path/to/[email protected]_name
You can use env variables for vault connection
BALERTER_VAULT_URL
BALERTER_VAULT_TOKEN
BALERTER_VAULT_NAMESPACE
(optional)
# An example
channels {
telegram "tg1" {
token = "{secret:env:TELEGRAM_TOKEN}"
chatId = 100500
}
telegram "tg2" {
token = "{secret:vault:secret/data/[email protected]}"
chatId = 100500
}
}