geyanggang opened a new pull request, #15003: URL: https://github.com/apache/gravitino/pull/15003
### What changes were proposed in this pull request? - Exclude `org.jline` from `libs.bundles.kerby` in `server-common/build.gradle.kts`, the same way `iceberg/iceberg-common/build.gradle.kts` already does. - Remove the `[email protected]` and `[email protected]` purls from `.github/trivy/trivyignore.yaml`. The `3.9.0` purls stay, they come from the Hive metastore 2 libs. ### Why are the changes needed? `org.jline:jline` 3.22.0 came in through `kerb-simplekdc` -> `kerb-admin` (Kerby 2.0.3) and was packaged as `libs/jline-3.22.0.jar` in the server. In Kerby 2.0.3 only `RemoteAdminClientTool` (the interactive admin command line tool) references JLine. The server only uses `Keytab` and `PrincipalName`, so the library is unused. Fix: #15002 ### Does this PR introduce _any_ user-facing change? No. `jline-3.22.0.jar` is no longer in the server `libs` directory. ### How was this patch tested? - Compared the `runtimeClasspath` of `:server` and `:lineage` before and after: the only difference is the removal of `org.jline:jline:3.22.0`. - Scanned all Kerby 2.0.3 jars: `RemoteAdminClientTool` is the only class that references `org/jline`. - `./gradlew :server:compileTestJava :lineage:compileJava :iceberg:iceberg-rest-server:compileJava` passes. - `./gradlew :server-common:test -PskipITs` passes except for `TestHttpsServerAuthentication` mutual TLS tests, which also fail without this change. - `./gradlew :server-common:spotlessCheck`, `.github/trivy/scan.sh check-exemptions` and `node --test .github/scripts/tests/*.test.cjs` pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
