Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretsManagerConfig ¶
type SecretsManagerConfig struct {
// SecretID is the ARN or name of the secret in AWS Secrets Manager (required)
SecretID string `json:"secret_id" yaml:"secret_id"`
// Region is the AWS region where the secret is stored (optional)
Region string `json:"region,omitempty" yaml:"region,omitempty"`
// Endpoint is a custom endpoint URL for AWS Secrets Manager (optional, for local testing)
Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`
// RoleArn is the ARN of the IAM role to assume using SSO JWT (optional)
// When set with SSO tokens, triggers AssumeRoleWithWebIdentity authentication
RoleArn string `json:"role_arn,omitempty" yaml:"role_arn,omitempty"`
// SessionName is the name for the assumed role session (optional, defaults to "sstart-session")
SessionName string `json:"session_name,omitempty" yaml:"session_name,omitempty"`
// Duration is the session duration in seconds (optional, defaults to 3600)
Duration int32 `json:"duration,omitempty" yaml:"duration,omitempty"`
// Internal: SSO tokens injected by the collector
SSOAccessToken string `json:"-" yaml:"-"`
SSOIDToken string `json:"-" yaml:"-"`
}
SecretsManagerConfig represents the configuration for AWS Secrets Manager provider
type SecretsManagerProvider ¶
type SecretsManagerProvider struct {
// contains filtered or unexported fields
}
SecretsManagerProvider implements the provider interface for AWS Secrets Manager
func (*SecretsManagerProvider) Fetch ¶
func (p *SecretsManagerProvider) Fetch(secretContext provider.SecretContext, mapID string, config map[string]interface{}, keys map[string]string) ([]provider.KeyValue, error)
Fetch fetches secrets from AWS Secrets Manager
func (*SecretsManagerProvider) Name ¶
func (p *SecretsManagerProvider) Name() string
Name returns the provider name
Click to show internal directories.
Click to hide internal directories.