Skip to main content

Module resolver

Module resolver 

Source
Expand description

Scoped credential resolution.

Resolves a provider API key by trying scopes in strict priority order: Session → Agent → User. House sources require an independent host policy decision after a miss; absence alone never authorizes a fallback.

The resolved plaintext key is held in a [secrecy::SecretString] so it is never accidentally logged or serialized.

Structs§

CredentialResolver
Resolves credentials across scopes, decrypting on demand.
ResolvedCredential
A successfully resolved credential. The plaintext key is wrapped in [SecretString]; call [secrecy::ExposeSecret::expose_secret] only at the point of use (constructing the upstream client).