-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[CI] FullClusterRestartIT testApiKeySuperuser failing for pre 7.3.0 old clusters #82785
Labels
:Security/Authentication
Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)
Team:Security
Meta label for security team
>test-failure
Triaged test failures from CI
Comments
jkakavas
added
:Security/Authentication
Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)
>test-failure
Triaged test failures from CI
labels
Jan 19, 2022
Pinging @elastic/es-security (Team:Security) |
ywangd
added a commit
to ywangd/elasticsearch
that referenced
this issue
Jan 19, 2022
The role descriptors became optional since version 7.3.0. For earlier versions, they must be specified. This PR specifies them conditionally based on the old cluster version. This also serves a variation of the test to show that dropping write access to system indices from the limiting role will prevent the key from writing to system indices as a whole. Resolves: elastic#82785
FWIW, I've seen this fail on cluster versions as new as 7.9 although not sure if it's the same root cause. |
Thanks Mark. It is not the same root cause but a genuine failure nonetheless. System indices deprecation warning was added in 7.10.0. So the warning expectation should be relaxed. I'll adjust the associated PR to fix this failure as well. |
ywangd
added a commit
that referenced
this issue
Jan 24, 2022
The role descriptors became optional since version 7.3.0. For earlier versions, they must be specified. This PR specifies them conditionally based on the old cluster version. This also serves a variation of the test to show that dropping write access to system indices from the limiting role will prevent the key from writing to system indices as a whole. Resolves: #82785
ywangd
added a commit
to ywangd/elasticsearch
that referenced
this issue
Jan 24, 2022
The role descriptors became optional since version 7.3.0. For earlier versions, they must be specified. This PR specifies them conditionally based on the old cluster version. This also serves a variation of the test to show that dropping write access to system indices from the limiting role will prevent the key from writing to system indices as a whole. Resolves: elastic#82785
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Security/Authentication
Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)
Team:Security
Meta label for security team
>test-failure
Triaged test failures from CI
Before 7.3.0, the role_descriptors field was mandatory in the create api key request ( #43481 ).
This test creates an API key with no explicitly set role descriptors so this request fails when run against a pre 7.3.0 old node. We can adjust the request depending on the version or run the tests only for >= 7.3.0 without losing much coverage in my opinion
Build scan:
https://gradle-enterprise.elastic.co/s/gkezc34izxkn2/tests/:x-pack:qa:full-cluster-restart:v7.0.0%23oldClusterTest/org.elasticsearch.xpack.restart.FullClusterRestartIT/testApiKeySuperuser
Reproduction line:
./gradlew ':x-pack:qa:full-cluster-restart:v7.0.0#oldClusterTest' -Dtests.class="org.elasticsearch.xpack.restart.FullClusterRestartIT" -Dtests.method="testApiKeySuperuser" -Dtests.seed=D55A379AD8E9B4D3 -Dtests.bwc=true -Dtests.locale=en-AU -Dtests.timezone=America/Araguaina -Druntime.java=17
Applicable branches:
8.0
Reproduces locally?:
Yes
Failure history:
https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.restart.FullClusterRestartIT&tests.test=testApiKeySuperuser
Failure excerpt:
The text was updated successfully, but these errors were encountered: