Skip to content

fix: non-breaking security improvements#562

Merged
armando-rodriguez-cko merged 2 commits intomasterfrom
bugfix/security-non-breaking-improvements
Mar 30, 2026
Merged

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

Conversation

@armando-rodriguez-cko
Copy link
Copy Markdown
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

@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
- 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
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.
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the bugfix/security-non-breaking-improvements branch from afef321 to cd2a265 Compare March 30, 2026 10:47
@sonarqubecloud
Copy link
Copy Markdown

@armando-rodriguez-cko armando-rodriguez-cko merged commit b7be4f1 into master Mar 30, 2026
6 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the bugfix/security-non-breaking-improvements branch March 30, 2026 10:52
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