This is an automated email from the ASF dual-hosted git repository.
jerryshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new bf3d51b9e0 [#14964] improvement(deps): Update nimbus-jose-jwt in the
Iceberg modules to 10.9 (#14965)
bf3d51b9e0 is described below
commit bf3d51b9e02eefbd1d288a17a8a819f3f79dbb57
Author: geyanggang <[email protected]>
AuthorDate: Mon Nov 16 10:07:12 2026 +0800
[#14964] improvement(deps): Update nimbus-jose-jwt in the Iceberg modules
to 10.9 (#14965)
### What changes were proposed in this pull request?
- Add a `nimbus-jose-jwt` constraint (`libs.nimbus.jose.jwt`, 10.9) in
`iceberg/iceberg-common/build.gradle.kts`, next to the existing
`libthrift` and `xnio-api` constraints.
- Remove the `JCIP Annotations` entry from `LICENSE.iceberg`, since it
is no longer bundled in the Iceberg REST server package.
- Remove the `[email protected]` purl from the
`.github/trivy/trivyignore.yaml` entry. The `9.8.1` purl stays, it is a
copy shaded inside `hadoop-client-runtime`.
### Why are the changes needed?
`nimbus-jose-jwt` 9.30.1 came in through `kerb-simplekdc` ->
`kerb-client` -> `token-provider` (Kerby 2.0.3). The server already uses
10.9, so this aligns `catalogs/lakehouse-iceberg/libs` and the Iceberg
REST server with it. The only change to the runtime classpath of both
modules is `nimbus-jose-jwt` 9.30.1 -> 10.9 and the removal of
`com.github.stephenc.jcip:jcip-annotations` (10.x does not depend on
it).
Fix: #14964
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
- Compared the `runtimeClasspath` of
`:catalogs:catalog-lakehouse-iceberg` and `:iceberg:iceberg-rest-server`
before and after: only the two changes above.
- `dependencyInsight` shows 10.9 for `:server`,
`:iceberg:iceberg-common`, `:catalogs:catalog-lakehouse-iceberg` and
`:iceberg:iceberg-rest-server`.
- Checked all 54 `com.nimbusds` method, constructor and field references
in `token-provider-2.0.3.jar` against the 10.9 jar by reflection: none
missing.
- `./gradlew spotlessCheck :iceberg:iceberg-common:test
:catalogs:catalog-lakehouse-iceberg:test
:iceberg:iceberg-rest-server:test -PskipITs` passes.
- `.github/trivy/scan.sh check-exemptions` passes.
---
.github/trivy/trivyignore.yaml | 1 -
LICENSE.iceberg | 1 -
iceberg/iceberg-common/build.gradle.kts | 5 +++++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/trivy/trivyignore.yaml b/.github/trivy/trivyignore.yaml
index e3f06de1ad..d25d10e7f3 100644
--- a/.github/trivy/trivyignore.yaml
+++ b/.github/trivy/trivyignore.yaml
@@ -212,7 +212,6 @@ vulnerabilities:
# com.nimbusds/nimbus-jose-jwt
- id: CVE-2023-52428
purls:
- - pkg:maven/com.nimbusds/[email protected]
- pkg:maven/com.nimbusds/[email protected]
expired_at: 2027-02-07
statement: "Pre-existing finding, tracked in apache/gravitino#14777."
diff --git a/LICENSE.iceberg b/LICENSE.iceberg
index 43d50098e2..c7457a95c8 100644
--- a/LICENSE.iceberg
+++ b/LICENSE.iceberg
@@ -285,7 +285,6 @@
JBoss Logging
JBoss Threads
JCasbin
- JCIP Annotations
Apache Java Data Objects (JDO)
JetS3t
JJWT
diff --git a/iceberg/iceberg-common/build.gradle.kts
b/iceberg/iceberg-common/build.gradle.kts
index 95d7fb8fd5..dbcc935ecf 100644
--- a/iceberg/iceberg-common/build.gradle.kts
+++ b/iceberg/iceberg-common/build.gradle.kts
@@ -33,6 +33,11 @@ dependencies {
constraints {
implementation(libs.xnio.api)
}
+ // Raise the nimbus-jose-jwt pulled in by kerb-simplekdc (9.30.1) to the
version in the catalog,
+ // which is the one already used by the server.
+ constraints {
+ implementation(libs.nimbus.jose.jwt)
+ }
implementation(project(":api"))
implementation(project(":catalogs:catalog-common"))