Skip to content
This repository has been 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

Closed
jguay opened this issue Jul 3, 2018 · 1 comment
Labels

Comments

@jguay
Copy link

jguay commented Jul 3, 2018

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
'
@jguay jguay added the doc label Jul 3, 2018
jarpy added a commit to elastic/elasticsearch that referenced this issue Jul 18, 2018
Remove references to the `platinum` image and add a self-generated trial
licence to the example for TLS on Docker.

Fixes elastic/elasticsearch-docker#176
jarpy added a commit to elastic/elasticsearch that referenced this issue Jul 18, 2018
Remove references to the `platinum` image and add a self-generated trial
licence to the example for TLS on Docker.

Fixes elastic/elasticsearch-docker#176
jarpy added a commit to elastic/elasticsearch that referenced this issue Jul 18, 2018
Remove references to the `platinum` image and add a self-generated trial
licence to the example for TLS on Docker.

Fixes elastic/elasticsearch-docker#176
@jarpy
Copy link
Contributor

jarpy commented Jul 20, 2018

The docs have now been updated with the correct image name. They also now demonstrate setting up a self-generated trial licence in order to activate the security features.

Thanks for this great report!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants