Hi,
I'm faced with strange situation while trying to change password for reserved kibana_system user:
This is looks like vicious circle,
when I'm trying to update password I'm getting: "roles are missing"
when I'm trying to update password and roles I'm getting: "only the password can be changed"
curl -u user -XPOST 'https://hostname:9200/_security/user/kibana_system' -H 'Content-Type: application/json' -d'
{"password": "NEWPASSWORD", "roles": []}'
{
"error": {
"root_cause": [
{
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: user [kibana_system] is reserved and only the password can be changed;"
}
],
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: user [kibana_system] is reserved and only the password can be changed;"
},
"status": 400
}
curl -u user -XPOST 'https://hostname:9200/_security/user/kibana_system' -H 'Content-Type: application/json' -d'
{"password": "NEWPASSWORD"}'
{
"error": {
"root_cause": [
{
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: roles are missing;"
}
],
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: roles are missing;"
},
"status": 400
}