no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]

89 views
Skip to first unread message

Somer Rabee

unread,
Oct 2, 2025, 7:04:25 AM (8 days ago) Oct 2
to Wazuh | Mailing List

Dear all,

I am trying to deploy the Llama3 model via the OpenSearch ML plugins and integrate it with the OpenSearch Assistant Chatbot.

The model deployment was successful. However, when attempting to create an agent to connect it to OpenSearch Assistant using the following request:

PUT .plugins-ml-config/_doc/os_chat
{
  "type": "os_chat_root_agent",
  "configuration": {
    "agent_id": "Agent-id"
  }
}

I received this error:

"error": {
  "root_cause": [
    {
      "type": "security_exception",
      "reason": "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
    }
  ]
}

After further investigation, I found that .plugins-ml-config is a system index and requires special permissions even for "Admin" user. I have tried various options based on both Wazuh and OpenSearch documentation, but without success.

Could you please provide any guidance or suggestions on how to resolve this error, or possible workarounds to enable creating an agent for OpenSearch Assistant?


i have tried a variety of options depending on Wazuh and Openseach documentations but no success.

any help or suggestion to solve this error or work around it?

Note: I'm using Wazuh 4.12

Regards.

Chukwudalu Chisimdi Okonkwo

unread,
Oct 2, 2025, 5:01:14 PM (8 days ago) Oct 2
to Wazuh | Mailing List
Hello Somer, 

Although we do not have any guide yet on creating an agent for OpenSearch Assistant, let me research how you can gain permissions for the system index and revert with feedback.

Somer Rabee

unread,
Oct 5, 2025, 3:03:52 AM (5 days ago) Oct 5
to Wazuh | Mailing List

Hi Chukwudalu,

Thanks for your kind reply.

I noticed in this Wazuh blog post — https://wazuh.com/blog/leveraging-claude-haiku-in-the-wazuh-dashboard-for-llm-powered-insights/ — that the same PUT .plugins-ml-config/_doc/os_chat command was used successfully. That suggests there is a method to obtain the necessary permissions for OpenSearch system indices.

Could you please advise how to grant the appropriate permissions (or point me to the exact steps) to allow creating an agent in .plugins-ml-config? Any guidance is much appreciated.

Thanks in advance,

Chukwudalu Chisimdi Okonkwo

unread,
Oct 6, 2025, 11:55:29 AM (4 days ago) Oct 6
to Wazuh | Mailing List
Hello Sommer, 

Kindly enable the plugin indices as shown to enable the system indices in the attached image. The setting is on the path,   /etc/wazuh-indexer/opensearch.yml

Do let me know if this resolved the issue.
image (9).png

Somer Rabee

unread,
Oct 7, 2025, 5:15:04 AM (3 days ago) Oct 7
to Wazuh | Mailing List
Hello Chukwudalu,

Thanks for your kind reply.

I was considering changing the parameter plugins.security.system_indices.enabled: false, but I was concerned about potential security risks, since these indices are protected for valid reasons according to the OpenSearch documentation.

My question is: would disabling this setting (plugins.security.system_indices.enabled: false) introduce any security issues if applied in a production environment?

Best regards,

Chukwudalu Chisimdi Okonkwo

unread,
Oct 8, 2025, 4:29:54 PM (2 days ago) Oct 8
to Wazuh | Mailing List
Hello Somer, 

Your concerns are indeed valid. However, the risk involved is with a non priviledged user having access to read or modify the index settings, as the system indices security responsibility was handled by primarily handled by the opensearch. But by moving it to false, it removes the boundary for access to it

Somer Rabee

unread,
Oct 9, 2025, 2:29:11 AM (yesterday) Oct 9
to Wazuh | Mailing List
Hi Chukwudalu,

Setting the value of plugins.security.system_indices.enabled to false resolves the issue; however, I believe this introduces a potential security risk, so I wouldn’t recommend changing it in a production environment.

Is there an alternative solution that preserves the protection of system indices, or is disabling this parameter the only available option?


Thanks in advance

Matías Mercado

unread,
Oct 9, 2025, 5:12:36 PM (19 hours ago) Oct 9
to Wazuh | Mailing List
Hi Somer,
You should change the option to "false", make your changes, and then rollback to "true". That is only a quick trick to modify or fix this issue, but the options should always remain on "true".
Regards,
Matías.
Reply all
Reply to author
Forward
0 new messages