Skip to content

feat(git-id-switcher): add redactAllSensitive maximum privacy mode (v0.13.6)#180

Merged
nullvariant merged 4 commits into
mainfrom
feat/redact-all-sensitive
Jan 18, 2026
Merged

feat(git-id-switcher): add redactAllSensitive maximum privacy mode (v0.13.6)#180
nullvariant merged 4 commits into
mainfrom
feat/redact-all-sensitive

Conversation

@nullvariant

Copy link
Copy Markdown
Owner

Summary

  • Add new gitIdSwitcher.logging.redactAllSensitive setting for maximum privacy mode
  • When enabled, all string values are masked in security logs (not just detected secrets)
  • Includes localization for 17 languages and documentation for 26 README variants

Changes

Implementation

  • sensitiveDataDetector.ts: Add SanitizeOptions interface with redactAllSensitive flag
  • securityLogger.ts: Pass redactAllSensitive config to sanitize functions
  • package.json: Add setting schema with localization key

Documentation

  • 17 language localization files (package.nls.*.json)
  • 26 language README files with setting documentation
  • CHANGELOG.md updated for v0.13.6

Tests

  • New test function testRedactAllSensitiveOption() covering:
    • All strings redacted when redactAllSensitive: true
    • Normal behavior when redactAllSensitive: false
    • Backward compatibility with empty/undefined options
    • Non-string values pass through unchanged
    • sanitizeDetails with redactAllSensitive option

Test plan

  • npm run build succeeds
  • npm run test passes (all tests including new redactAllSensitive tests)
  • npm run lint passes (0 errors, 2 warnings - pre-existing)
  • Test coverage maintained above 90%

🤖 Generated with Claude Code

nullvariant and others added 4 commits January 18, 2026 22:50
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-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

Copy link
Copy Markdown

@nullvariant nullvariant merged commit 3721227 into main Jan 18, 2026
19 of 20 checks passed
@nullvariant nullvariant deleted the feat/redact-all-sensitive branch January 18, 2026 14:15
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