-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Improve enrollment API keys OpenAPI spec (#191585)
## Summary Closes #155550 Relates #190402 Users have reported unclear expectations from [Fleet Enrollment API Keys API](https://www.elastic.co/guide/en/fleet/current/fleet-apis.html#EnrollmentAPIKeys). These include: - Enrollment token names must be unique (impacts token creation). - Deleting an enrollment token doesn't actually delete, it revokes (invalidates it, marks it as inactive). - Revoked tokens are still returned (with `"active": false`) by `GET /api/fleet/enrollment_api_keys`. - It's not clear what happens to the API key after it's been invalidated. This PR adds some details to the OpenAPI spec. I believe, however, that some improvements could also be brought to the documentation itself in order to fully address the above concerns. The [Fleet enrollment tokens](https://www.elastic.co/guide/en/fleet/8.15/fleet-enrollment-tokens.html) doc page already describes enrollment token creation and deletion, perhaps the following information could be added: - Why the token name must be unique. - Add an explanation around revoking tokens (marked as inactive, will be removed after expiration) with a link to the [retention period setting in Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-settings.html#api-key-service-settings-delete-retention-period). - A mention that inactive tokens are still returned by the GET API and visible in the UI until they are cleaned up. A final note around the variations in terminology (not a big issue, I think): - "enrollment tokens" in the docs vs. "enrollment API keys" in the OpenAPI spec (I thought it would be best to keep the latter consistent) - "[revoke token](https://www.elastic.co/guide/en/fleet/8.15/fleet-enrollment-tokens.html#revoke-fleet-enrollment-tokens)" vs. "[invalidate API key](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html)" --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
9babac0
commit 230d274
Showing
5 changed files
with
97 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters