Enum SecretDeclarationFailure
- Namespace
- MailFathom.Infrastructure.Secrets.Resolution
- Assembly
- MailFathom.Infrastructure.dll
Why one configured secret declares an identity or a lifetime the host cannot use.
public enum SecretDeclarationFailure
Fields
LifetimeMalformed = 4The lifetime is neither NoLimitValue nor an ISO 8601 instant carrying an explicit offset.
LifetimeMissing = 3The lifetime is blank, which is a mistake rather than a second spelling of NoLimitValue.
NameMalformed = 1A name was configured in a spelling SecretName does not accept.
NameMissing = 0No name was configured, so the secret has no identity a rotation, an expiry, or an audit record could name.
NameReusedForAnotherLifetime = 5A name another declaration in the same configuration root already uses was given a different Lifetime, so one credential would carry two expiries.
NameReusedForAnotherPassword = 6A name another declaration in the same configuration root already uses names a different Password, or one where the other names none, so the material behind it would be unsealed two ways.
NameReusedForAnotherReference = 2A name another declaration in the same configuration root already uses was given a different SecretReference, so it would name two credentials.
Remarks
The vocabulary is deliberately about the declaration rather than about the material, so every value is safe to report to an operator alongside the configuration path that produced it. Nothing here names a reference target, a retrieval outcome, or a secret; SecretResolutionFailure answers that separate question.
A repeated name is three values rather than one because a name that means one credential is what the rule protects, and an operator correcting a repetition has to know which setting disagrees with the declaration that claimed the name first. Two declarations that agree about all three are one credential declared twice and are accepted.