You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
On the other hand, variable OPENSEARCH_INITIAL_ADMIN_PASSWORD is used indeed. If I remove it from the configuration I get the following error:
No custom admin password found. Please provide a password via the environment variable OPENSEARCH_INITIAL_ADMIN_PASSWORD.
Related component
Other
To Reproduce
Use above docker-compose to start OpenSearch
Use curl -ku admin:adm-Password0 https://localhost:9200/_cluster/health?pretty
See error
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):
OS: Linux Ubuntu
Version 20.04
OpenSearch docker image 756d24015378
OpenSearch version: 2.14.0
Docker Compose version v2.27.0
Additional context
Nothing special
The text was updated successfully, but these errors were encountered:
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!?
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?
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!?
I have no cluster. In the issue the official docker image is discussed
I have no problems with providing password. The issue says that provided password in fact is not used
@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:
Is it correct that the password is required in OPENSEARCH_INITIAL_ADMIN_PASSWORD if it is really not used?
Is it correct that stored password is not affected by the password policy and no warnings are placed in logs on that?
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
The text was updated successfully, but these errors were encountered: