Skip xpack authentication for a specific endpoint

I have enabled x-pack and all the requests are expected to provide the credentials to access Elasticsearch.
I have a scenario where for certain endpoints, I must be able to access without providing credentials. It means authentication must be skipped.
I do not want to authenticate when I check for cluster health or Elasticsearch availability
localhost:9200/_cluster/health
localhost:9200

I didnot come across a way to do that
Is there any such option to skip authentication for required endpoints

No, this is not possible, with security enabled all requests needs to be authenticated.

Thank you for the information

You could write some sort of script that authenticates the requests and shows you the response. That would "disable" the need for authentication but is only a workaround.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.