X-Pack 6.1.0 does not handle variable substitutions

After upgrading to Elasticsearch 6.1 I can not use variable substitution. In this case:

xpack:
  security:
    authc:
      realms:
          ssl:
            certificate_authorities: [ "${ELASTICSEARCH_CONFIG_PATH}/certs/myca.crt" ]

I am receiving exception which contain following text:

java.nio.file.NoSuchFileException: /app/volumes/config/${ELASTICSEARCH_CONFIG_PATH}/certs/myca.crt

In 6.0.1 it was working well.

Hi,

Can you verify that the Environment variable is set with

echo $ELASTICSEARCH_CONFIG_PATH

This issue was sorted out on GitHub. It's a bug in core Elasticsearch.

1 Like

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