Table of Contents

Class BootstrapOnlySettings

Namespace
MailFathom.Application.Configuration
Assembly
MailFathom.Application.dll

Declares the settings the persisted configuration layer is itself reached through, which it may not carry.

public static class BootstrapOnlySettings
Inheritance
BootstrapOnlySettings
Inherited Members

Remarks

Reading the layer needs settings of its own: where the database is, how long its one statement may run, how the secret reference carrying its credential is interpreted, and which configuration sources exist at all. Those are read from the sources beneath the layer, because a persisted value for one of them could not be read without first reading it — so the read is not circular, and the list below is exactly what makes it so.

What that leaves is a split rather than a circle, and the split is why a persisted value for one is refused rather than ignored. The layer is composed above every file, so a persisted Persistence:Password would leave the bootstrap read authenticating with the file's credential while the connection pool, the schema gate, and every worker authenticated with the persisted one, and nothing in the running process would report the disagreement. A persisted Secrets:Interpretation is worse than a split: it decides whether a plain-text value written where a reference belongs fails startup or is accepted, for the whole secret-resolution graph, which would make the layer a way to relax the terms the layer itself is trusted under. Persistence:CommandTimeoutSeconds is the same split one turn later: it bounds the statement that fetched the document, so a persisted value would bound the connection pool and the schema gate while the read that fetched it ran at the file's bound.

Dropping the keys from the published snapshot was the other candidate and is refused. A document that persists one is a mistake an operator made, and a mistake silently discarded is one they go on believing they fixed; the layer is read once at startup, so refusing costs a start that would otherwise have run on settings nobody could see.

The same list is what makes these settings non-writable. A write that landed on one would persist into the layer it is required to open, so ResolveWriteTarget(string) refuses it at the point a write is validated rather than leaving it to be discovered as a deployment that no longer starts.

Methods

FindIn(IEnumerable<string>)

Finds the refused settings a persisted document carries.

TryFindCovering(string, out string?)

Finds the refused setting a write would carry.