Enum DatabasePasswordSource
- Namespace
- MailFathom.Infrastructure.Persistence.Connections
- Assembly
- MailFathom.Infrastructure.dll
Names which configured setting supplies the PostgreSQL password each time a physical connection opens.
public enum DatabasePasswordSource
Fields
ConnectionStringSecret = 2The
Persistence:ConnectionStringblock carries it inside the whole connection string.None = 0No rotatable source: the deployment authenticates without a password, or the connection string carries one that never passed through a secret block.
PasswordSecret = 1The
Persistence:Passwordblock supplies it.
Remarks
The password is deliberately kept out of the connection string the data source is built from, so a credential rotated behind an unchanged reference reaches every connection opened afterwards. A connection already open keeps the credential it authenticated with, which is what makes rotation safe for work in flight.