Hey all,
I thought elastic was the superuser account
curl -XPUT -k -u elastic:$pass https://localhost:9200/.ds-.fleet-actions-results-2022.03.22-000001/_settings?pretty -H 'Content-Type: application/json' -d '{"settings": {"number_of_replicas": 0}}'
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "action [indices:admin/settings/update] is unauthorized for user [elastic] with roles [superuser] on indices [.ds-.fleet-actions-results-2022.03.22-000001], this action is granted by the index privileges [manage,all]"
}
],
"type" : "security_exception",
"reason" : "action [indices:admin/settings/update] is unauthorized for user [elastic] with roles [superuser] on indices [.ds-.fleet-actions-results-2022.03.22-000001], this action is granted by the index privileges [manage,all]"
},
"status" : 403
}