You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature Request: Masking Specific Arguments in @loggable
Summary:
Currently, @loggable supports skipArgs = true to exclude all arguments from logging. However, there is no way to selectively mask sensitive arguments (e.g., passwords, tokens) while keeping others visible.
Proposed Enhancement:
Add a new parameter maskArgs (e.g., @loggable(maskArgs = {"password", "token"})).
If a method argument matches any value in maskArgs, replace its value with "****" in logs.
Keep other arguments unchanged.
Use Case Example:
Helps improve security and compliance by preventing sensitive data leaks in logs.
Avoids the need for workarounds like overriding toString() or using custom aspects.
Using Java 8
The text was updated successfully, but these errors were encountered:
Feature Request: Masking Specific Arguments in @loggable
Summary:
Currently, @loggable supports skipArgs = true to exclude all arguments from logging. However, there is no way to selectively mask sensitive arguments (e.g., passwords, tokens) while keeping others visible.
Proposed Enhancement:
Add a new parameter maskArgs (e.g., @loggable(maskArgs = {"password", "token"})).
If a method argument matches any value in maskArgs, replace its value with "****" in logs.
Keep other arguments unchanged.
Use Case Example:
Benefits:
Helps improve security and compliance by preventing sensitive data leaks in logs.
Avoids the need for workarounds like overriding toString() or using custom aspects.
Using Java 8
The text was updated successfully, but these errors were encountered: