Repository navigation
Fixes #35710: Remove the unused jjwt dependency - #35711
Conversation
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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
Pull request was closed
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
Fixes #35710
What this changes
The OpenMetadata server declared
io.jsonwebtoken:jjwt0.9.1, but nothing in the code base uses it: authentication reads and checks tokens withcom.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 inopenmetadata-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 jsonwebtokenonmainonly 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 toio/jsonwebtoken: there are none outside jjwt itself. jjwt only broughtjackson-databindwith it, and the BOM already manages that version, so no other resolved version changes.Testing
mvn install -pl openmetadata-service -ampasses, anddependency:treeno longer lists anyio.jsonwebtokenartifact.JwtFilterTest,JWTTokenGeneratorTestandJwtIdentityResolverTest: 82 tests pass.mainand 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.


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Removes the unused
io.jsonwebtoken:jjwtdependency and its version property.Reviews (3) · Last reviewed commit: "fix(security): remove the unused jjwt de..." · Reviewed by Greptile