This is an automated email from the ASF dual-hosted git repository.

jerryshao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 404eaa4340 [Cherry-pick to branch-2.0] [#15002] improvement(deps): 
Exclude the unused JLine library pulled in by Kerby from the server package 
(#15003) (#15040)
404eaa4340 is described below

commit 404eaa434059bdf0b89e0f432c966c59938f3af2
Author: geyanggang <[email protected]>
AuthorDate: Wed Nov 18 19:25:51 2026 +0800

    [Cherry-pick to branch-2.0] [#15002] improvement(deps): Exclude the unused 
JLine library pulled in by Kerby from the server package (#15003) (#15040)
    
    **Cherry-pick Information:**
    - Original commit: 6d60ec058fb7d60304f052b98d83fd56dd5bbb17
    - Target branch: `branch-2.0`
    - Status: ✅ Clean cherry-pick (no conflicts)
---
 .github/trivy/trivyignore.yaml | 3 ---
 server-common/build.gradle.kts | 6 +++++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/trivy/trivyignore.yaml b/.github/trivy/trivyignore.yaml
index 534759100c..80c8e0ddd2 100644
--- a/.github/trivy/trivyignore.yaml
+++ b/.github/trivy/trivyignore.yaml
@@ -742,20 +742,17 @@ vulnerabilities:
   # org.jline/jline-builtins
   - id: CVE-2026-77422
     purls:
-      - pkg:maven/org.jline/[email protected]
       - pkg:maven/org.jline/[email protected]
     expired_at: 2027-02-07
     statement: "Pre-existing finding, tracked in apache/gravitino#14777."
   # org.jline/jline-remote-telnet
   - id: CVE-2026-56740
     purls:
-      - pkg:maven/org.jline/[email protected]
       - pkg:maven/org.jline/[email protected]
     expired_at: 2027-02-07
     statement: "Pre-existing finding, tracked in apache/gravitino#14777."
   - id: CVE-2026-56741
     purls:
-      - pkg:maven/org.jline/[email protected]
       - pkg:maven/org.jline/[email protected]
     expired_at: 2027-02-07
     statement: "Pre-existing finding, tracked in apache/gravitino#14777."
diff --git a/server-common/build.gradle.kts b/server-common/build.gradle.kts
index 25876f3c0c..3c33f1e538 100644
--- a/server-common/build.gradle.kts
+++ b/server-common/build.gradle.kts
@@ -41,7 +41,11 @@ dependencies {
   implementation(libs.bundles.jwt) {
     exclude(group = "com.google.errorprone", module = 
"error_prone_annotations")
   }
-  implementation(libs.bundles.kerby)
+  // Keep the interactive admin shell library (org.jline) out of the server; 
only keytab/principal
+  // types are used, and the shell is only referenced by the kerb-admin 
command line tool.
+  implementation(libs.bundles.kerby) {
+    exclude("org.jline")
+  }
   implementation(libs.bundles.log4j)
   implementation(libs.bundles.metrics)
   implementation(libs.caffeine)

Reply via email to