Kibana Doesnt work if security is disabled

So i disabled opendistro security in ES:
opendistro_security.disabled: true

but now when i try to start kibana it keeps restarting and then simply fails, can anyone please explain why this is happening and whats the solution in this case, i also did the same thing in the kibana.yml file.

server.host: "serverip"

elasticsearch.host: http://localhost:9200
elasticsearch.ssl.verificationMode: none
elasticsearch.username: admin
elasticsearch.password: admin
elasticsearch.requestHeadersWhitelist: ["securitytenant","Authorization"]

opendistro_security.disabled: true

i even tried to comment out the elasticsearch part but that didnt help either. I really need help on this.
Any help or guidance is greatly appreciated.

Hi ghaith,

You must remove Kibana plugin if you are disabling security plugin in elasticsearch.yml.
Please follow the instructions mentioned here: https://opendistro.github.io/for-elasticsearch-docs/docs/security-configuration/disable/#remove-kibana-plugin

Please let us know if you are still facing issues.

Thanks

You can also simply disable the OpenDistro security plugin when launching Kibana:

https://www.elastic.co/guide/en/kibana/current/disable-plugin.html

The url has changed,

example:

$ sudo bin/kibana-plugin remove opendistroSecurityKibana