Hi
I am running the folowing comand:
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "ELASTICSEARCH_USERNAME=egid" -e "ELASTICSEARCH_PASSWORD=black" -e "xpack.security.enabled=true" docker.elastic.co/elasticsearch/elasticsearch:7.12.0
Everything runs fine.
I do post request from postman: (I filled username and password like arguments in docker command)
When I try post request on elastic search with basic auth I got this::
I got:
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "unable to authenticate user [egid] for REST request [/event5/_search]",
"header": {
"WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type": "security_exception",
"reason": "unable to authenticate user [egid] for REST request [/event5/_search]",
"header": {
"WWW-Authenticate": "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status": 401
}
Any ideas please ?
Thank you for any help