原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/url-access-control.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/url-access-control.html
本地英文版地址: ../en/url-access-control.html
重要: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 当前版本文档。
URL-based access controledit
Many users use a proxy with URL-based access control to secure access to Elasticsearch indices. For multi-search, multi-get, and bulk requests, the user has the choice of specifying an index in the URL and on each individual request within the request body. This can make URL-based access control challenging.
To prevent the user from overriding the index which has been specified in the
URL, add this setting to the elasticsearch.yml
file:
rest.action.multi.allow_explicit_index: false
The default value is true
, but when set to false
, Elasticsearch will
reject requests that have an explicit index specified in the request body.