[英]Kibana user forbidden error {“statusCode”:403,“error”:“Forbidden”,“message”:“Forbidden”}
I just setup my xpack in elasticsearch 7.1.0 as below in elasticsearch.yml:我只是在elasticsearch 7.1.0中设置我的 xpack,如下 elasticsearch.yml:
xpack.security.enabled: true discovery.type: single-node
in my elasticsearch.yml xpack.security.enabled: true discovery.type: single-node
Then, i ran >elasticsearch-setup-passwords interactive
and changed all my built-in user passwords.然后,我运行>elasticsearch-setup-passwords interactive
并更改了我所有的内置用户密码。
this is the change i made in Kibana.yml这是我在Kibana.yml中所做的更改
xpack.security.enabled: true
elasticsearch.username: "kibana"
elasticsearch.password: "password@123"
When i restarted Kibana, i ws prompted with a username password page, where i gave kibana/password@123
that i had set in my yml.当我重新启动 Kibana 时,我会提示一个用户名密码页面,我在其中提供了我在 yml 中设置的kibana/password@123
。
Im getting the below response:我得到以下回复:
{"statusCode":403,"error":"Forbidden","message":"Forbidden"}
Please help me out.请帮帮我。
Configuring security in Kibana在 Kibana 中配置安全性
To use Kibana with X-Pack security:要使用具有 X-Pack 安全性的 Kibana:
Update the following settings in the kibana.yml configuration file:更新 kibana.yml 配置文件中的以下设置:
elasticsearch.username: "kibana" elasticsearch.password: "kibanapassword"
Set the xpack.security.encryptionKey property in the kibana.yml configuration file.在 kibana.yml 配置文件中设置 xpack.security.encryptionKey 属性。
xpack.security.encryptionKey: "something_at_least_32_characters"
Optional: Change the default session duration.可选:更改默认的 session 持续时间。
xpack.security.sessionTimeout: 600000
Restart Kibana.重启 Kibana。
Please follow this link using-kibana-with-security 请使用-kibana-with-security 访问此链接
Resolution: using "elastic" user account instead of kibana fixed this issue.解决方案:使用“弹性”用户帐户而不是 kibana 解决了此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.