Table of Contents

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 = 2

The Persistence:ConnectionString block carries it inside the whole connection string.

None = 0

No rotatable source: the deployment authenticates without a password, or the connection string carries one that never passed through a secret block.

PasswordSecret = 1

The Persistence:Password block 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.