#7294·omnigent

Support AWS SigV4 signing in the sandbox credential proxy (for secretless S3 access)

Author: ajayrgbCreated Sep 13, 2026Updated Oct 1, 2026
LabelsFeatureP2-mediumtriagedcomp:sandboxDNB

Problem

Sandboxed agents have no way to make authenticated AWS S3 (or other SigV4-signed) calls without either the real AWS keys entering the sandbox, or egress being blocked entirely. The existing credential_proxy only does single-header swap (Bearer/Basic/token), which doesn't work for SigV4 — the signature covers the whole request, not one header value.

Proposal

Add a new aws_sigv4 credential_proxy type:

  • Sandbox gets placeholder AWS credentials (so boto3/AWS SDKs build a request at all).
  • The egress MITM proxy discards the sandbox-signed (garbage) request and resigns it with the real, parent-held credentials before forwarding upstream.
  • Support both a static access-key/secret credential and STS AssumeRole (auto-refreshed near expiry).
  • Current botocore S3 uploads default to aws-chunked + STREAMING-UNSIGNED-PAYLOAD-TRAILER regardless of body size — chunked and non-chunked requests can share one resign path (forward body untouched, preserve X-Amz-Content-Sha256 verbatim).

Related

  • #1542 — credential_proxy trust boundary (same subsystem)
  • #3247 — credential_proxy re-resolve on 401/expiry (overlaps with AssumeRole refresh)

Generated with Claude Code