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

ESG-11074 Don't log bytes / body in the error message #434

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

regenvanwalbeek-wf
Copy link
Contributor

@regenvanwalbeek-wf regenvanwalbeek-wf commented Dec 16, 2024

Motivation

The toString() of a ResponseFormatException produces a message that contains the contents of the response. This is far too easy for a logging system to dump information that should not be in the logs.

Changes

Stop including the body in the ResponseFormatException

Testing/QA Instructions

evanweible-wf
evanweible-wf previously approved these changes Dec 17, 2024
@regenvanwalbeek-wf regenvanwalbeek-wf changed the title Don't log bytes / body in the error message ESG-11074 Don't log bytes / body in the error message Dec 17, 2024
@regenvanwalbeek-wf
Copy link
Contributor Author

@Workiva/release-management-p

Copy link
Contributor

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@btr-rmconsole-7 btr-rmconsole-7 bot merged commit 61fafe6 into master Dec 17, 2024
3 checks passed
@btr-rmconsole-7 btr-rmconsole-7 bot deleted the dontLogBody branch December 17, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants