Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*providerOptions) error
Option configures a Provider.
func WithConfigOptions ¶
func WithConfigOptions(options ...func(*awsconfig.LoadOptions) error) Option
WithConfigOptions adds options passed to awsconfig.LoadDefaultConfig. This is an escape hatch for AWS SDK settings not covered by the convenience options in this package.
func WithHTTPClient ¶
WithHTTPClient sets the client used for AWS credential retrieval and the Datadog delegated-token exchange. This allows callers to preserve custom proxy, TLS, and timeout configuration across the entire authentication flow.
func WithRegion ¶
WithRegion sets the AWS region used for STS endpoint resolution and request signing. When omitted, the AWS SDK configuration is used, falling back to us-east-1 when the credential source does not specify a region.
func WithStaticCredentials ¶
WithStaticCredentials uses explicitly supplied AWS credentials instead of the default credential chain. A session token is optional.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements datadog.DelegatedTokenProvider using the AWS SDK default credential chain. Configuration and credential retrieval are lazy so clients that disable validation do not contact AWS during construction.
func (*Provider) Authenticate ¶
func (provider *Provider) Authenticate(ctx context.Context, config *datadog.DelegatedTokenConfig) (*datadog.DelegatedTokenCredentials, error)
Authenticate exchanges an AWS-signed GetCallerIdentity proof for a Datadog delegated token.