I am trying to get the role_descriptors I supplied for the api_key. According to the doc, a simple GET call should return this but the response does not include it at all. The following is an example
Thanks for correcting the JSON; I manually modified the production payload and I am 100% sure I submitted the right payload when I generated the api key. Otherwise, we would have an outage in the prod. I updated it in the original post.
Welll assuming you are logged in as the elastic user this should work...
I am not an admin and UI is the only way I can make API calls; I login to Elastic Cloud, "Manage" next to the cloud deployment, and select "API Console". From there, I run the API calls. Maybe this is a permission issue for my user?
Thanks for trying it from UI. I agree that it has something to do with privileges.
I have little knowledge in user security model in Elasticsearch and I don't know which permission is missing. Could you direct me to a doc or something? (Admin will ask which permission I need. One thing he will NOT give away is a general read permission since we limit the access to the customer data)
Thanks for checking. That may be the case; we are using Elastic Stack version 7.13. I did check some old doc (7.17) and the example in it did not have the content for role_descriptor so I was not sure if it was supposed to return or not.
I will ask my admin if we have any plan to upgrade the version. If not, I guess I am stuck on this issue.
7.13 is three and half years old, has a number of published vulnerabilities, and is no longer supported or maintained. You should definitely encourage your admin to upgrade.
All of 7.x will cease to be maintained once 9.0 is released so you should be planning to move to 8.x soon.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.