nutritious-bird-77396
11/18/2021, 12:12 AMmammoth-bear-12532
early-lamp-41924
11/18/2021, 12:23 AMearly-lamp-41924
11/18/2021, 12:24 AMearly-lamp-41924
11/18/2021, 12:24 AMearly-lamp-41924
11/18/2021, 12:24 AMnutritious-bird-77396
11/18/2021, 12:29 AMcurl '<https://username:password@xxxxxx.es.amazonaws.com:443>'
using this pattern of curl also doesn't work....
Thats why was suspecting if Opensearch only support -u parameter for username/password...
Where as connecting it this way curl -u '<username:password>' '<https://xxxxxx.es.amazonaws.com:443>'
works.early-lamp-41924
11/18/2021, 12:32 AMearly-lamp-41924
11/18/2021, 12:32 AMearly-lamp-41924
11/18/2021, 12:32 AMearly-lamp-41924
11/18/2021, 12:32 AMnutritious-bird-77396
11/18/2021, 12:32 AMearly-lamp-41924
11/18/2021, 12:33 AMearly-lamp-41924
11/18/2021, 12:33 AMnutritious-bird-77396
11/18/2021, 12:33 AM-wait $ELASTICSEARCH_PROTOCOL://$ELASTICSEARCH_HOST_URL:$ELASTICSEARCH_PORT -wait-http-header "$ELASTICSEARCH_AUTH_HEADER" \
early-lamp-41924
11/18/2021, 12:34 AMnutritious-bird-77396
11/18/2021, 12:41 AMearly-lamp-41924
11/18/2021, 12:46 AMearly-lamp-41924
11/18/2021, 12:47 AMearly-lamp-41924
11/18/2021, 12:49 AMearly-lamp-41924
11/18/2021, 9:07 AMearly-lamp-41924
11/18/2021, 9:07 AMnutritious-bird-77396
11/18/2021, 3:46 PMnutritious-bird-77396
11/18/2021, 4:04 PMReceived 403 from <https://zzzzzzzzzzz.us-east-1.es.amazonaws.com:443>. Sleeping 1s
Running with the above docker image throws 403
Command used for testing...
sudo docker run -d \
--name=datahub-gms \
--env-file docker/datahub-gms/env/docker.test.env \
-p 8080:8080 \
acryldata/datahub-gms:test
nutritious-bird-77396
11/18/2021, 4:46 PMearly-lamp-41924
11/18/2021, 5:40 PMearly-lamp-41924
11/18/2021, 5:40 PMearly-lamp-41924
11/18/2021, 5:40 PMnutritious-bird-77396
11/18/2021, 5:43 PMcurl -XGET -u 'username:password' '<https://zzzzzzzzz.us-east-1.es.amazonaws.com/_cat/health>'
The above curl succeeds but fails through datahub-gms app...
Also created another Opensearch cluster with simple creds still the same issue persists...early-lamp-41924
11/18/2021, 5:43 PMearly-lamp-41924
11/18/2021, 5:43 PMearly-lamp-41924
11/18/2021, 5:45 PMecho -ne 'username:password' | base64
early-lamp-41924
11/18/2021, 5:46 PMcurl https://<<es-domain>>:<<es-port>> --header "Authorization:Basic <<result-from-above>>"
nutritious-bird-77396
11/18/2021, 6:24 PM_cat/health
ELASTICSEARCH_HOST=<http://xxxxxx.es.amazonaws.com|xxxxxx.es.amazonaws.com>
ELASTICSEARCH_PORT=443
ELASTICSEARCH_USERNAME=username
ELASTICSEARCH_PASSWORD=password
USE_AWS_ELASTICSEARCH=true
ELASTICSEARCH_USE_SSL=true
early-lamp-41924
11/18/2021, 6:28 PMearly-lamp-41924
11/18/2021, 6:29 PMearly-lamp-41924
11/18/2021, 6:29 PMearly-lamp-41924
11/18/2021, 6:30 PMnutritious-bird-77396
11/19/2021, 3:01 PMearly-lamp-41924
11/19/2021, 4:16 PMmammoth-bear-12532
mammoth-bear-12532
early-lamp-41924
11/19/2021, 6:26 PMearly-lamp-41924
11/19/2021, 6:26 PMmammoth-bear-12532
nutritious-bird-77396
11/19/2021, 6:31 PMnutritious-bird-77396
11/19/2021, 9:39 PMdatahub-gms
I can push a commit with an env variable to skip the wait step...let me knowearly-lamp-41924
11/19/2021, 9:40 PMearly-lamp-41924
11/19/2021, 9:40 PMnutritious-bird-77396
11/19/2021, 9:44 PMearly-lamp-41924
11/19/2021, 9:57 PMearly-lamp-41924
11/19/2021, 9:57 PMearly-lamp-41924
11/19/2021, 9:57 PMnutritious-bird-77396
11/19/2021, 10:06 PMnutritious-bird-77396
11/22/2021, 9:10 PMearly-lamp-41924
11/22/2021, 9:11 PMnutritious-bird-77396
12/01/2021, 5:24 PMearly-lamp-41924
12/08/2021, 12:17 AMnutritious-bird-77396
12/08/2021, 3:15 AM