[ISSUE #10810] Redact authentication signatures in audit logs - #10811
[ISSUE #10810] Redact authentication signatures in audit logs#10811Aias00 wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #10811 +/- ##
=============================================
- Coverage 48.34% 48.22% -0.13%
+ Complexity 13527 13491 -36
=============================================
Files 1380 1380
Lines 101104 101111 +7
Branches 13107 13108 +1
=============================================
- Hits 48882 48763 -119
- Misses 46267 46359 +92
- Partials 5955 5989 +34 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Summary
Redacts authentication signatures in audit logs by showing only the first and last 4 characters with a **** mask in the middle. Good security practice to prevent credential leakage in logs. Clean implementation with proper edge-case handling (blank/short signatures) and comprehensive tests.
LGTM.
Automated review by github-manager-bot
🤖 Automated Review by RockteMQ-AIReview of the diff for PR #10811. Summary: The change consistently masks authentication signatures before they reach the audit logger and adds focused unit tests. The log format string itself is preserved, so parsing tools that key on the Findings: 🟢 Suggestion — 🟢 Suggestion — 🟢 Suggestion — 🟡 Warning — No critical correctness or security issues. The change effectively prevents raw signatures from being persisted in audit logs while retaining enough structure for troubleshooting. This is an automated review. Please verify findings before acting on them. |
What
Why
Authentication signatures are security-sensitive request material. Audit logs should preserve useful diagnostics without emitting the raw signature value.
Validation
JAVA_HOME=$(/usr/libexec/java_home -v 1.8) mvn -pl auth -am -DskipITs -DskipCheckStyle -Dtest=DefaultAuthenticationProviderTest -DfailIfNoTests=false testgit diff --checkCloses #10810