Skip to content

[8.x] [Entitlements] Integrate PluginsLoader with PolicyManager (#117239)#118055

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
ldematte:backport/8.x/pr-117239
Dec 5, 2024
Merged

[8.x] [Entitlements] Integrate PluginsLoader with PolicyManager (#117239)#118055
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
ldematte:backport/8.x/pr-117239

Conversation

@ldematte
Copy link
Contributor

@ldematte ldematte commented Dec 5, 2024

Backports the following commits to 8.x:

…7239)

This PR expands `PolicyManager` to actually use `Policy` and
`Entitlement` classes for checks, instead of hardcoding them.

It also introduces a separate `PluginsResolver`, with a dedicated
function to map a Class to a Plugin (name). `PluginsResolver` is
initialized with data from `PluginsLoader`, and then its resolve
function is used internally in `PolicyManager` to find a plugin policy
(and then test against the entitlements declared in the policy).
@ldematte ldematte added :Core/Infra/Core Core issues without another label >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Dec 5, 2024
@elasticsearchmachine elasticsearchmachine merged commit aecb48c into elastic:8.x Dec 5, 2024
@ldematte ldematte deleted the backport/8.x/pr-117239 branch December 5, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants