Skip to content

fix(secrets): redact provider token configuration assignments - #204

Merged
himanshu748 merged 2 commits into
himanshu748:mainfrom
jdotc1:security-mask-provider-token-assignments
Nov 22, 2026
Merged

himanshu748 merged 2 commits into
himanshu748:mainfrom
jdotc1:security-mask-provider-token-assignments

Conversation

@jdotc1

@jdotc1 jdotc1 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Security issue

The memory-ingest secret detector blocks known token shapes and generic *_ACCESS_TOKEN, *_AUTH_TOKEN, *_SESSION_TOKEN, etc. assignments, but misses common provider-specific variable names such as GITHUB_TOKEN and SLACK_TOKEN when the assigned value does not independently match a high-entropy or provider-key pattern. Readable test or short-lived token values can therefore pass the secret check unredacted.

Change

Extend the existing secret_assignment name alternatives to recognize provider-scoped GITHUB_TOKEN, GITLAB_TOKEN, SLACK_TOKEN, HF_TOKEN, and NPM_TOKEN (including the current optional-prefix convention). The existing quoted/unquoted value handling, typed marker, and redaction semantics are preserved.

Regression coverage

Added low-entropy synthetic assignments, multiline retention, repeat-scan idempotency, and negative cases for variable names without secret values or with non-secret suffixes. This does not infer validity of any credential or modify authentication. Full CI pending.

@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: 087a1e92-1872-4cf5-a067-1a4e81854bac
  • 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 merged commit 20c86b4 into himanshu748:main Nov 22, 2026
5 of 6 checks passed
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