Skip to main content

Module config

Module config 

Source
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.
EnvironmentConfig ๐Ÿ”’
The [environment] TOML section. Each URL resolves from its env var, then its field here, then base. With no base, an unset URL fails startup unless neither URL is set, which defaults to US cloud.
FileConfig ๐Ÿ”’
On-disk connector configuration (TOML); every key is optional. A token key is rejected as unknown, since the token comes only from BWAC_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_TOKEN value. Errors never echo the token.