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

[Enhancement] Add a flag to setup default admin:admin in demo script #3441

Closed

Conversation

RyanL1997
Copy link
Collaborator

@RyanL1997 RyanL1997 commented Oct 3, 2023

Description

Add a flag to setup default admin:admin in demo script

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
    Enhancement

Issues Resolved

Is this a backport? If so, please add backport PR # and/or commits #

Testing

CI

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change lowers the security posture by allow setting the password to a preconfigured value, I feel strongly we should not merge a change of this nature.

@RyanL1997
Copy link
Collaborator Author

@peternied Thanks for the feedback! Lets move our conversation here. This PR is demo approach of one of the potential solutions that me, @DarshitChanpura and @peterzhuamazon discussed. Feel free to drop some thoughts on that open issue in build repo.

Signed-off-by: Ryan Liang <[email protected]>
@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Merging #3441 (6b0f5a9) into main (1ffa23c) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #3441      +/-   ##
============================================
+ Coverage     64.50%   64.52%   +0.01%     
  Complexity     3545     3545              
============================================
  Files           269      269              
  Lines         20363    20363              
  Branches       3375     3375              
============================================
+ Hits          13135    13139       +4     
+ Misses         5533     5529       -4     
  Partials       1695     1695              

see 1 file with indirect coverage changes

Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterzhuamazon shared his perspective from build side and I share the sentiment. Here is an approach that allows us to gradually bring this change in :

  1. We allow passing an additional inline argument with initialAdminPassword
  2. If the argument is not present, we then prompt user during installation script to provide an admin password.
  3. (For now) If they choose to not provide password we default it to admin with a warning message in next release this option will be removed, and in next release we remove it. (For 2.11 it might be too close to make this call especially with CI builds and RC generation)

@peternied
Copy link
Member

I believe there are other options that are being looked into to handle the rollout process around changing the default password. Lets reopen this change if the rollout process indicates its the path forward.

@peternied peternied closed this Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants