elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
695 stars 71 forks source link

[DOCS] Api key format doesn't match current UI #235

Open Dig-Doug opened 1 week ago

Dig-Doug commented 1 week ago

The ApiKey credential currently asks for a key id and an api key. However, in the elasticsearch cloud UI, API keys don't provide these components separately. Instead, they provide base64(keyid + ":" + key) as one string. Since you also give API keys a name, my initial thought was to provide the api key name as the id and then the base64 key as the value.

Either the rust client should be updated to take this format or the docs should be updated to make it clear how to get these values.