Documentation
¶
Overview ¶
Package common provides the common config and provider models for delegated auth
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
OrgUUID string
}
AuthConfig provides cloud provider based authentication configuration.
type Provider ¶
type Provider interface {
// GenerateAuthProof generates a cloud-specific authentication proof string.
// This proof will be passed to Datadog's intake-key API to exchange for an API key.
// The context allows for cancellation of the proof generation.
GenerateAuthProof(ctx context.Context, cfg pkgconfigmodel.Reader, config *AuthConfig) (string, error)
}
Provider is an interface for generating cloud-specific authentication proofs. Each provider implements how to generate a proof from their cloud platform (e.g., AWS SigV4 signed request). The proof is then exchanged for a Datadog API key using api.GetAPIKey().
type ProviderConfig ¶
type ProviderConfig interface {
// ProviderName returns the name of the provider (e.g., "aws").
ProviderName() string
}
ProviderConfig is an interface for provider-specific configuration. Each cloud provider implements its own config struct with the fields it needs.
Click to show internal directories.
Click to hide internal directories.