Skip to content

fix(deps): upgrade okhttp to 5.5.0 via okhttp-jvm - #35557

Merged
Vishnuujain merged 2 commits into
mainfrom
okhttp-5-upgrade
Oct 16, 2026
Merged

Vishnuujain merged 2 commits into
mainfrom
okhttp-5-upgrade

Conversation

@Vishnuujain

@Vishnuujain Vishnuujain commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Supersedes #34335. That bump doesn't build: in Maven the okhttp 5 okhttp artifact is an empty jar and the classes live in okhttp-jvm (okhttp README), so the SDK fails with package okhttp3 does not exist.

  • Main already ships okhttp 4.12.0 and okhttp-jvm 5.5.0 side by side (logging-interceptor bump in chore(deps): bump com.squareup.okhttp3:logging-interceptor from 4.12.0 to 5.5.0 #32289), with okio 3.6.0, which lacks okio.Socket that okhttp 5.5 calls. Which jar loads first decides whether okhttp calls work.
  • Root pom now imports okhttp-bom 5.5.0 and the SDK and java-client depend on okhttp-jvm, so every module resolves one okhttp-jvm 5.5.0 and okio 3.18.1. Dropped the unused okhttp/okhttp-sse test deps from openmetadata-mcp.
  • SDK consumers now get okhttp-jvm 5.5.0 transitively instead of okhttp 4.12.0.

Collate counterpart: https://github.com/open-metadata/openmetadata-collate/pull/7524

Type of change:

  • Bug fix

Tests:

  • dependency:tree on every module: one okhttp-jvm 5.5.0, okio 3.18.1, no okhttp 4.
  • Bytecode check: every okhttp3 member that slack-api-client, feign-okhttp, fabric8 httpclient-okhttp, k8s client-java, engine.io and our compiled classes reference exists in okhttp-jvm 5.5.0.
  • openmetadata-k8s-operator unit tests 62/62; sdk, mcp and k8s-operator compile.
  • Local server on this branch: SDK users().getByName and tables().list() work with okhttp loaded from okhttp-jvm-5.5.0.jar, Argo status and base URL validation work, no linkage errors in the log.
  • Integration tests not run locally: the root pom change selects the full suite, which runs in the merge queue.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the safe to test Add this label to run secure Github workflows on PRs label Oct 15, 2026
@Vishnuujain Vishnuujain self-assigned this Oct 15, 2026
Comment thread pom.xml Resolved
@gitar-bot

gitar-bot Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk · The BOM-wide OkHttp 5.5.0 migration could cause linkage or request failures in SDK and third-party HTTP clients.

Upgrades okhttp to 5.5.0 by switching the SDK and java-client to okhttp-jvm via a root okhttp-bom import, so every module resolves one okhttp-jvm 5.5.0 and okio 3.18.1. The previously open finding about the missing okhttp 5 / okhttp-jvm migration rule and Collate lockstep was resolved, with the rule recorded in the pom comment beside the BOM. No open issues remain.

✅ 1 closed
✅ Quality: okhttp 5 / okhttp-jvm migration rule and Collate lockstep not recorded

📄 pom.xml:241-251 📄 openmetadata-sdk/pom.xml:38-41 📄 openmetadata-clients/openmetadata-java-client/pom.xml:55-58
This PR makes a decision that other modules and Collate have to follow, and docs/decisions/ has no record of it (no record mentions okhttp or okio). The decision is to depend on com.squareup.okhttp3:okhttp-jvm rather than okhttp, and to hold every okhttp3 artifact on one version through the imported okhttp-bom so okhttp 4 and 5 never share the classpath. Two parts of it exist only in the description. First, the cross-repo half: "Collate counterpart: openmetadata-collate#7524", meaning Collate has to import the same BOM or it brings back the split-package problem. Second, the published-SDK contract: "SDK consumers now get okhttp-jvm 5.5.0 transitively instead of okhttp 4.12.0". This also replaces the old pin comment's rule ("Drop this pin only as part of a real okhttp 5 migration"). That rule lived only in a pom comment, and this PR deletes it. The okio floor is also undocumented: okhttp 5.5 needs okio.Socket, which okio 3.6.0 lacks, and okio isn't pinned here. It resolves to 3.18.1 only through Maven's nearest-wins rule. Add a record along these lines: "OpenMetadata modules depend on okhttp-jvm, never the plain okhttp artifact; the root pom imports okhttp-bom so every okhttp3 artifact resolves to one 5.x version, okio stays at a release that provides okio.Socket, and Collate imports the same BOM version." Use Guard: reviewer / dependency:tree, and Related: #34335, #32289, openmetadata-collate#7524.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Vishnuujain
Vishnuujain enabled auto-merge October 15, 2026 16:20
@Vishnuujain
Vishnuujain added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit eb4b3b3 Oct 16, 2026
80 of 83 checks passed
@Vishnuujain
Vishnuujain deleted the okhttp-5-upgrade branch October 16, 2026 03:41
mohityadav766 added a commit that referenced this pull request Oct 23, 2026
The operator's TTL-cleanup tests (#35513) start an in-memory Kubernetes API on
MockWebServer, pinned at mockwebserver 4.12.0, while #35557 moved okhttp to
5.5.0 through the root okhttp-bom. The explicit pin beat the BOM, so
mockwebserver 4 ran against okhttp 5 core and every test that starts the
fixture failed with NoClassDefFoundError: okhttp3/internal/Util. The two PRs
merged an hour apart on 2026-10-15, and the operator unit-test job is
path-filtered, so main stayed red until a PR touched
openmetadata-k8s-operator.

Drop the version so the BOM holds mockwebserver on 5.5.0 with okhttp-jvm.
egwada pushed a commit to egwada/OpenMetadata that referenced this pull request Oct 23, 2026
… JDKs (open-metadata#36087)

* fix(security): drop the emSign roots behind CVE-2026-91403 from image JDKs

eMudhra's compromised intermediates (CVE-2026-91403) chain to emSign ECC Root
CA - G3, emSign ECC Root CA - C3 and emSign Root CA - C1. Temurin 21.0.13
removes those roots from cacerts, but eclipse-temurin:21-jdk and
21-jre-alpine are still on 21.0.12.1, which trusts the compromised chains.

Delete the three roots by SHA-256 from the server images' jlink runtime and
from the k8s operator's JRE, and fail the build if any is still trusted. Once
the base images ship 21.0.13 the step deletes nothing.

* fix(security): record the emSign-root decision and cover the pinned JDKs

Review follow-up. The reason the step deletes roots instead of adding the
advisory's fingerprints to blocked.certs was only in the PR description: an
ECDSA signature re-encoded as (r, n-s) gives an intermediate a new fingerprint
that still verifies. Record it as
ADR:2026-10-23-image-jdks-distrust-compromised-cas-by-deleting-roots, cite it
from each step, and note why the operator keeps java as its entrypoint.

docker/olivaw and docker/oss-scanner run Maven on a Temurin 21.0.11 base pinned
by digest, so they never pick up 21.0.13 on their own; give them the same step.

* fix(deps): let the okhttp BOM manage the operator's mockwebserver

The operator's TTL-cleanup tests (open-metadata#35513) start an in-memory Kubernetes API on
MockWebServer, pinned at mockwebserver 4.12.0, while open-metadata#35557 moved okhttp to
5.5.0 through the root okhttp-bom. The explicit pin beat the BOM, so
mockwebserver 4 ran against okhttp 5 core and every test that starts the
fixture failed with NoClassDefFoundError: okhttp3/internal/Util. The two PRs
merged an hour apart on 2026-10-15, and the operator unit-test job is
path-filtered, so main stayed red until a PR touched
openmetadata-k8s-operator.

Drop the version so the BOM holds mockwebserver on 5.5.0 with okhttp-jvm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants