deb - Listen to DISABLE_INSTALL_DEMO_CONFIG#5554
deb - Listen to DISABLE_INSTALL_DEMO_CONFIG#5554indykoning wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
|
Adding @DarshitChanpura @derek-ho I remember we discussed this before but at the time response it we need to have it installed by default. Thanks. |
|
Hello, this is Brian with the Wikimedia Foundation. I was wondering if anyone had a chance to look at this yet? Our organization requires us to build our own Docker images using Debian packages. Since the package requires a password, we're currently hard-coding it in our Docker build files. While this is safe enough (the datadir never gets copied to the image), it looks bad enough that I've had to explain myself a few times. If we could get this merged, I think it would simplify a lot of similar workflows (such as installing via config management). |
|
@peterzhuamazon @gaiksaya @rishabh6788 @zelinh @prudhvigodithi @Divyaasm @tianleh -- can you look at @inflatador 's input? thanks |
|
As previously stated, the request to mandate demo installation with specific password was requested by the security team back in 2.12.0. Thanks. |
|
Additional bugs about this which I have found are: My position on this is that either the demo configuration should not be created by default, or it should default to a random password (generated on demand). For example, the Debian package for bacula generates random passwords: Either way, package installation should succeed without requiring the user to specify any environment variables. Imagine if using an environment variable this way were standard--installing packages would be utter chaos. For example: Admins and configuration management systems would need to know and support all that, and installation would still be doomed if another package pulled in any such package as a dependency. The opensearch situation is worse on Debian than it is on RHEL (at least as I tested on AlmaLinux 8).
At least with RHEL, for better or for worse, tolerating the failure lets configuration management (or an admin) proceed onward and properly configure opensearch. |
|
Chiming in with my own 2 cents here - we use Puppet to setup Debian based Opensearch clusters. The hardcoded demo configuration means that the puppet manifest is littered with execs like |
Description
This PR allows users installing the package on debian to request no demo config. Taken from the docker install
Issues Resolved
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.