-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>enhancement
Description
This ticket has been raised from implementing the security API key functionality in the .NET client 6.7.0 - elastic/elasticsearch-net#3684
Documentation
- https://www.elastic.co/guide/en/elasticsearch/reference/7.0/security-api-invalidate-api-key.html
- The Request Body documentation for the
realm_nameandusernamementions the parametersapi_key_idandapi_key_name, but these parameters are not declared, should they beidandname?
- The Request Body documentation for the
API usage
- The create API key method always requires
role_descriptors, even if empty. For example:
POST /_security/api_key
{
"name": "my-api-key",
"role_descriptors": {}
}
It would be more favourable if this parameter could be null or omitted altogether and for the behaviour to still be the same as if an empty object declaration {} was provided. The .NET client default behaviour is to omit properties that are null (by default), having to specify an empty value requires workarounds
- Interactions with the API require a user with the
superuserrole.
REST JSON specs
- The specifications have dropped the
xpack.*prefix in the filename and specification key name. Not an issue per se, but it is inconsistent with the other APIs in6.7.0
Metadata
Metadata
Assignees
Labels
:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>enhancement