-
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
Add warning about derived API keys to docs #62351
Conversation
This updates the Create API Key reference document with information about the limitations of derived API keys. Since ES v7.6.0, API keys that are created from an API key (what we refer to as "derived API keys" must be created with an empty privileges list (to explicitly match the effective behaviour of all earlier versions). This information was included in the release notes, but didn't get added to the API reference. Relates: elastic#53647, elastic#54522, elastic#60154
Pinging @elastic/es-docs (>docs) |
Pinging @elastic/es-security (:Security/Authentication) |
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
possible to create an API key that is a child of another API key, unless the derived | ||
key is created without any privileges. In this case, you must explicitly specify a | ||
role descriptor with no privileges, and the derived API key can be used for | ||
authentication only, but will not have access to call {es} APIs. |
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.
Technically, it is not "only" the authentication, but a few actions that requires "the same user", e.g. it can also call GET _security/api_key?owner=true
. Without complicating things too much by explaining all the details, maybe we could just drop the only
bit.
Co-authored-by: Lisa Cawley <[email protected]>
@elasticmachine update branch |
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, thanks!
This updates the Create API Key reference document with
information about the limitations of derived API keys.
Since ES v7.6.0 (and v6.8.8), API keys that are created from an
API key (what we refer to as "derived API keys") must be created
with an empty privileges list (to explicitly match the effective
behaviour of all earlier versions).
This information was included in the release notes, but didn't get
added to the API reference.
Doc Preview: https://elasticsearch_62351.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/security-api-create-api-key.html
Relates: #53647, #54522, #60154