-
Notifications
You must be signed in to change notification settings - Fork 16
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
pam/gdm: Keep debugging all the events, sanitizing them if needed #565
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #565 +/- ##
==========================================
- Coverage 84.43% 84.19% -0.24%
==========================================
Files 79 79
Lines 7040 7066 +26
Branches 75 75
==========================================
+ Hits 5944 5949 +5
- Misses 762 785 +23
+ Partials 334 332 -2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a small nitpick 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Feel free to rebase and merge once CI passes.
95897b6
to
ccd4e8f
Compare
…debug mode Instead of hiding the content authentication data completely, show the whole challenge when `pam_gdm_debug` build tag is used, or when in testing mode. Otherwise, just show a sanitized challenge so that we don't miss the fact that the event has happened Fixes: ca47562
In case the gdm data poll response has content, it's still something we want to show, even though we should sanitize the value when it contains the challenge secret Fixes: 40fa85d
ccd4e8f
to
c608853
Compare
Instead of hiding the content authentication data completely, show the
whole challenge when
pam_gdm_debug
build tag is used, or when intesting mode.
Otherwise, just show a sanitized challenge so that we don't miss the
fact that the event has happened.
In the same way, keep the conversation debugging alive so that we don't miss pieces of what we got from GDM if the content is relevant.
To sanitize the JSON I preferred to go wild and just replace the content, since it's still something happening only when debugging only, so not really something in production code.
Fixes: ca47562, 40fa85d