Skip to content

fix: non-breaking security improvements#562

Open
armando-rodriguez-cko wants to merge 2 commits intomasterfrom
bugfix/security-non-breaking-improvements
Open

fix: non-breaking security improvements#562
armando-rodriguez-cko wants to merge 2 commits intomasterfrom
bugfix/security-non-breaking-improvements

Conversation

@armando-rodriguez-cko
Copy link
Contributor

  • Replace System.err.println with log.warn in GsonSerializer to route deserialization errors through the standard logging framework instead of bypassing it via stderr
  • Exclude responseHeaders from CheckoutApiException @tostring to prevent raw response headers being inadvertently written to logs when the exception is stringified; errorDetails remains visible for debugging

- Replace System.err.println with log.warn in GsonSerializer to route
  deserialization errors through the standard logging framework instead
  of bypassing it via stderr
- Exclude responseHeaders from CheckoutApiException @tostring to prevent
  raw response headers being inadvertently written to logs when the
  exception is stringified; errorDetails remains visible for debugging
@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team March 24, 2026 11:45
david-ruiz-cko
david-ruiz-cko previously approved these changes Mar 24, 2026
The sanitiseHeaders helper already filtered the Authorization header
before logging. Extend it to also filter Cko-Idempotency-Key so that
idempotency tokens are not written to INFO logs in plain text.
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants