Skip to content

Fixes #35710: Remove the unused jjwt dependency - #35711

Merged
manerow merged 1 commit into
mainfrom
fix/remove-jjwt
Oct 21, 2026
Merged

manerow merged 1 commit into
mainfrom
fix/remove-jjwt

Conversation

@manerow

@manerow manerow commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #35710

What this changes

The OpenMetadata server declared io.jsonwebtoken:jjwt 0.9.1, but nothing in the code base uses it: authentication reads and checks tokens with com.auth0:java-jwt. This PR deletes the dependency and its version property.

Why

Snyk reports a High finding against jjwt 0.9.1 (SNYK-JAVA-IOJSONWEBTOKEN-21181502): its generic parse() method accepts a token whose signature was stripped. Snyk marks every jjwt version as affected, so a version bump would not clear it. Because the dependency is declared in openmetadata-service, the finding appears in every image built on it, including the Collate server and the Hybrid Runner.

How I checked that it is unused

git grep jsonwebtoken on main only matches the pom lines removed here. To make sure no other library needs it at runtime, I scanned every class in the Hybrid Runner fat jar and in the 615 jars of a Collate distribution for references to io/jsonwebtoken: there are none outside jjwt itself. jjwt only brought jackson-databind with it, and the BOM already manages that version, so no other resolved version changes.

Testing

  • mvn install -pl openmetadata-service -am passes, and dependency:tree no longer lists any io.jsonwebtoken artifact.
  • JwtFilterTest, JWTTokenGeneratorTest and JwtIdentityResolverTest: 82 tests pass.
  • Collate main and the Hybrid Runner build and pass their tests against this branch.

Dependabot's grouped PR #35670 bumps jjwt to 0.13.0; that line drops out once this merges.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Removes the unused io.jsonwebtoken:jjwt dependency and its version property.

  • The service no longer includes the unused jjwt library.

Reviews (3) · Last reviewed commit: "fix(security): remove the unused jjwt de..." · Reviewed by Greptile

@manerow
manerow requested a review from a team as a code owner October 19, 2026 08:37
@manerow
manerow requested a review from pmbrull October 19, 2026 08:37
@manerow manerow added safe to test Add this label to run secure Github workflows on PRs backend labels Oct 19, 2026
@manerow manerow self-assigned this Oct 19, 2026
@gitar-bot

gitar-bot Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · Removing the unused jjwt dependency and version property narrows the service dependency graph without changing token handling or public behavior.

Removes the unused io.jsonwebtoken:jjwt dependency and its version property from openmetadata-service, clearing the Snyk High finding SNYK-JAVA-IOJSONWEBTOKEN-21181502 from downstream images. No issues found.

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

@manerow
manerow added this pull request to the merge queue Oct 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-19T18:14:33Z)

Blocked the queue: integration-tests-mysql-elasticsearch

@manerow
manerow added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-20T09:17:24Z)

Blocked the queue: integration-tests-postgres-opensearch

@manerow manerow closed this Oct 20, 2026
@manerow manerow reopened this Oct 20, 2026
@manerow
manerow enabled auto-merge October 20, 2026 12:03
@manerow manerow closed this Oct 20, 2026
auto-merge was automatically disabled October 20, 2026 12:06

Pull request was closed

@manerow manerow reopened this Oct 20, 2026
@manerow
manerow added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-20T18:27:44Z)

Blocked the queue: integration-tests-mysql-elasticsearch

@manerow
manerow added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-20T22:59:23Z)

Blocked the queue: playwright-summary

Failed Playwright tests:

  • Features/OntologyNativeStudio.spec.ts › authors a native model through the shared View, Edit, and Query shell
  • Features/Topic.spec.ts › Copy nested field link should include full hierarchical path

Merged via the queue into main with commit db883e7 Oct 21, 2026
284 of 288 checks passed
@manerow
manerow deleted the fix/remove-jjwt branch October 21, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 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.

Stop shipping the unused jjwt library in the OpenMetadata server

2 participants