Class UserCredentialReach
- Namespace
- MailFathom.Application.Access.Credentials
- Assembly
- MailFathom.Application.dll
Where one credential may be presented: on which endpoints, and from which networks.
public sealed record UserCredentialReach : IEquatable<UserCredentialReach>
- Inheritance
-
UserCredentialReach
- Implements
- Inherited Members
Remarks
Both halves belong to the credential rather than to the person, because the threat each answers is about one credential: a key provisioned to read mail must not administer the deployment, and a key that leaks is one key — a person's workstation key and their scheduled job's key are used from different places.
A request presenting a credential on a surface it does not list, or from a network it does not allow, fails authentication exactly as a credential nobody holds does, so a probe learns nothing about which credentials exist.
Constructors
- UserCredentialReach(IReadOnlyList<UserCredentialSurface>, IReadOnlyList<IPNetwork>)
Where one credential may be presented: on which endpoints, and from which networks.
Fields
- MaximumAllowedSourceNetworks
The most networks one credential may name, which bounds what every presentation compares against.
Properties
- AllowedSourceNetworks
The networks a request presenting it must come from, empty when it may come from anywhere.
- Default
Gets what a credential states when nothing was written for it: both mail-serving endpoints, from anywhere.
- Surfaces
The endpoints the credential is good for, in published order.
Methods
- AdmitsSource(IPAddress?)
Gets whether a request from the given address may present the credential.
- Lists(UserCredentialSurface)
Gets whether the credential may be presented on the given endpoint.