简体   繁体   中英

How to restrict index creation/deletion on Elasticsearch cluster?

How to authenticate/secure index creation/deletion operations in ElasticSearch 1.0.0 cluster? also would like to know how to disable delete index operation on ElasticSearch HQ plugin? I tried following settings in elasticsearch.yml file, but still allows user to perform the operations.

action.disable_delete_all_indices: true action.auto_create_index: false

Apprrecaite any inputs.

Write a custom ConnectionPool class and use that instead of the default connection pools that ship with the client and make auth parameters as mandatory.

Now you can authenticate user every time.

You can use Pimple , It is a simple PHP Dependency Injection Container

example:

$elasticsearch_params['connectionParams']['auth'] = 
                   array($collection['username'],$collection['password'],'Basic')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM