Documentation
¶
Overview ¶
Package aws implements a signer.Signer backed by AWS KMS. It delegates signing to a remote KMS key and caches the public key locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KMSClient ¶
type KMSClient interface {
Sign(ctx context.Context, params *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error)
GetPublicKey(ctx context.Context, params *kms.GetPublicKeyInput, optFns ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error)
}
KMSClient is the subset of the AWS KMS client API that KmsSigner needs. This allows mocking in tests.
type KmsSigner ¶
type KmsSigner struct {
// contains filtered or unexported fields
}
KmsSigner implements the signer.Signer interface using AWS KMS.
func NewKmsSigner ¶
func NewKmsSigner(ctx context.Context, region string, profile string, keyID string, opts *Options) (*KmsSigner, error)
NewKmsSigner creates a new Signer backed by an AWS KMS Ed25519 key. It uses the standard AWS credential chain (env vars, ~/.aws/credentials, IAM roles, etc.).
func (*KmsSigner) GetAddress ¶
GetAddress returns the cached address derived from the public key.
Click to show internal directories.
Click to hide internal directories.