-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
chore: adding a logger masking filter #217
base: main
Are you sure you want to change the base?
Conversation
Hi @staaldraad,
Since the pattern is static, it might also be beneficial to precompile it. |
For the
|
Unfortunately it doesn't work in the current form because the websockets logging is coming in as |
ffe8003
to
325e30a
Compare
Use a logging.Filter to redact JWT tokens that may be in log messages.
325e30a
to
053221b
Compare
What kind of change does this PR introduce?
Bug fix / feature
What is the current behavior?
INFO log lines may contain the access_token jwt
What is the new behavior?
Use a
logging.Filter
to redact JWT tokens that may be in log messages.JWT's will be displayed as
eyJh.REDACTED.2j7_78f
whereeyJh
would be the full header and2j7_78f
would be the full signature.Additional context
Doesn't address the fact that logging set toDEBUG
will have the JWT in the connection log line created bywebsockets
.Websocket DEBUG logs are also redacted after adding 053221b