elasticsearch/libs/entitlement/agent
Lorenzo Dematté 2d9fc30f62
Initialization class as argument to EntitlementAgent (#127815)
Preliminary step for test entitlement initialization, extracted from #127814
2025-05-08 10:22:02 +02:00
..
src/main/java/org/elasticsearch/entitlement/agent Initialization class as argument to EntitlementAgent (#127815) 2025-05-08 10:22:02 +02:00
build.gradle Dynamic entitlement agent (#116125) 2024-11-06 00:07:52 +01:00
README.md Dynamic entitlement agent (#116125) 2024-11-06 00:07:52 +01:00

Entitlement Agent

This is a java agent that instruments sensitive class library methods with calls into the entitlement-bridge module to check for permissions granted under the entitlements system.

The entitlements system provides an alternative to the legacy SecurityManager system, which is deprecated for removal. With this agent, the Elasticsearch server can retain some control over which class library methods can be invoked by which callers.

This module is responsible for inserting the appropriate bytecode to achieve enforcement of the rules governed by the main entitlement module.

It is not responsible for permission granting or checking logic. That responsibility lies with the main entitlement module.