Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

doc configuring tls docker not mentioning adding xpack license is needed from 6.3 #176

@jguay

Description

@jguay

Bug Description

https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-tls-docker.html

Doc mentions image "elasticsearch-platinum:6.3.0"; I think this was corrected but there is one of those left at time of submitting this...

Also I'm not 100% sure of my testing because of the following issue which is already fixed in master /usr/local/bin/docker-entrypoint.sh, ELASTIC_PASSWORD does not update bootstrap.password to keystore in 6.3.0 so I have to add this and restart the container

This issue related to the fact the page currently does not mention anything related to adding an xpack license so authentication with basic authentication will not work so far as I understand as xpack would be disabled ?

Feature Description

I think the doc needs a new point after point "2. Start two Elasticsearch nodes configured for SSL/TLS", it would be good to add:
"3. Activate xpack trial license or update your license"

Optionally as I am not sure if we should provide a snippet, this is what I used :

docker-compose exec es01 /bin/bash -c '
set -euo pipefail

es_url=https://localhost:9200

# Wait for Elasticsearch to start up before doing anything.
until curl -s $es_url -k -o /dev/null; do
    sleep 1
done

sleep 2

#start trial license
response=$(curl -k -s -H 'Content-Type:application/json' -XPOST $es_url/_xpack/license/start_trial?acknowledge=true)
while [[ "$response" = *"trial_was_started"* ]]
do
    sleep 2
    response=$(curl -k -s -H 'Content-Type:application/json' -XPOST $es_url/_xpack/license/start_trial?acknowledge=true)
done
'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions