Skip to content

[secrets]

Reading provider keys from 1Password instead of environment variables.

Key Type Default Description
secrets.backend string backend is “op-cli” (1Password CLI with a service account) or empty. It is required when any provider sets api_key_ref.
secrets.op_path string op_path is the 1Password CLI executable. Default “op” on PATH.
secrets.service_account_token_env string service_account_token_env names the environment variable holding the service account token. Default OP_SERVICE_ACCOUNT_TOKEN. The token is the only secret passed to the CLI; it is not exposed elsewhere.
secrets.refresh_ttl_seconds integer refresh_ttl_seconds is the spacing between round-robin background reads. Default 600, allowed 300-900; 0 disables scheduled reads (cold startup, retries, SIGHUP, reload and provider auth failures still re-read).
secrets.on_unavailable string on_unavailable decides a cold start whose references cannot be read: “serve” (default) starts without those providers and brings each up once its reference resolves; “fail_fast” refuses to start and lists the unresolved references.
secrets.timeout_seconds integer 0 timeout_seconds bounds one CLI read. Default 20.