I created an API key and left the other settings apart from run-as as default (i.e. wide open) and set run as to a user with a role that has the desired priviliges.
Will this key have the restriction of the assigned role?
I would hope yes! : )
I created an API key and left the other settings apart from run-as as default (i.e. wide open) and set run as to a user with a role that has the desired priviliges.
Will this key have the restriction of the assigned role?
I would hope yes! : )
Did you create the API key with something like the following
POST _security/api_key
{
"name": "k1",
"role_descriptors": {
"x": {
"run_as": [
"foo"
]
}
}
}
If yes, the API key will only have the privilege to run-as user foo and nothing else.
That's correct
© 2020. All Rights Reserved - Elasticsearch
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.