Skip to content

fix(security): mask sensitive tokens in EntraIdAuthenticator debug logs#3077

Merged
marevol merged 1 commit intomasterfrom
fix/mask-sensitive-tokens-in-entraid-log
Mar 15, 2026
Merged

fix(security): mask sensitive tokens in EntraIdAuthenticator debug logs#3077
marevol merged 1 commit intomasterfrom
fix/mask-sensitive-tokens-in-entraid-log

Conversation

@marevol
Copy link
Contributor

@marevol marevol commented Mar 15, 2026

Summary

  • Truncate idToken and refreshToken to first 8 characters in debug log output in EntraIdAuthenticator
  • Prevents full token exposure in log files, improving security posture

Test plan

  • Verify debug logging still works with idToken truncated to 8 chars + ***
  • Verify debug logging still works with refreshToken truncated to 8 chars + ***
  • Confirm tokens shorter than 8 characters are handled correctly via Math.min()

🤖 Generated with Claude Code

Truncate idToken and refreshToken to first 8 characters in debug log output to prevent full token exposure in log files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@marevol marevol merged commit 575e98e into master Mar 15, 2026
1 check 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.

1 participant