# Security index is unavailable. short circuiting retrieval of user with helm chart and letsencrypt

**URL:** <https://discuss.elastic.co/t/security-index-is-unavailable-short-circuiting-retrieval-of-user-with-helm-chart-and-letsencrypt/246497>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker\
**Created:** [August 26, 2020, 5:48pm UTC](https://discuss.elastic.co/t/security-index-is-unavailable-short-circuiting-retrieval-of-user-with-helm-chart-and-letsencrypt/246497 "2020-08-26T17:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcanales](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dcanales/32/74568_2.png) [@dcanales](https://discuss.elastic.co/u/dcanales)\
**Post date:** [August 26, 2020, 5:48pm UTC](https://discuss.elastic.co/t/security-index-is-unavailable-short-circuiting-retrieval-of-user-with-helm-chart-and-letsencrypt/246497/1 "2020-08-26T17:48:32Z")

</div>

Hi, i have a kubernetes cluster and im trying to configure elasticsearch with `xpack.security.enabled` through the helm template

I have the same config from the documentation: [https://github.com/elastic/helm-charts/blob/7.9/elasticsearch/examples/security/security.yml](https://github.com/elastic/helm-charts/blob/7.9/elasticsearch/examples/security/security.yml)

The unique difference is my certificates are generated by [cert-manager](https://cert-manager.io/docs/installation/kubernetes/) with [letsencrypt](https://cert-manager.io/docs/configuration/acme/) which generated an `tls.key` and `tls.crt`

this are my values.yaml

```auto
esConfig:
  elasticsearch.yml: |
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true
    xpack.security.transport.ssl.verification_mode: certificate
    xpack.security.transport.ssl.key: /usr/share/elasticsearch/config/certs/tls.key
    xpack.security.transport.ssl.certificate: /usr/share/elasticsearch/config/certs/tls.crt
    xpack.security.http.ssl.enabled: true
    xpack.security.http.ssl.key: /usr/share/elasticsearch/config/certs/tls.key
    xpack.security.http.ssl.certificate: /usr/share/elasticsearch/config/certs/tls.crt

```

and this the log

```auto
{"type": "server", "timestamp": "2020-08-26T17:46:21,456Z", "level": "ERROR", "component": "o.e.x.s.a.e.NativeUsersStore", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master-0", "message": "security index is unavailable. short circuiting retrieval of user [userelastic]", "cluster.uuid": "huhZtorGTEOhX3gO41sNGg", "node.id": "cza-R9qVQYmqCs8s18mqHw" }

```

---

<div class="post-metadata">

**Author:** ![dcanales](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dcanales/32/74568_2.png) [@dcanales](https://discuss.elastic.co/u/dcanales)\
**Post date:** [August 26, 2020, 6:22pm UTC](https://discuss.elastic.co/t/security-index-is-unavailable-short-circuiting-retrieval-of-user-with-helm-chart-and-letsencrypt/246497/2 "2020-08-26T18:22:45Z")

</div>

i found this [https://github.com/elastic/helm-charts/issues/273](https://github.com/elastic/helm-charts/issues/273)

for some reason the user MUST BE `elastic`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 23, 2020, 6:23pm UTC](https://discuss.elastic.co/t/security-index-is-unavailable-short-circuiting-retrieval-of-user-with-helm-chart-and-letsencrypt/246497/3 "2020-09-23T18:23:05Z")

</div>

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