Open svok opened 6 months ago
Does your cluster fail to start with an error along the lines of "this password doesn't meet complexity requirements"? Try with a password that we know works, like yourStrongPassword123!
?
Hi @svok ,
The volume attached to the docker container, does it already contain the security index? If possible can you destroy the volume or attach a new one to see if it takes effect?
@dblock
Does your cluster fail to start with an error along the lines of "this password doesn't meet complexity requirements"? Try with a password that we know works, like
yourStrongPassword123!
?
@gaiksaya Thank you. You are absolutely right. The volume really changes the used password. In spite of this solves my own problem, there are yet two questions remaining:
OPENSEARCH_INITIAL_ADMIN_PASSWORD
if it is really not used?@svok were you able to resolve the issue? I am changing the env variable, but it assumes the default password.
@fabioDMFerreira
@svok were you able to resolve the issue? I am changing the env variable, but it assumes the default password.
Yes. The variable affects only on the first start. All other starts ignore it in spite of this variable remains mandatory. To change the default password again you need to remove the container's volume or do it with the functionality of OpenSearch as described for instance here: https://code.dblock.org/2023/08/08/changing-the-default-admin-password-in-opensearch.html
Describe the bug
I use docker-compose file with the following content:
In this docker-compose I set OPENSEARCH_INITIAL_ADMIN_PASSWORD with 'adm-Password0' for OpenSearch. Fluentbit uses OpenSearch for disposing logs. But it doesn't work with password of OpenSearch. It works actually only with the default password 'admin'.
According to https://opensearch.org/blog/replacing-default-admin-credentials/ I have to use 'adm-Password0' indeed. But the test from this blog is not passing. It is getting passed if I use the default password 'admin'.
On the other hand, variable OPENSEARCH_INITIAL_ADMIN_PASSWORD is used indeed. If I remove it from the configuration I get the following error:
Related component
Other
To Reproduce
curl -ku admin:adm-Password0 https://localhost:9200/_cluster/health?pretty
Expected behavior
OpenSearch should use password that is set via OPENSEARCH_INITIAL_ADMIN_PASSWORD variable. Requests with default password
admin
should cause 403 error.Additional Details
Plugins By default in docker image of OpenSearch
Screenshots Not applicable
Host/Environment (please complete the following information):
Additional context Nothing special