-
Notifications
You must be signed in to change notification settings - Fork 36
Add built-in pattern detection for secret redaction in compiled logs #11175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| { name: "Google OAuth Access Token", pattern: /ya29\.[0-9A-Za-z_-]+/g }, | ||
|
|
||
| // AWS tokens | ||
| { name: "AWS Access Key ID", pattern: /AKIA[0-9A-Z]{16}/g }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot add OpenAI patterns, Anthropic patterns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added OpenAI and Anthropic patterns in commit 9305944:
- OpenAI API Key:
sk-[a-zA-Z0-9]{48} - OpenAI Project API Key:
sk-proj-[a-zA-Z0-9]{48,64} - Anthropic API Key:
sk-ant-api03-[a-zA-Z0-9_-]{95}
Added 3 comprehensive tests covering all patterns. All 33 tests pass.
|
@copilot merge main, recompile |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot, merge main and recompile. |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
Smoke Test: Claude - PASSLast 2 Merged PRs:
Tests: ✅ GitHub MCP | ✅ Serena MCP | ✅ Playwright | ✅ Tavily | ✅ File I/O | ✅ Bash Status: PASS
|
Smoke Test Results
✅ GitHub MCP Status: ✅ PASS
|
|
GitHub MCP: ✅ style: improve markdown formatting in safe outputs messages | chore: recompile workflows after safe outputs handler changes
|
Add extensive tests for secret redaction with built-in patterns
Completed:
Summary:
Successfully added built-in pattern detection to
redact_secrets.cjsto automatically redact common credential types (GitHub, Azure, Google, AWS, OpenAI, Anthropic tokens) without requiring them to be explicitly listed in environment variables. Added 24 new comprehensive tests covering all patterns, combinations, and edge cases. All tests pass successfully. Merged latest changes from main and recompiled all workflows.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Changeset
redact_secrets.cjsand comprehensive tests covering GitHub, Azure, Google, AWS, OpenAI, and Anthropic token patterns; includes tests for combinations with custom secrets.