-
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
Consider owner
flag when retrieving/invalidating keys with API key service
#45421
Consider owner
flag when retrieving/invalidating keys with API key service
#45421
Conversation
…service Actual invocation of API key service now takes `owner` flag from the request into consideration by setting the values for `realm` and `username` as per the current authentication. This allows for retrieving or invalidating API keys owned by the current authenticated user. Relates: #
Pinging @elastic/es-security |
Failed due to #43673 |
...security/src/main/java/org/elasticsearch/xpack/security/action/TransportGetApiKeyAction.java
Show resolved
Hide resolved
...y/src/main/java/org/elasticsearch/xpack/security/action/TransportInvalidateApiKeyAction.java
Show resolved
Hide resolved
...k/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyIntegTests.java
Outdated
Show resolved
Hide resolved
...k/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyIntegTests.java
Outdated
Show resolved
Hide resolved
...k/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/ApiKeyIntegTests.java
Outdated
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.
LGTM
existing grok test failure |
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
Actual invocation of API key service now takes
owner
flag from therequest into consideration by setting the values for
realm
andusername
as per the current authentication before invoking API key service.This allows for retrieving or invalidating API keys owned by the current
authenticated user.
Relates: #40031