Skip to content

security.clear_api_key_cache does not document all routes. #63885

@Mpdreamz

Description

@Mpdreamz

The tests for security.clear_api_key_cache seems to indicate that ids is optional by allowing to pass an empty string "" for ids.

https://github.com/elastic/elasticsearch/blob/7.10/x-pack/plugin/src/test/resources/rest-api-spec/test/api_key/10_basic.yml#L197-L198

And therefor the tests assumes whatever builds the url will happily build /_security/api_key//_clear_cache.

This is true for the java test runner but this is not true for the more strict clients.

The spec and the RestAction need to explictly define /_security/api_key/_clear_cache as a valid route to clear all API's.

After a quick peek I suspect the same is true for several other security related (clear_*) API's

Metadata

Metadata

Assignees

Labels

:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>bugTeam:SecurityMeta label for security team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions