Skip to main content

Module config

Module config 

Source
Expand description

Config redaction helpers and diagnostics types for extensions.

These helpers are used by /extensions status and similar UX to display extension config without leaking secret values, and to mirror the resolution order implemented in manager::resolve_config.

Structs§

ConfigEntryStatus
Diagnostic status for a single config entry.
ExtensionConfigDiagnostics
Aggregated config diagnostics for a single extension.

Enums§

ConfigSource
Where a resolved config value originated from.

Functions§

classify_config_entry
Classify a config entry against the same resolution order as manager::resolve_config, using injected lookup closures so callers (and tests) need not touch real std::env or persisted config.
diagnose_extension_config
Compute diagnostics for an extension by combining manifest config classification with provider-level config_schema.required checks. Lookups are injected so the function is fully testable without touching real env or persisted config.
extension_env_var
Compute the env override variable name for a given extension id + config key.
redact_secret_value
Redact a secret value for display. Always cosmetic; never returns the full value.