Skip to content

[8.18] [Entitlements] Validation checks on paths (#126852) #127055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

ldematte
Copy link
Contributor

Backports the following commits to 8.18:

With this PR we restrict the paths we allow access to, forbidding plugins to specify/request entitlements for reading or writing to specific protected directories.

I added this validation to EntitlementInitialization, as I wanted to fail fast and this is the earliest occurrence where we have all we need: PathLookup to resolve relative paths, policies (for plugins, server, agents) and the Paths for the specific directories we want to protect.

Relates to ES-10918
@ldematte ldematte added :Core/Infra/Entitlements Entitlements infrastructure >enhancement 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 Apr 18, 2025
@elasticsearchmachine elasticsearchmachine merged commit 591a08f into elastic:8.18 Apr 18, 2025
15 checks passed
@ldematte ldematte deleted the backport/8.18/pr-126852 branch April 18, 2025 14:45
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/Entitlements Entitlements infrastructure >enhancement Team:Core/Infra Meta label for core/infra team v8.18.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants