Configuration Reference
Configuration is loaded by Figment in priority order (later overrides earlier):
- Built-in defaults
/etc/tundra/tundrad.toml(or path set byTUNDRA_CONFIG)TUNDRA_-prefixed environment variables (__= nesting separator)DATABASE_URLenvironment variable (convenience alias)
Full reference
Section titled “Full reference”[server]listen_addr = "0.0.0.0" # Bind addressport = 7400 # HTTP API portgrpc_port = 7447 # gRPC port for agent meshpublic_url = "https://panel.example.com"shutdown_grace_secs = 30
[database]url = "postgres://tundra@/tundra?host=/var/run/postgresql"max_connections = 50
[valkey]url = "redis://localhost:6379"db_cache = 0db_queue = 1
[security]master_key_path = "/var/lib/tundra/data/master.key"session_max_age_hours = 720 # 30 daysrequire_2fa_for_owners = truestep_up_window_secs = 300 # 5 minutes
[agent]heartbeat_interval_secs = 30cert_validity_days = 365cert_renewal_window_days = 30
[paths]data_dir = "/var/lib/tundra/data"log_dir = "/var/lib/tundra/logs"artifacts_dir = "/var/lib/tundra/artifacts"
[plugins]sandbox_fuel_per_invocation = 100_000_000 # Wasmtime fuelsandbox_memory_max_bytes = 268_435_456 # 256 MB
[telemetry]otlp_endpoint = "" # Leave empty to disable OTLP exportlog_format = "json" # "json" or "pretty"log_level = "info" # Overridden by RUST_LOGEnvironment variable mapping
Section titled “Environment variable mapping”| Env var | TOML equivalent |
|---|---|
DATABASE_URL | database.url |
TUNDRA_DATABASE__URL | database.url |
TUNDRA_DATABASE__MAX_CONNECTIONS | database.max_connections |
TUNDRA_SERVER__PORT | server.port |
TUNDRA_SECURITY__MASTER_KEY_PATH | security.master_key_path |
TUNDRA_TELEMETRY__OTLP_ENDPOINT | telemetry.otlp_endpoint |
RUST_LOG | Controls tracing-subscriber directly |
Master key
Section titled “Master key”The master key is a 32-byte random value + 32-byte BLAKE3 integrity trailer (64 bytes total on disk).
Generate:
tundrad master-key generate --path /var/lib/tundra/data/master.keyVerify:
tundrad master-key verify --path /var/lib/tundra/data/master.keyBack this up. If lost, all encrypted data (TOTP secrets, API keys, env vars, DKIM private keys) is unrecoverable.