Skip to content

Support file entitlements relative to the user's home directory #122724

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 5 commits into from
Feb 17, 2025

Conversation

mosche
Copy link
Contributor

@mosche mosche commented Feb 17, 2025

Support file entitlements relative to the user's home directory.

Relates to ES-10843

@mosche mosche requested a review from a team as a code owner February 17, 2025 07:39
@mosche mosche removed the request for review from a team February 17, 2025 07:39
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 labels Feb 17, 2025
@mosche mosche added :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged v8.18.0 test-entitlements v8.18.1 v8.19.0 v9.0.0 v9.0.1 and removed needs:triage Requires assignment of a team area label v9.1.0 v8.18.0 labels Feb 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Feb 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@mosche mosche requested a review from a team February 17, 2025 07:40
Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return BaseDir.DATA;
}
throw new PolicyValidationException("invalid relative directory: " + baseDir + ", valid values: [config, data]");
return switch (baseDir) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice IMO, but I think it'll fail backport (8.x is not at this Java lang level IIRC). Just a warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8.17 is at a minimum of Java 17 (based on https://www.elastic.co/support/matrix), so would expect this to be safe for backports as well

@mosche mosche added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) and removed auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Feb 17, 2025
@mosche mosche merged commit 67dc199 into elastic:main Feb 17, 2025
22 checks passed
@mosche mosche deleted the entitlements/relative-home-path branch February 17, 2025 16:56
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0
8.18
8.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.18.1 v8.19.0 v9.0.0 v9.0.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants