Skip to content

fix(secrets): redact Azure Storage SAS URL signatures - #203

Open
jdotc1 wants to merge 2 commits into
himanshu748:mainfrom
jdotc1:fix/azure-sas-signature-redaction-20261122
Open

jdotc1 wants to merge 2 commits into
himanshu748:mainfrom
jdotc1:fix/azure-sas-signature-redaction-20261122

Conversation

@jdotc1

@jdotc1 jdotc1 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Related to #20 (provider-specific secret detection).

Security gap

Azure Storage SAS URLs authorize scoped access using a sig query parameter. Base64 and percent-encoded values can evade the generic mixed-class entropy fallback and be persisted unredacted as trusted memory.

Fix

Recognize SAS signatures on Azure blob, dfs, file, queue, and table HTTPS storage endpoints. The detector captures only the signature value; redact_text masks only that span while preserving the URL and the other query parameters. Host and value boundaries reject lookalikes.

Regression

Add entirely synthetic offline tests for raw and URL-encoded signatures, different query ordering, mixed-case host/parameter names, idempotence, and false-positive boundaries. No actual credentials used.

Microsoft reference: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview

Validation: static review of regex and span selection; full pytest suite remains for GitHub CI.

@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: b2362153-80fe-4e8b-8f37-7977a49c5f9f
  • 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 redact every signature value when an Azure Storage URL contains repeated sig fields. The host-anchored matcher can select one field and leave an earlier signature visible. Add a synthetic repeated-field regression that verifies both signatures are removed and the other query fields are preserved.

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