-
Notifications
You must be signed in to change notification settings - Fork 280
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
[Backport 2.x] Demo configuration script requires admin password #3414
Conversation
This change requires an alternative to the default credentials for the admin user. The credentials can be provided to the script via: - `initialAdminPassword` environment variable - a file with a single line that contains the password. The admin password for the cluster will be printed to the console output of the `tools/install_demo_configuration.(bat|sh)` Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Peter Nied <[email protected]> Co-authored-by: Peter Nied <[email protected]> (cherry picked from commit 8628a89) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## 2.x #3414 +/- ##
============================================
+ Coverage 64.09% 64.10% +0.01%
+ Complexity 3369 3367 -2
============================================
Files 256 256
Lines 19515 19515
Branches 3297 3297
============================================
+ Hits 12508 12511 +3
+ Misses 5365 5362 -3
Partials 1642 1642 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requiring a password is a breaking change in 2.x
- What do we think about taking this change as is versus modifying this change so the password is opt-in?
@peternied maybe you disagree but here is my thought process: for this change to be breaking, someone would have to have configured an automated flow which expected |
What is the disadvantage of making this change mandatory? IMO, we are promoting a better security posture, and since this affects demo configuration script, I'm onboard with bringing this change in unless you think this would be a deal-breaker for everyone using automated scripts for programatic access (in which case they can read the password from the logs). Thoughts? |
Thanks for the thoughts @scrawfor99 @DarshitChanpura
Since I didn't state my own opinion, I feel that we should make a breaking change to these scripts, if this is opt-in no one will make the conversion to use a password they provide. Work around for impacted folks is they can provide the password as |
Agreed @peternied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change has been reviewed and approved during the Security Triage team meeting on 10/2
…ord (opensearch-project#3414)" This reverts commit d995daf.
Backport 8628a89 from #3329.
Related Issues
admin:admin
default credentials with configuration file password #3285