-
Notifications
You must be signed in to change notification settings - Fork 71
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
Don't log sensitive user info in GLIDE code #1443
Don't log sensitive user info in GLIDE code #1443
Conversation
* Don't log sensitive user info. Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com> * CLIPPY I HATE YOU Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com> --------- Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
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.
Removing these logs will leave us with hard time to debug errors. Please log the received response type instead of logging the entire response in the value_conversion file
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Added |
) | ||
.into()), | ||
_ => { | ||
Err((ErrorKind::TypeError, "Could not convert value to boolean") |
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.
add type
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.
also, why is this (and below) a boolean and not JSON toggle?
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.
JSON.TOGGLE
returns 0/1 being converted to bool
or nil
.
Not a mistake I suppose.
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Issue #, if available:
N/A
Description of changes:
Small clean up to avoid logging sensitive user data - requests and responses.
https://github.com/Bit-Quill/glide-for-redis/actions/runs/9134317535/job/25119609032?pr=288#step:7:385
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.