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

Improve messaging on how to set initial admin password #3879

Merged
merged 4 commits into from
Jan 4, 2024

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Dec 20, 2023

Description

When the demo configuration script fails when no initial admin password is set, it does not provide helpful output telling the user how to set the initial admin password. This PR provides some helpful output indicating what variable the user should modify in order for the setup to succeed.

Issues Resolved

[List any issues this PR will resolve]

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

Testing

Changed test asserting output

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.

…assword

Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho changed the title Improve messaging so that users know how to set their initial admin p… Improve messaging on how to set initial admin password Dec 20, 2023
@derek-ho derek-ho marked this pull request as draft December 20, 2023 17:45
Signed-off-by: Derek Ho <dxho@amazon.com>
@derek-ho derek-ho marked this pull request as ready for review December 20, 2023 18:51
@derek-ho derek-ho added the backport 2.x backport to 2.x branch label Dec 20, 2023
@peternied
Copy link
Member

@derek-ho It doesn't look like you've updated the PR description, could you please do so? Here is a good example: #3850

@derek-ho
Copy link
Collaborator Author

@derek-ho It doesn't look like you've updated the PR description, could you please do so? Here is a good example: #3850

@peternied done 👍

Signed-off-by: Derek Ho <dxho@amazon.com>
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1f9edf4) 66.58% compared to head (163bf49) 65.19%.
Report is 9 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3879      +/-   ##
==========================================
- Coverage   66.58%   65.19%   -1.40%     
==========================================
  Files         298      298              
  Lines       21188    21196       +8     
  Branches     3453     3456       +3     
==========================================
- Hits        14109    13818     -291     
- Misses       5363     5664     +301     
+ Partials     1716     1714       -2     
Files Coverage Δ
...y/tools/democonfig/SecuritySettingsConfigurer.java 74.10% <100.00%> (+0.18%) ⬆️
...earch/security/privileges/PrivilegesEvaluator.java 72.03% <0.00%> (-0.53%) ⬇️

... and 38 files with indirect coverage changes

DarshitChanpura
DarshitChanpura previously approved these changes Jan 2, 2024
Signed-off-by: Derek Ho <dxho@amazon.com>
@cwperks cwperks merged commit 21c086c into opensearch-project:main Jan 4, 2024
81 of 82 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 4, 2024
### Description
When the demo configuration script fails when no initial admin password
is set, it does not provide helpful output telling the user how to set
the initial admin password. This PR provides some helpful output
indicating what variable the user should modify in order for the setup
to succeed.

### Issues Resolved
[List any issues this PR will resolve]

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

### Testing
Changed test asserting output

### Check List
- [ ] New functionality includes testing
- [ ] New functionality has been documented
- [x] 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Derek Ho <dxho@amazon.com>
(cherry picked from commit 21c086c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
peternied pushed a commit that referenced this pull request Jan 4, 2024
…#3918)

Backport 21c086c from #3879.

Signed-off-by: Derek Ho <dxho@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dlin2028 pushed a commit to dlin2028/security that referenced this pull request May 1, 2024
…oject#3879)

### Description
When the demo configuration script fails when no initial admin password
is set, it does not provide helpful output telling the user how to set
the initial admin password. This PR provides some helpful output
indicating what variable the user should modify in order for the setup
to succeed.

### Issues Resolved
[List any issues this PR will resolve]

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

### Testing
Changed test asserting output 

### Check List
- [ ] New functionality includes testing
- [ ] New functionality has been documented
- [x] 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Derek Ho <dxho@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants