Skip to content

fix(secrets): redact AWS SigV4 presigned URL signatures - #201

Open
jdotc1 wants to merge 2 commits into
himanshu748:mainfrom
jdotc1:fix/aws-presigned-query-signature-20261122
Open

jdotc1 wants to merge 2 commits into
himanshu748:mainfrom
jdotc1:fix/aws-presigned-query-signature-20261122

Conversation

@jdotc1

@jdotc1 jdotc1 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Security gap

AWS S3 presigned URLs authenticate through a 64-hex-character X-Amz-Signature query parameter. The existing named secret patterns did not recognize it, and its hex-only value evaded the mixed-class entropy fallback. An unexpired signed URL can confer object access.

Fix

Recognize the complete SigV4 query signature with a bounded, case-insensitive pattern and identifier boundary. Replace only the signature value, leaving the query parameter name and ordinary URL context intact. No changes to other credential rules.

Regression

Synthetic tests cover a complete presigned URL, redaction idempotence, mixed-case spelling, short/oversized/nonhex near misses, and preservation of ordinary fields. No live credentials or network access needed.

Reference: https://docs.aws.amazon.com/AmazonS3/latest/developerguide/sigv4-query-string-auth.html

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

@jdotc1 is attempting to deploy a commit to the himanshu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 23f3e74f-9b39-4ea7-a0d8-e1b83add05bc
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@himanshu748 himanshu748 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please require a left boundary for the X-Amz-Signature field name as well as the existing right boundary for the value. The current lookbehind can match inside a longer, unrelated field name and cause the whole memory to be blocked. Add a synthetic negative case with a prefixed field name while preserving coverage of the real query parameter.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants