【问题标题】:Spring data elastic search using Shield使用 Shield 的 Spring 数据弹性搜索
【发布时间】:2017-04-26 05:43:16
【问题描述】:

我有下面的spring数据弹性搜索配置。

<elasticsearch:transport-client id="client" cluster-name="elasticsearch" 
    cluster-nodes="localhost:9300" />


<bean name="elasticsearchTemplate"
    class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
    <constructor-arg name="client" ref="client" />
</bean>

我计划使用 Shield 保护弹性搜索数据。

那么,我们如何改变上面的配置来传递用户名和密码呢?

【问题讨论】:

标签: elasticsearch spring-data elastic-shield


【解决方案1】:

我认为目前不支持此功能,但有一个开放的拉取请求:https://github.com/spring-projects/spring-data-elasticsearch/pull/152

也类似于Spring Data Elastic Search with Shield

【讨论】:

  • 谢谢。但是 Shield 需要商业许可吗?
  • 是的,有试用许可证,但之后您需要商业许可证。或者,您可以使用 HTTP 反向代理(nginx,...)或使用包含 X-Pack 的 cloud.elastic.co
猜你喜欢
  • 2021-12-12
  • 2018-06-08
  • 2023-04-01
  • 1970-01-01
  • 2021-10-27
  • 2018-02-01
  • 2018-05-07
  • 2014-11-04
  • 2021-08-16
相关资源
最近更新 更多