Support SigV4 presigned URL verification
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- aws, rust
- Domain
- authentication, backend, security
Research direction
Read resolve_identity() in auth/identity.rs and parse_sigv4_auth() in auth/sigv4.rs first. Trace the existing CredentialRegistry and TokenKey resolution, then compare the header-based canonical request handling with the requirements in the issue. Done means valid SigV4 query parameters authenticate, X-Amz-Signature is excluded from canonicalization, UNSIGNED-PAYLOAD is used, and X-Amz-Expires is enforced.
Written by the indexing model from the issue text.
Description
Problem
The auth module only supports header-based SigV4 authentication (the Authorization header). When no Authorization header is present, the request is treated as anonymous.
AWS S3 presigned URLs encode the signature in query parameters instead:
X-Amz-AlgorithmX-Amz-CredentialX-Amz-DateX-Amz-ExpiresX-Amz-SignedHeadersX-Amz-SignatureX-Amz-Security-Token(for temporary credentials)
Currently these are ignored, so presigned URLs generated with STS credentials are treated as anonymous requests.
Why it matters
Presigned URLs are commonly used for:
- Direct
<img>/<a>tags in browsers (can't setAuthorizationheader) - Sharing time-limited download links for restricted data
- Any context where the HTTP client can't set custom headers
Without this, the STS credential flow only works for SDK-based requests that set the Authorization header.
What needs to change
-
resolve_identity()inauth/identity.rs— when theAuthorizationheader is absent, check query parameters forX-Amz-Algorithm=AWS4-HMAC-SHA256before falling back to anonymous. -
parse_sigv4_auth()inauth/sigv4.rs— add a parallel code path (or new function) to extract credential, signed headers, and signature from query parameters instead of the header. -
Signature verification — presigned URL canonical requests differ from header-based ones:
- The
X-Amz-Signatureparameter is excluded from the canonical query string - The payload hash is always
UNSIGNED-PAYLOAD - Expiration (
X-Amz-Expires) must be validated
- The
-
Credential resolution — the existing
CredentialRegistry+TokenKeyresolver should work as-is once the access key is extracted from the query string.
References
- Dominant language
- Rust
- Stars
- 21
- Forks
- 1
- Avg merge
- 16h 39m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/multistore
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
developmentseed/multistore#160 ·
-
Support UploadPartCopy (multipart server-side copy): AWS CLI and boto3 use it for any copy over 8 MBOpenenhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
developmentseed/multistore#168 ·
-
List of a prefix 503s when a single object key contains an empty path segment (//)Possibly taken @alukach claimed this 127 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
developmentseed/multistore#116 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
oidc-provider: optional `oidc_session_name` backend-option to override RoleSessionName derivationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in developmentseed/multistore
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
storytold/craft-anything#2472 ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsotto/sotto-authenticator#68 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nowledge-co/hawdb#1995 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swc-project/swc-next-issues#984 ·