Skip to content

Release 8.10.0 - security hardening - #715

Merged
armando-rodriguez-cko merged 1 commit into
masterfrom
release/8.10.0
Nov 20, 2026
Merged

armando-rodriguez-cko merged 1 commit into
masterfrom
release/8.10.0

Conversation

@rodrigojara-cko

Copy link
Copy Markdown
Contributor

This release brings security hardening of request building, the OAuth client and request logging, and fixes responses that repeat a header. Custom base URIs and the OAuth authorization URI are now validated when the SDK is built, so check them before upgrading if you set them. No public member is removed; one constructor is added.

Added

Changed

Fixed

This release brings security hardening of request building, the OAuth client and request logging, and fixes responses that repeat a header. Custom base URIs and the OAuth authorization URI are now validated when the SDK is built, so check them before upgrading if you set them. No public member is removed; one constructor is added.

**Added**

* `CheckoutAuthorizationException(String, Throwable)` (#711).

**Changed**

* Security hardening (#707, #709, #711).
* Path values that cannot be sent as one path segment (null, empty, `.`, `..`, or containing "/" or "\") raise `CheckoutArgumentException` before the request is sent. For `CustomersClient#get` with an email that contains "/" or "\", pass the customer ID instead (#707, #709).
* Custom base URIs (`CustomEnvironment`, or a custom `UriStrategy` given to `ApiClientImpl`) are validated when the SDK is built, every setting included. An invalid one fails `build()` with a `CheckoutArgumentException` that names the setting. Use absolute `http` or `https` URIs with a host, ending with "/" when they have a path, as described in the README Custom Environment section (#709).
* The OAuth authorization URI must be an absolute `https` URI with an ASCII host written without percent-encoding, no user information and an optional port from 1 to 65535; `http` is accepted only for `localhost`, `127.0.0.0/8` and `[::1]`. Any other URI throws `CheckoutArgumentException` when the SDK is built (#711).
* OAuth token request failures and token responses that cannot be used raise `CheckoutAuthorizationException`, a subclass of `CheckoutException`. Catch `CheckoutException` or `CheckoutAuthorizationException` (#711).
* The request and response log lines hold less information (#711).

**Fixed**

* A response that repeats a header (for example two `Set-Cookie` headers) is no longer reported as a 400; the first value is kept (#713).
* With a custom base URI that has a path, iDEAL requests stay under that path like every other request (#707).
@rodrigojara-cko
rodrigojara-cko requested a review from a team November 20, 2026 14:28
@agent-wall-e

agent-wall-e Bot commented Nov 20, 2026

Copy link
Copy Markdown

🟡 Risk Classification: MINOR

Approval route: AI Review + Human Approval
Rollback controls: Staged rollout + rollback

Classification reasons

  • no_low_class_matched
  • prod_source_modified

Operational gates

  • ✅ jira_ticket
  • ✅ independent_review

Files analysed: 1


wall-e 2026.06.19-02 · policy 6b4ce2b3b45a…

@agent-wall-e

agent-wall-e Bot commented Nov 20, 2026

Copy link
Copy Markdown
🔬 Debug — why this classification?

Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.

Reason code Kind Clause Meaning
no_low_class_matched informational §2.2 (fall-through) None of the deterministic Low classes (§2.2.3, §2.2.4, §2.2.7, docs-only) applied; classifier fell through to LLM evaluation.
prod_source_modified informational §2.1 M7 (informational) At least one file is non-doc, non-test, non-IaC — i.e. application source code was modified.

Kinds:

  • classifying — this rule contributed to the chosen tier.
  • informational — context only; did not by itself decide the tier.

See issue #3 for the proposal to formalise this map as Appendix A of the standards doc.

wall-e 2026.06.19-02 · debug

@agent-wall-e

agent-wall-e Bot commented Nov 20, 2026

Copy link
Copy Markdown

🟠 Advisory review: Concerns worth a look

This PR needs a human approval. Before you give it, these are the things I'd want resolved.

The diff contains only a version bump from 8.9.0 to 8.10.0, but the PR description claims extensive security hardening changes across request building, OAuth client, logging, URI validation, path segment validation, and header deduplication fixes. Either the diff is incomplete/truncated or the actual code changes are missing.

Concerns

  • The diff shows only gradle.properties with a version change — none of the security hardening code, new CheckoutAuthorizationException constructor, URI validation logic, path segment validation, OAuth fixes, or header deduplication fix described in the PR body are visible in the provided diff.
  • If the diff is genuinely this small (i.e., all other changes were already merged and this is a version-bump-only release commit), that should be explicitly confirmed by the reviewer, as it would be an unusual release pattern.
  • If the diff is truncated or incomplete, the reviewer must obtain the full diff before approving, since the described changes include security-sensitive logic (OAuth URI validation, path injection prevention) that requires code review.
  • The PR description references issues fix(client): security hardening #707, fix(client): security hardening #709, fix(client): security hardening #711, fix(transport): keep first value when a response repeats a header #713 — a reviewer should verify those changes are actually present in the branch being merged, not just in prior commits.

This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02

@sonarqubecloud

Copy link
Copy Markdown

@armando-rodriguez-cko
armando-rodriguez-cko merged commit dae32ce into master Nov 20, 2026
6 checks passed
@armando-rodriguez-cko
armando-rodriguez-cko deleted the release/8.10.0 branch November 20, 2026 14:43
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