ElasticSearch add authentication to only DELETE index API

牧云@^-^@ 提交于 2020-04-18 06:31:10

问题


I have hosted a shared elasticsearch index (IP Restricted though using GCP Firewall) but I want to add any kind of security on this Index so that others can do any operations freely as they are doing now without any notice but dont want to allow anybody except (having auth) to delete the entire Index.

My ElasticSearch details:

{
  "name" : "node-1",
  "cluster_name" : "production",
  "cluster_uuid" : "<hash>",
  "version" : {
    "number" : "7.1.1",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "7a013de",
    "build_date" : "2019-05-23T14:04:00.380842Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

How can I achieve this?

P.S: I am using GCP so any rules/ help on that side would be also helpful related to managing DELETE request of this kind.

来源:https://stackoverflow.com/questions/60923264/elasticsearch-add-authentication-to-only-delete-index-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!