Interface IObjectStorageCredentialSource
- Namespace
- MailFathom.Infrastructure.ObjectStorage
- Assembly
- MailFathom.Infrastructure.dll
Supplies the access key one request to the object-storage endpoint is signed with.
public interface IObjectStorageCredentialSource
Remarks
The port exists so the adapter holds no secret machinery at all: references, schemes, and the resolution rules stay in the composition root, and what crosses is material with a defined lifetime. It is resolved per use rather than once, so a key rotated behind an unchanged reference takes effect on the next call with no cache to invalidate.
There is no unauthenticated shape and there will not be one. An endpoint reached with no credential would be one whose bucket anything on the network can read, and the payload is mail; a deployment that configured nothing must fail rather than fall through to the AWS client's own resolution, which reaches environment variables, a shared credentials file, and an instance metadata service. That is the whole reason this port is asked before every request instead of the client being left to find a credential of its own.
Methods
- ResolveAsync(CancellationToken)
Resolves the credential the next request presents.