Documentation
¶
Overview ¶
Package aws resolves secret.KindAWS refs by fetching from AWS Secrets Manager. SigV4 signing uses only the Go standard library (no AWS SDK). Fetch-only: plaintext is held in memory, never written to Postgres.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Region string
Credentials Credentials
// HTTPClient is optional; defaults to a 30s timeout client.
HTTPClient *http.Client
// Endpoint overrides the SM API host (tests only). Empty → regional endpoint.
Endpoint string
Now func() time.Time
}
Config holds region and credentials for Secrets Manager fetch-only resolution.
func ConfigFromEnv ¶
ConfigFromEnv reads AWS_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and optional AWS_SESSION_TOKEN. Returns an error when required vars are missing.
type Credentials ¶
Credentials are static AWS API keys (no instance profile / SSO chain).
Click to show internal directories.
Click to hide internal directories.