Skip to content

fix(secrets): detect and redact Mailchimp Marketing API keys - #198

Merged
himanshu748 merged 2 commits into
himanshu748:mainfrom
jdotc1:security/redact-mailchimp-api-keys-20261122
Nov 22, 2026
Merged

himanshu748 merged 2 commits into
himanshu748:mainfrom
jdotc1:security/redact-mailchimp-api-keys-20261122

Conversation

@jdotc1

@jdotc1 jdotc1 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Related to #20 (provider secret detection).

Security gap

Mailchimp Marketing API keys authenticate to an account and commonly use a 32-hex-character body followed by a data-center suffix such as -us22. Bare lowercase hex may not satisfy the high-entropy fallback, and the current named provider patterns omit this format, allowing a key to persist into an agent's memory.

Change

  • Match whole Mailchimp Marketing API key shapes with a bounded data-center suffix (-us1 through three digits), while not marking ordinary bare hashes or identifiers as credentials.
  • Redact the complete credential with the existing typed marker; integrate with find_secrets, has_secret, redact_text and redacted_kinds without changing their APIs.
  • Add positive, boundary, negative and idempotence tests using synthetic token-shaped fixtures.

Verification

Added backend/tests/test_mailchimp_secret_tokens.py. Full pytest/CI pending.

Format reference: https://github.com/cyanheads/mailchimp-mcp-server/blob/main/docs/api-key.md ; Mailchimp security guidance: https://mailchimp.com/developer/marketing/api-concepts/authentication/api-keys

@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: 20c5053e-9bf9-4875-aba5-c4dfdd4f1327
  • 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 12a84a0 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