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

Update CI and docs to remove references to default admin creds #365

Merged
merged 8 commits into from
Jan 31, 2024

Conversation

derek-ho
Copy link
Contributor

Description

Starting in 2.12.0 release, security plugin is mandating an initial admin password to be set via env variable. This PR updates the docs and CI to accommodate this change.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

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

@derek-ho
Copy link
Contributor Author

@dhrubo-os @greaa-aws can you folks take a look here and provide any feedback? This change will be happening for 2.12.0. Thanks!

Signed-off-by: Derek Ho <dxho@amazon.com>
@@ -1294,7 +1294,7 @@
"outputs": [
{
"data": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure what happened here, looks like new line diff?

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b2f686) 91.53% compared to head (e55f502) 91.53%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #365   +/-   ##
=======================================
  Coverage   91.53%   91.53%           
=======================================
  Files          42       42           
  Lines        4395     4395           
=======================================
  Hits         4023     4023           
  Misses        372      372           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rawwar
Copy link
Contributor

rawwar commented Jan 6, 2024

This change should have failed multiple tests as test client still has "admin" as password.

OPENSEARCH_ADMIN_USER, OPENSEARCH_ADMIN_PASSWORD = "admin", "admin"

I haven't looked into it properly. But, will take a look and respond.

EDIT: Just realised this will affect from versions >= 2.12.0.

@DarshitChanpura
Copy link
Member

@dhrubo-os @greaa-aws @ylwu-amzn Can we get some reviews on this PR?

@dhrubo-os
Copy link
Collaborator

Could you please resolve the merge conflict?

@derek-ho
Copy link
Contributor Author

Could you please resolve the merge conflict?

Done

@rawwar
Copy link
Contributor

rawwar commented Jan 27, 2024

Merging this PR will require a issue in backlog so that we take care of updating passwords in the testcases and in other required places when we migrate to Opensearch>=2.12.0

Edit: Seems like there's already one created - #371

@dhrubo-os
Copy link
Collaborator

@rawwar Thanks for the call out. Could you please create an issue for py-ml too? Thanks

@DarshitChanpura
Copy link
Member

@rawwar Thanks for the call out. Could you please create an issue for py-ml too? Thanks

Are you asking about #371?

@DarshitChanpura
Copy link
Member

@greaa-aws @ylwu-amzn @b4sjoo @jngz-es @rbhavna Could we get 1 more review on this? Is there anything blocking from getting this merged? We are targeting 2.12 version release for this change.

Copy link
Contributor

@mingshl mingshl left a comment

Choose a reason for hiding this comment

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

LGTM

@ylwu-amzn ylwu-amzn merged commit bc6d94f into opensearch-project:main Jan 31, 2024
15 checks passed
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.

6 participants