Struct DatabaseSecretReference
- Namespace
- MailFathom.Infrastructure.Secrets.Database
- Assembly
- MailFathom.Infrastructure.dll
Identifies one sealed secret stored in MailFathom's database.
public readonly record struct DatabaseSecretReference : IEquatable<DatabaseSecretReference>
- Implements
- Inherited Members
Remarks
The configuration form is database:<uuid>. The identifier is a version 7 UUID like every other
MailFathom mints, so a reference tells whoever reads the document it sits in when the secret was stored — metadata
ADR 0036 accepts, since it says nothing about the sealed value. The target is redacted like every other secret
reference even though it is not material.
Properties
- ConfigurationValue
Gets the complete value a ConfiguredSecret carries.
- IsSpecified
Gets whether this value identifies a stored secret rather than the unusable struct default.
- Scheme
Gets the database secret scheme used on the configuration wire.
Methods
- Create()
Creates a reference for a newly stored secret.
- Create(Guid)
Creates a reference from a persisted identifier.
- ToString()
Returns the fully qualified type name of this instance.
- TryParse(string?, out DatabaseSecretReference)
Parses a complete configured reference.