mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 10:28:28 +00:00
Suppress illegal access in plugin install (#41620)
We use Bouncy Castle to verify signatures when installing official plugins. This leads to illegal access warnings because Bouncy Castle accesses the Sun security provider constructor. This commit adds an add-opens flag to suppress this illegal access.
This commit is contained in:
parent
3b3f7b7e34
commit
fb9f729426
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli \
|
||||
ES_JAVA_OPTS="--add-opens java.base/sun.security.provider=ALL-UNNAMED $ES_JAVA_OPTS" \
|
||||
ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli \
|
||||
ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli \
|
||||
"`dirname "$0"`"/elasticsearch-cli \
|
||||
"$@"
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user