You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has been announced a while ago that SecurityManager is going to be phased out from the JDK. The first step, the deprecation of the SecurityManager (JEP-411), has been landed in JDK 17 and issues the following warnings on OpenSearch builds or server startup:
WARNING: System::setSecurityManager will be removed in a future release
Caused by: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:416)
What is the problem? What is preventing you from meeting the requirements?
The OpenSearch primary protection mechanism against plugins abuse or misuse is built on top of SecurityManager. It is very likely, it is going to be removed from the JDK-19+.
What are you proposing? What do you suggest we do to solve the problem or improve the existing situation?
There is no alternative or replacement for the SecurityManager. One of the options is to just drop it, it might be considered risky but combined with Plugin Sandbox (see please [1], [2]) it may sounds like a viable option.
What are your assumptions or prerequisites?
It would be great to have Plugin Sandbox design (and ideally, implementation) finalized.
What are remaining open questions?
Basically, the main question is to drop or to replace (bytecode instrumentation? custom classloaders? java agent?).
It has been announced a while ago that
SecurityManager
is going to be phased out from the JDK. The first step, the deprecation of theSecurityManager
(JEP-411), has been landed in JDK 17 and issues the following warnings onOpenSearch
builds or server startup:The JDK 18 pushes it even further and now fails on startup (see please https://bugs.openjdk.java.net/browse/JDK-8270380), running OpenSearch builds or server on JDK 18 EA fails with:
What is the problem? What is preventing you from meeting the requirements?
The OpenSearch primary protection mechanism against plugins abuse or misuse is built on top of
SecurityManager
. It is very likely, it is going to be removed from the JDK-19+.What are you proposing? What do you suggest we do to solve the problem or improve the existing situation?
There is no alternative or replacement for the
SecurityManager
. One of the options is to just drop it, it might be considered risky but combined with Plugin Sandbox (see please [1], [2]) it may sounds like a viable option.What are your assumptions or prerequisites?
It would be great to have Plugin Sandbox design (and ideally, implementation) finalized.
What are remaining open questions?
Basically, the main question is to drop or to replace (bytecode instrumentation? custom classloaders? java agent?).
OpenSearch
Plugins
[1] opensearch-project/OpenSearch#1572
[2] opensearch-project/OpenSearch#1422
The text was updated successfully, but these errors were encountered: