-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security][Throttling] Hide username and client ip in logs #46362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe we can add |
Thank you for this issue. |
Friendly ping? Should this still be open? I will close if I don't hear anything. |
what about using |
Thank you for this issue. |
Could I get a reply or should I close this? |
@carsonbot I think this issue is still relevant |
Hi, This seems legit to me, especially when the GDPR requires personal data to be protected. |
Description
When using the login throttling feature, username and IP may appear in the debug logs (e.g. when an error occurs in prod with fingers_crossed logger):
What do you think about (optionally) masking these information? For example by adding a
MaskingLoginRateLimiter
in addition to theDefaultLoginRateLimiter
. A straight forward approach would be to use a hash of username and client ip as the key for the limiter(s).This would not only mask the log messages but would impact all appearances of the keys, e.g. in storage. This might be an advantage or a disadvantage. Although, at least the PdoStore hashes the key anyway. The Lock class, where the logs originate, seems to be the wrong place for tweaking, as it's (and should not be) aware of the content of the key.
Another approach, probably on application level, would be a monolog processor, which replaces the username and client ip, but this seems less efficient and not that robust.
Example
The text was updated successfully, but these errors were encountered: