I faced the same issue. I configured a role using the HTTP API that allows the user to only index and search data. The search part worked fine but the indexing was not working.
It kept throwing the below error. The only way to fix this was to add the indices:data/write/bulk permission to the cluster_permissions. What does this permission mean?
[security_exception] no permissions for [indices:data/write/bulk] and User [name=arn:aws:I am::<account_id>:user/my_user, backend_roles=[], requestedTenant=null]
My request body payload for the PUT /_opendistro/_security/api/roles/search_and_index HTTP API
Hi All,
Cluster indices:data/write/bulk permissions enables you to write to index that you specify in index level permissions. Both permissions are needed for bulk operations.
I think it is very confusing to require indicies permissions to be added to the Cluster permission, and that cluster_all doesn’t actually have “all” the permissions, just the cluster ones, so cluster_composite_ops or the indices permissions have to be added also.
Yes, there are a number of permissions that need to be configured on both levels, Alternatively there are roles like “own_index” that has these permissions added out of the box on cluster level.