Expand description
Configuration loading. Configuration loading and validation for the access connector.
Unknown TOML keys are a startup error. [targets] entries override per-target environment
variables, except client_secret, which only the environment can supply.
Structsยง
- Config
- Validated configuration for the connector run loop, built by
Config::from_cli. - Environment
Config ๐ - The
[environment]TOML section. Each URL resolves from its env var, then its field here, thenbase. With nobase, an unset URL fails startup unless neither URL is set, which defaults to US cloud. - File
Config ๐ - On-disk connector configuration (TOML); every key is optional. A
tokenkey is rejected as unknown, since the token comes only fromBWAC_TOKEN.
Enumsยง
- Environment ๐
- Where the Bitwarden server is.
Constantsยง
- MAX_
HEARTBEAT_ ๐INTERVAL_ SECS - Exclusive upper bound on the heartbeat interval.
- MIN_
POLL_ ๐INTERVAL_ SECS
Functionsยง
- missing_
url ๐ - Error for a service URL that no layer supplied.
- non_
blank ๐ - Treat a blank value as unset.
- parse_
token ๐ - Parse the raw
BWAC_TOKENvalue. Errors never echo the token.