Table of Contents

Class SecretPropertyNaming

Namespace
MailFathom.Infrastructure.Secrets.Discovery
Assembly
MailFathom.Infrastructure.dll

Recognizes a configuration property name that announces a secret.

public static class SecretPropertyNaming
Inheritance
SecretPropertyNaming
Inherited Members

Remarks

The rule steers an author towards ConfiguredSecret: a settings property that names a secret and binds to a raw string is rejected, at build time by the boundary architecture test and at startup by ConfiguredSecretDiscovery. It is deliberately name-based and therefore cannot catch a secret called Value; it exists to make the ordinary mistake — adding public string Password { get; set; } to an options type — fail rather than ship.

Methods

NamesASecret(string?)

Gets whether a property name announces that the property holds a secret.