Expand description
Secrets-manager interpolation for the config layer (#125).
Resolution runs as the final config-load stage (after env/file and vars/templates), over the parsed config tree. See the design spec.
Modules§
- registry
- Process-global registry of resolved secret values + a redaction scrubber.
Structs§
- Resolver
Set - Map of scheme → resolver, built from compiled-in features (or injected in tests).
Constants§
- SECRET_
SCHEMES - The four secret-manager schemes this layer recognises.
Traits§
Functions§
- collect_
refs - Collect all unique secret references reachable from a config
Value. - ensure_
no_ secret_ directives - Error with
SecretsRequireAsyncLoadif any secret directive is present. Called by the synchronousfrom_pathso secrets never silently survive. - resolve_
secrets - Production entry point: resolve all secret directives in
cfgin place. Builds resolvers only for the schemes actually referenced. - resolve_
secrets_ with - Resolve all secret directives using a caller-supplied resolver set (the seam used by tests to inject fakes).
- scan_
path_ refs - Parse
path(tolerating secret directives) and return its unique secret refs. - scan_
path_ refs_ with scan_path_refswith caller-suppliedcrate::config::RunInputs(#444).- substitute
- Substitute every secret directive in a
Valuefromcache. Non-secret directives (${users.id}) pass through verbatim.
Type Aliases§
- Secret
Ref - A
(scheme, reference)pair, e.g.("vault", "secret/data/app#token").