You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows本地环境下无法登录OpenSearch Dashboard求助

解决方案

问题根源:你的OpenSearch已经通过plugins.security.disabled: true禁用了Security插件,但OpenSearch Dashboards的配置里仍保留了Security相关的认证配置(用户名密码、security插件参数),导致Dashboards尝试调用Security插件专属的/_plugins/_security/authinfo接口,而该接口因插件禁用不存在,从而触发认证失败错误。

修复步骤:

  • 编辑opensearch-dashboard.yml文件,做以下调整:
    1. 删除opensearch.username和opensearch.password配置项(Security插件禁用后,OpenSearch无需认证)
    2. 删除所有以opensearch_security.开头的配置项(包括多租户、cookie相关设置)

修改后的配置示例:

server.port: 5601
opensearch.hosts: [http://localhost:9200]
opensearch.ssl.verificationMode: none
opensearch.requestHeadersWhitelist: [authorization, securitytenant]

(注:opensearch.requestHeadersWhitelist可保留,后续启用Security插件时无需重新添加)

  • 重启OpenSearch Dashboards服务,新配置生效后,访问Dashboards将不再要求登录,直接进入界面。

若之后需要启用Security插件,只需删除opensearch.yml中的plugins.security.disabled: true,恢复Dashboards中对应的Security配置项,再重启两个服务即可。

内容的提问来源于stack exchange,提问作者Anish Mittal

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.09 18:40:39