cadrumo.application.auth.certificate_secret_backend module¶
Application-owned capability contract for named certificate secrets.
Certificate authentication owns the policy around a named source: callers need a bucket-scoped capability that can resolve, rotate, remove, and witness a passphrase without knowing how the secret is kept at rest. The encrypted storage implementation is an outward adapter and is bound by each executable composition root below this contract.
The application never receives a persistence record. Reads project either a
SecretStr or absence, and mutation retries use only the non-secret witness
and operation-id methods declared here.
- class CertificateSecretBackend(*args, **kwargs)[source]¶
Bases:
ProtocolBucket-scoped capability for named certificate passphrases.
- set(name, secret, *, operation_id=None, occurred_at=None)[source]¶
Persist or rotate one named passphrase.