ecluse:ecluse-runtime
Safe HaskellNone
LanguageGHC2021

Ecluse.Runtime.Credential.CodeArtifact

Description

The AWS CodeArtifact leaf of the outbound-credential handle: mint a short-lived registry bearer token through GetAuthorizationToken, carrying its real expiry so the refresh policy schedules off the token's own lifetime. Caching, proactive refresh, single-flight, and the breaker are the cloud-agnostic policy of Ecluse.Core.Credential.Refresh, which this leaf wires its mint into. This is control plane only: the data plane that uses the token stays on http-client. The amazonka Env is built once at provider creation and captured in the mint closure, so the backend's state never reaches the proxy's Env.

Synopsis

Configuration

data CodeArtifactConfig Source #

What the CodeArtifact leaf needs to mint a token. discover finds the AWS credentials in the ambient environment, so the proxy holds no long-lived AWS key.

Constructors

CodeArtifactConfig 

Fields

The provider

newCodeArtifactProvider :: CredentialReporters -> CodeArtifactConfig -> IO CredentialProvider Source #

A refreshing provider over CodeArtifact GetAuthorizationToken. It mints once at construction, so a misconfiguration fails there, not on the first mirror write.