AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

Can't connect and get errors #102

Closed KrunchMuffin closed 1 year ago

KrunchMuffin commented 1 year ago

I created an API key and I can't connect either Kibana or Elastic.

{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm=\"security\" charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401}

I noticed realm=security but when I create an api key it seems to assign a realm, mine is cloud-saml-kibana

AntonShuvaev commented 1 year ago

I think the problem is that SAML realm is not suitable for using Elasticsearch by REST API. You need to configure other realm or try to login using Kibana.

AntonShuvaev commented 1 year ago

I've released an update that fixes connecting to Kibana. Can you try again and let me know if it works for you?

KrunchMuffin commented 1 year ago

I didn't try the api, but i got connected with the web login