feat(git-id-switcher): add redactAllSensitive maximum privacy mode (v0.13.6)#180
Merged
Conversation
Add a new setting `gitIdSwitcher.logging.redactAllSensitive` that masks all string values in security logs when enabled, providing maximum privacy for users who prefer complete log sanitization. - Add SanitizeOptions interface to sensitiveDataDetector - Pass redactAllSensitive config to sanitize functions - Add setting schema to package.json - Add localization for 17 languages 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Model-Raw: claude-opus-4-5-20251101
Add unit tests for the new redactAllSensitive option in sensitiveDataDetector: - Test all strings redacted when redactAllSensitive is true - Test normal behavior when redactAllSensitive is false - Test backward compatibility with empty/undefined options - Test non-string values pass through unchanged - Test sanitizeDetails with redactAllSensitive option 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Model-Raw: claude-opus-4-5-20251101
Add documentation for the new gitIdSwitcher.logging.redactAllSensitive setting to all 26 language variants of the README. Languages updated: - en, ja, zh-CN, zh-TW, ko, de, fr, es, pt-BR, it, ru - pl, tr, cs, hu, bg, uk, eo, tok, tlh, haw, ain, ryu - x-lolcat, x-pirate, x-shakespeare - Root README.md regenerated from English source 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Model-Raw: claude-opus-4-5-20251101
Add gitIdSwitcher.logging.redactAllSensitive setting for complete log sanitization. When enabled, all string values are masked in security logs. 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Model-Raw: claude-opus-4-5-20251101
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
gitIdSwitcher.logging.redactAllSensitivesetting for maximum privacy modeChanges
Implementation
sensitiveDataDetector.ts: AddSanitizeOptionsinterface withredactAllSensitiveflagsecurityLogger.ts: PassredactAllSensitiveconfig to sanitize functionspackage.json: Add setting schema with localization keyDocumentation
package.nls.*.json)Tests
testRedactAllSensitiveOption()covering:redactAllSensitive: trueredactAllSensitive: falsesanitizeDetailswithredactAllSensitiveoptionTest plan
npm run buildsucceedsnpm run testpasses (all tests including new redactAllSensitive tests)npm run lintpasses (0 errors, 2 warnings - pre-existing)🤖 Generated with Claude Code