RANGER-5666: update graalvm version to 25.1.3 - part 2#1063
Merged
Conversation
Bundle GraalJS 25.1.3 runtime JARs in the remaining plugin and server assembly tarballs so JavaScript policy conditions work on JDK 17+.
c8104b1 to
dbd71dd
Compare
mneethiraj
approved these changes
Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backfill the GraalJS 25.1.3 runtime JAR whitelist into 13 remaining plugin/server assembly descriptors so JavaScript policy conditions work on JDK 17+.
Part 1 (PR #1052) updated hdfs, hive, hbase, yarn, and solr. This PR covers:
knox-agent.xmllib/ranger-knox-plugin-implstorm-agent.xmllib/ranger-storm-plugin-implplugin-kafka.xmllib/ranger-kafka-plugin-implplugin-atlas.xmllib/ranger-atlas-plugin-implplugin-elasticsearch.xmllib/ranger-elasticsearch-plugin/ranger-elasticsearch-plugin-implplugin-kylin.xmllib/ranger-kylin-plugin-implplugin-ozone.xmllib/libext/ranger-ozone-plugin-implplugin-presto.xmllib/ranger-presto-plugin-implplugin-sqoop.xmllib/ranger-sqoop-plugin-implplugin-kms.xmllib/ranger-kms-plugin-implplugin-trino.xmllibkms.xmlews/webapp/WEB-INF/lib/ranger-kms-plugin-implpdp.xmllibWhy
agents-commonfor JavaScript policy condition evaluation when Nashorn is unavailable (JDK 15+).graalvm.versionand added GraalVM JAR includes to hdfs, hive, hbase, and yarn.plugin-solr.xml.js-language, etc.) in those five assemblies.agents-common/pom.xmldeclares GraalJS dependencies, but most plugin tarballs are built with Maven Assembly explicit JAR whitelists (includeDependencies=true+<includes>). Transitive deps fromranger-plugins-commonare not bundled unless listed.Any plugin extending
RangerBasePluginthat evaluates JS policy conditions on JDK 17+ needs GraalJS on the classpath at runtime. Reference:distro/src/main/assembly/hdfs-agent.xml.GraalVM block added (per assembly)
Test plan
mvn -pl agents-common test -Dtest=RangerRequestScriptEvaluatorTestmvn -f distro/pom.xml package -Pranger-kafka-plugin -DskipTests(assembly BUILD SUCCESS)build-17full reactor verifytar tzf target/ranger-*-kafka-plugin.tar.gz | grep graalvm