Documentation
¶
Overview ¶
Package secretsmanager implements the aws.secretsmanager source plugin: lists AWS Secrets Manager secrets and emits secret evidence records with cross-vendor rotation and encryption attributes.
Index ¶
Constants ¶
View Source
const EvidenceTypeID = "secret"
EvidenceTypeID is the evidence type this plugin emits.
View Source
const SourceID = "aws.secretsmanager"
SourceID is the registered ID for the aws.secretsmanager plugin instance.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
ListSecrets(ctx context.Context, params *awssm.ListSecretsInput, optFns ...func(*awssm.Options)) (*awssm.ListSecretsOutput, error)
}
API is the subset of the Secrets Manager client this plugin uses.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the in-process aws.secretsmanager source.
func NewFromAWS ¶
NewFromAWS constructs a Plugin backed by the real AWS SDK.
func (*Plugin) Collect ¶
func (p *Plugin) Collect(ctx context.Context, req core.SlotRequest) ([]core.EvidenceRecord, error)
Collect lists secrets and returns one secret record per secret.
Click to show internal directories.
Click to hide internal directories.