Blocking writes and new index creation

Hi,

We have a usecase where we need to block all writes on present indices as well as prevent creation of any new index. While exploring options I found below solution -

  1. Block index level writes, but again it won't prevent new index creation.
  2. In config/elasticsearch.yml use action.auto_create_index: false which will prevent automatic index creation. Thus will not allow users to create new indices without specifying mapping.

Let me know if there is some clean solution or plugin which can block all writes without effecting any read queries and is a reversible setting.

Thanks
-Rishabh