Darshil Shah
Darshil Shah

Reputation: 1

HOW TO PREVENT USER FROM DELETING INDEX IN ELASTICSEARCH

i have created one role suppose X role in kibana which restricts user from deleting any index as i was giving create,read and write privilege so no user with X role can delete any of the index. but , users are able to delete indexes with _delete_by_query API. How can i restrict users from deleting any of the index as we have critical data in it !

Upvotes: 0

Views: 948

Answers (1)

Val
Val

Reputation: 217344

The _delete_by_query API doesn't delete the index, but the documents present in that index.

The write privilege allows to create new documents but also to delete some.

Upvotes: 2

Related Questions