Elasticsearch version:
8.5.3
Kibana version (if relevant):
8.5.3
Describe the issue:
Following the documentation (X-Pack Machine Learning | Security for Elasticsearch | Search Guard) the ML setup is done on every elastic node (elasticsearch.yml):
xpack.security.enabled: false
xpack.ml.enabled: true
The SGS_XP_MACHINE_LEARNING role is granted to the user. During the ML job creation the following errors can be seen:
{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “[security_exception: [security_exception] Reason: Insufficient permissions]: Insufficient permissions”,
“attributes”: {
“body”: {
“error”: {
“root_cause”: [
{
“type”: “security_exception”,
“reason”: “Insufficient permissions”,
“missing_permissions”: “cluster:admin/xpack/ml/job/estimate_model_memory”
}
],
“type”: “security_exception”,
“reason”: “Insufficient permissions”,
“missing_permissions”: “cluster:admin/xpack/ml/job/estimate_model_memory”
},
“status”: 403
}
}
}
{
“statusCode”: 403,
“error”: “Forbidden”,
“message”: “[security_exception: [security_exception] Reason: Insufficient permissions]: Insufficient permissions”,
“attributes”: {
“body”: {
“error”: {
“root_cause”: [
{
“type”: “security_exception”,
“reason”: “Insufficient permissions”,
“missing_permissions”: “cluster:admin/xpack/ml/job/put”
}
],
“type”: “security_exception”,
“reason”: “Insufficient permissions”,
“missing_permissions”: “cluster:admin/xpack/ml/job/put”
},
“status”: 403
}
}
}
How can we solve this issue?
Best regards,
korodif