-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[CI] Auditing log fails for API key realm name during BWC with version prior to v7.5 #59425
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
Labels
:Security/Audit
X-Pack Audit logging
Team:Security
Meta label for security team
>test-failure
Triaged test failures from CI
Comments
ywangd
added a commit
that referenced
this issue
Jul 13, 2020
API key realm name is not available in authentication metadata prior to v7.5. The issue is tracked at #59425
ywangd
added a commit
that referenced
this issue
Jul 13, 2020
Pinging @elastic/es-security (:Security/Audit) |
albertzaharovits
added a commit
that referenced
this issue
Jul 14, 2020
The `Authentication` object that gets built following an API Key authentication contains the realm name of the owner user that created the key (which is audited), but the specific field used for storing it changed in #51305 . This PR makes it so that auditing tolerates an "unfound" realm name, so it doesn't throw an NPE, because the owner realm name is not found in the expected field. Closes #59425
albertzaharovits
added a commit
that referenced
this issue
Jul 14, 2020
The `Authentication` object that gets built following an API Key authentication contains the realm name of the owner user that created the key (which is audited), but the specific field used for storing it changed in #51305 . This PR makes it so that auditing tolerates an "unfound" realm name, so it doesn't throw an NPE, because the owner realm name is not found in the expected field. Closes #59425
I believe this is the same issue: https://gradle-enterprise.elastic.co/s/x3e4t32i6m3jq that failed today |
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this issue
Jul 15, 2020
…ill work in a mixed cluster} Relates to elastic#59425
Muted this since it has failed a couple of times today |
ywangd
added a commit
that referenced
this issue
Jul 16, 2020
RoleDescriptors are mandatory prior to v7.3 Relates: #59425
Fixed with #59680 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Security/Audit
X-Pack Audit logging
Team:Security
Meta label for security team
>test-failure
Triaged test failures from CI
The failed test
UpgradeClusterClientYamlTestSuiteIT.test {p0=mixed_cluster/120_api_key_auth/Test API key authentication will work in a mixed cluster}
.ApiKey realm name is not available in Authentication metadata till v7.5. Hence auditing log fails to retrieve it for older versions.
The failed test has been configured to run only for v7.5 and up. Once this issue is fixed, it can be renabled for older versions by removing these two lines.
Build scan: https://gradle-enterprise.elastic.co/s/zyiwyg5feg74a
The text was updated successfully, but these errors were encountered: