common

package
v0.79.0-devel Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL