Skip to content
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

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

Yury-Fridlyand
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand commented May 22, 2024

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.

* 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>
@Yury-Fridlyand Yury-Fridlyand added the Rust core redis-rs/glide-core matter label May 22, 2024
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner May 22, 2024 17:37
Copy link
Collaborator

@barshaul barshaul left a 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>
@Yury-Fridlyand Yury-Fridlyand requested a review from barshaul May 29, 2024 01:04
@Yury-Fridlyand
Copy link
Collaborator Author

Added

)
.into()),
_ => {
Err((ErrorKind::TypeError, "Could not convert value to boolean")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add type

Copy link
Contributor

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?

Copy link
Collaborator Author

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>
@barshaul barshaul merged commit e93129a into valkey-io:main Jun 3, 2024
44 of 46 checks passed
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
@Yury-Fridlyand Yury-Fridlyand deleted the core/integ_yuryf_update_logging branch July 19, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust core redis-rs/glide-core matter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants