-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Support retrieval of all API keys #46887
Comments
Pinging @elastic/es-security |
@cjcenizal yes this makes sense to me. A couple of thoughts we could consider as part of this discussion:
|
@bizybot will sort this out. It was an oversight due to making the GET and DELETE APIs support the same set of parameters, and intentionally not wanting an DELETE-everything API.
We do that already. If you look at the
It is intentional that we don't so this. We essentially have 2 APIs (though for reasons of history, it's 1 API with an optional parameter). We try very hard to have APIs that do what they say, and give you errors if you are not permitted to do so, rather than having APIs that significantly change behaviour depending on your access level.
This is a problem today (and not just for API keys, it's also true for listing users). |
This commit adds support to retrieve all API keys if the authenticated user is authorized to do so. This removes the restriction of specifying one of the parameters (like id, name, username and/or realm name) when `owner` is set to `false`. Closes elastic#46887
This commit adds support to retrieve all API keys if the authenticated user is authorized to do so. This removes the restriction of specifying one of the parameters (like id, name, username and/or realm name) when the `owner` is set to `false`. Closes #46887
…7274) This commit adds support to retrieve all API keys if the authenticated user is authorized to do so. This removes the restriction of specifying one of the parameters (like id, name, username and/or realm name) when the `owner` is set to `false`. Closes elastic#46887
Currently,
GET _security/api_key
requires you to provide some identifying information with which to find and retrieve keys. Can we support the retrieval of all API keys by default, in the absence ofid
,name
,realm_name
, andusername
?CC @bizybot @tvernum @bytebilly @bmcconaghy
The text was updated successfully, but these errors were encountered: