Skip to content

Conversation

@ldematte
Copy link
Contributor

@ldematte ldematte commented Mar 3, 2025

Follows #123824

Relates to ES-10994

@ldematte ldematte added >non-issue auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 :Core/Infra/Entitlements Entitlements infrastructure test-windows Trigger CI checks on Windows labels Mar 7, 2025
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Looks good, a couple minor questions/suggestion.

FileData.ofPath(bootstrapArgs.modulesDir(), READ),
FileData.ofPath(bootstrapArgs.configDir(), READ),
FileData.ofPath(bootstrapArgs.logsDir(), READ_WRITE),
FileData.ofPath(bootstrapArgs.libDir(), READ),
Copy link
Member

Choose a reason for hiding this comment

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

Is this from native lib finding the platform dir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC this was also started from PluginService; I guess you are correct and it is from plugins with native libraries, but I can double check.

@ldematte ldematte enabled auto-merge (squash) March 8, 2025 16:50
@ldematte
Copy link
Contributor Author

ldematte commented Mar 8, 2025

Failure on Windows is unrelated and covered by #124430; as a fix is on its way, I'm removing the test-windows label to allow merging

@ldematte ldematte removed test-windows Trigger CI checks on Windows test-entitlements labels Mar 8, 2025
@ldematte ldematte merged commit a15aee6 into elastic:main Mar 9, 2025
17 of 18 checks passed
ldematte added a commit to ldematte/elasticsearch that referenced this pull request Mar 9, 2025
ldematte added a commit to ldematte/elasticsearch that referenced this pull request Mar 9, 2025
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
8.x
9.0

ldematte added a commit to ldematte/elasticsearch that referenced this pull request Mar 9, 2025
elasticsearchmachine pushed a commit that referenced this pull request Mar 9, 2025
elasticsearchmachine pushed a commit that referenced this pull request Mar 9, 2025
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Mar 11, 2025
ldematte added a commit that referenced this pull request Mar 12, 2025
…ke 2) (#124429)

Writing tests for #123861, turns out that #124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
ldematte added a commit to ldematte/elasticsearch that referenced this pull request Mar 12, 2025
…ke 2) (elastic#124429)

Writing tests for elastic#123861, turns out that elastic#124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
elasticsearchmachine pushed a commit that referenced this pull request Mar 12, 2025
…ke 2) (#124429) (#124627)

Writing tests for #123861, turns out that #124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
ldematte added a commit to ldematte/elasticsearch that referenced this pull request Mar 13, 2025
…ke 2) (elastic#124429)

Writing tests for elastic#123861, turns out that elastic#124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
ldematte added a commit to ldematte/elasticsearch that referenced this pull request Mar 13, 2025
…ke 2) (elastic#124429)

Writing tests for elastic#123861, turns out that elastic#124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
elasticsearchmachine pushed a commit that referenced this pull request Mar 13, 2025
…ke 2) (#124429) (#124703)

Writing tests for #123861, turns out that #124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
elasticsearchmachine pushed a commit that referenced this pull request Mar 13, 2025
…ke 2) (#124429) (#124704)

Writing tests for #123861, turns out that #124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
albertzaharovits pushed a commit to albertzaharovits/elasticsearch that referenced this pull request Mar 13, 2025
…ke 2) (elastic#124429)

Writing tests for elastic#123861, turns out that elastic#124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Mar 13, 2025
…ke 2) (elastic#124429)

Writing tests for elastic#123861, turns out that elastic#124195 is not enough.
We really need new IT test cases for "always allowed" actions: in order to be sure they are allowed, we need to setup the plugin with no policy.
This PR adds test cases for that, plus the support for writing test functions that accept one Environment parameter: many test paths we test and allow/deny are relative to paths in Environment, so it's useful to have access to it (see readAccessConfigDirectory as an example)
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/Entitlements Entitlements infrastructure >non-issue Team:Core/Infra Meta label for core/infra team v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants