Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't disable security plugin sins version 2.12.0 #4599

Closed
MarioVerbelen opened this issue Feb 21, 2024 · 3 comments
Closed

[BUG] Can't disable security plugin sins version 2.12.0 #4599

MarioVerbelen opened this issue Feb 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MarioVerbelen
Copy link

On our local opensearch environments (in development environment), we don't need the security plugin
So we are using the option "plugins.security.disabled=true"

until version 2.11.1 this option did hes job, but now on upgrading to 2.12.0 this fails
(tested rollback to fixed version vs latest and the option is fine again)
The issue is probably upstream, but I have to start somewhere

docker logs OpenSearch
Enabling OpenSearch Security Plugin
Enabling execution of install_demo_configuration.sh for OpenSearch Security Plugin
OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that requires an initial password for 'admin' user.
Please define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string.
...

Our Environment vars
Image: "opensearchproject/opensearch:latest",
Env: []string{
"cluster.name=opensearch-cluster",
"node.name=opensearch",
"discovery.seed_hosts=opensearch",
"cluster.initial_cluster_manager_nodes=opensearch",
"bootstrap.memory_lock=true",
"OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m",
"plugins.security.disabled=true",
},

@MarioVerbelen MarioVerbelen added bug Something isn't working untriaged Issues that have not yet been triaged labels Feb 21, 2024
@rishabh6788
Copy link
Collaborator

For disabling security plugin in OpenSearch Docker please follow the instructions here.

@rishabh6788 rishabh6788 removed the untriaged Issues that have not yet been triaged label Apr 1, 2024
@rishabh6788 rishabh6788 transferred this issue from opensearch-project/docker-images Apr 1, 2024
@github-actions github-actions bot added the untriaged Issues that have not yet been triaged label Apr 1, 2024
@gaiksaya gaiksaya removed the untriaged Issues that have not yet been triaged label Apr 1, 2024
@gaiksaya
Copy link
Member

gaiksaya commented Apr 9, 2024

Note: For OpenSearch 2.12 and later, DISABLE_SECURITY_PLUGIN when set to true will automatically disable the security demo configuration setup and will no longer require DISABLE_INSTALL_DEMO_CONFIG to be explicitly set. 

https://github.com/opensearch-project/opensearch-build/tree/main/docker/release#disable-security-plugin-security-dashboards-plugin-security-demo-configurations-and-related-configurations

@MarioVerbelen
Copy link
Author

Nice when I replace this in the docker ENV it is working again as my needs
(tested on 2.12 and 2.13)
plugins.security.disabled: true by DISABLE_SECURITY_PLUGIN=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants