[英]How to restrict index creation/deletion on Elasticsearch cluster?
How to authenticate/secure index creation/deletion operations in ElasticSearch 1.0.0 cluster? 如何在ElasticSearch 1.0.0集群中认证/保护索引创建/删除操作? also would like to know how to disable delete index operation on ElasticSearch HQ plugin? 还想知道如何在ElasticSearch HQ插件上禁用删除索引操作? I tried following settings in elasticsearch.yml file, but still allows user to perform the operations. 我尝试了以下Elasticsearch.yml文件中的设置,但仍然允许用户执行操作。
action.disable_delete_all_indices: true action.auto_create_index: false 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. 编写一个自定义ConnectionPool
类,并使用该类代替客户端附带的默认连接池,并将auth参数设为必需。
Now you can authenticate user every time. 现在,您可以每次对用户进行身份验证。
You can use Pimple , It is a simple PHP Dependency Injection Container 您可以使用Pimple ,这是一个简单的PHP依赖注入容器
example: 例:
$elasticsearch_params['connectionParams']['auth'] =
array($collection['username'],$collection['password'],'Basic')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.