helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[BUG][opensearch-2.20.0] ADMIN_INITIAL_PASSWORD not used?

Open cdprete opened this issue 8 months ago • 5 comments

Hello. I'm using the opensearch-2.20-0 Helm chart and, as per documentation, I've set

extraEnvs:
  - name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
    value: "some-password"
  - name: DISABLE_INSTALL_DEMO_CONFIG
    value: "true"

So far, so good. :)

Now, trying to curl the health of the cluster from within the Pod itself with

curl -ku admin:some-password http://localhost:9200/_cluster/health

leads to a 401 response, while a curl like

curl -ku admin:admin http://localhost:9200/_cluster/health

works without any issue.

So, I was wondering if the admin initial password is really used and, if it's, how?

cdprete avatar Jun 06 '24 06:06 cdprete