elasticsearch/distribution
Lorenzo Dematté a4d7297944
Permanently switch from SecurityManager to Entitlements (#124865) (#125117)
The JDK team has completely disabled the Java SecurityManager from Java 24. Elasticsearch has always used the Java SecurityManager as an additional protection mechanism; in order to retain this second line of defense, the Elasticsearch Core/Infra team has been working on the Entitlements project.

Similar to SecurityManager, Entitlements only allow calling specific methods in the JDK when the caller has a matching policy attached. In other words, if some code (in the main Elasticsearch codebase, in a plugin/module, or in a script) attempts to perform a "privileged" operation and it is not entitled to do so, a NotEntitledException will be thrown.

This PR includes the minimal set of changes to always use Entitlements, regardless of system properties or Java version.

Relates to ES-10921
2025-03-18 18:38:45 +02:00
..
archives Reapply "Update Gradle wrapper to 8.13 (#122421)" (#123889) (#123896) 2025-03-05 08:02:13 +01:00
bwc Update BWC versions to support multiple staged releases 2025-01-30 08:22:54 -08:00
docker Fix IronBank hardening_manifest CI test (#124579) 2025-03-12 06:22:10 +11:00
licenses Add license and notice files for commons daemon (#86773) 2022-05-12 17:22:53 -07:00
packages Reapply "Update Gradle wrapper to 8.13 (#122421)" (#123889) (#123896) 2025-03-05 08:02:13 +01:00
src ES|QL query log (#124094) 2025-03-18 16:31:55 +01:00
tools Permanently switch from SecurityManager to Entitlements (#124865) (#125117) 2025-03-18 18:38:45 +02:00
build.gradle Filter module-info.class from entitlements-bridge jar in distribution (#124580) 2025-03-11 13:37:03 -07:00