CreateApiKey response now returns the base64 encoded credentials (#77351)

This PR adds a new "encoded" field to the response of CreateApiKey API.
It is the base64 encoded value of "id:api_key". The field is added for
the convenience of the API consumers so that no extra
computation/encoding is needed. Sometimes the extra computation/encoding
can be error prone or not feasible for simple clients.

Resolves: #50235
This commit is contained in:
Yang Wang 2021-09-14 14:22:35 +10:00 committed by GitHub
parent 88fcb67839
commit 00c3b5c8d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 84 additions and 79 deletions

View file

@ -36,5 +36,5 @@ expiration.
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------
<1> the API key that can be used to authenticate to Elasticsearch.
<1> the API key credentials that can be used to authenticate to Elasticsearch.
<2> expiration if the API keys expire