-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Set xpack.security.enabled to true for all licenses #72300
Conversation
@elasticmachine run elasticsearch-ci/packaging-sample-unix |
@elasticmachine run elasticsearch-ci/packaging-sample-unix |
1 similar comment
@elasticmachine run elasticsearch-ci/packaging-sample-unix |
@elasticmachine run elasticsearch-ci/packaging-sample-unix (not running these in vein waiting for the tests to auto-fix themselves, but rather attempting to get some useful logs from the CI workers :) ) |
...ugin/security/src/main/java/org/elasticsearch/xpack/security/authz/AuthorizationService.java
Show resolved
Hide resolved
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/Security.java
Outdated
Show resolved
Hide resolved
...y/src/main/java/org/elasticsearch/xpack/security/authz/DlsFlsRequestCacheDifferentiator.java
Show resolved
Hide resolved
…nents that are only loaded when security _is_ enabled
...erTest/java/org/elasticsearch/xpack/security/authz/SecuritySearchOperationListenerTests.java
Show resolved
Hide resolved
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/ApiKeyService.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/TokenService.java
Show resolved
Hide resolved
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/SecurityTests.java
Show resolved
Hide resolved
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/SecurityTests.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great effort on this one Ioannis!
Looks like you've almost worked through all the minor points I had in real-time, so I think this is good to merge.
@elasticmachine run elasticsearch-ci/part-2-fips |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@albertzaharovits I will merge this as is Monday morning, could you unmute the related Packaging Tests in #76124 ? |
@jkakavas yes, for sure. |
During installation, we start elasticsearch a couple of times and check that we can connect to it. Since elastic/elasticsearch#72300 this tests ( and installation for that matter) has been failing since security is enabled by default and we make requests without credentials. This change, as a temporary measure, makes it so that we start elasticsearch with security explicitly disabled temporarily during installation so that we can make the necessary connection test requests without credentials. In a follow-up, we will adjust the Formula to take advantage of newly added functionality, set and show the password for the elastic user during installation (similar to what we do in elastic/elasticsearch#75144). We can then also use this password to make the test requests without needing to disable authN.
* Adjust installation test During installation, we start elasticsearch a couple of times and check that we can connect to it. Since elastic/elasticsearch#72300 this tests ( and installation for that matter) has been failing since security is enabled by default and we make requests without credentials. This change, as a temporary measure, makes it so that we start elasticsearch with security explicitly disabled temporarily during installation so that we can make the necessary connection test requests without credentials. In a follow-up, we will adjust the Formula to take advantage of newly added functionality, set and show the password for the elastic user during installation (similar to what we do in elastic/elasticsearch#75144). We can then also use this password to make the test requests without needing to disable authN. * that other test too
This change sets the default value for xpack.security.enabled to true
for all licenses. As such the value is read directly from the node's
settings and not from XPackLicenseState which doesn't need to
keep track of it depending on license changes any more.