You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e3ad817
Browse filesBrowse the repository at this point in the historyBrowse files
feat(providers): AWS STS AssumeRole refresh strategy and aws-s3 profile
Add gateway-managed AWS STS credential refresh (provider-v2, NVIDIA#1576). The
gateway calls sts:AssumeRole and writes three short-lived credentials
(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN) to the
provider record; the proxy re-signs requests with SigV4. Adds the aws and
aws-s3 provider profiles and a declarative multi-output refresh model
(additional_outputs) so one AssumeRole co-mints all three credentials.
Hardening (from review):
- Reject caller-supplied STS endpoint overrides; the endpoint is always
region-resolved in production, test-only otherwise (CWE-918).
- Validate a single canonical STS profile binding at configure
(matching strategy, canonical AWS_ACCESS_KEY_ID primary, both declared
outputs); remove the mint-path fallback to hardcoded sibling keys.
- Require aws_access_key_id/aws_secret_access_key as a complete pair, with
optional aws_session_token for temporary source credentials.
- Enforce the providers_v2 gate on every mint (worker and manual rotate),
not just at configure time.
- Clear refresh-owned expiries for the primary and every pinned additional
output inside the provider CAS closure, preserving independent changes.
- Gate the provider credential write on refresh-generation ownership so a
rotation cannot resurrect a deleted refresh or write stale-generation
credentials (CWE-362).
- Serialize refresh configuration against sandbox mutations to reserve
credential keys atomically within a gateway process.
- Return a typed Conflict for absent-row conditional writes instead of a
backend-dependent error string.
- Mirror runtime whole-middle-label host wildcard semantics in the prover.
Signed-off-by: Russell Bryant <[email protected]>
0 commit comments