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

Pass in initial admin password in jenkins verification library #357

Closed
wants to merge 2 commits into from

Conversation

derek-ho
Copy link

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

Description

Starting in 2.12.0, installing the security demo configuration requires an initial admin password to be passed in. This changes some validation library steps to expect this.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

@derek-ho
Copy link
Author

Related to: opensearch-project/opensearch-build#4302

@derek-ho
Copy link
Author

@peterzhuamazon @rishabh6788 @gaiksaya would this run into the same issue? Would < 2.12.0 versions of OpenSearch be built using this validation library and fail because the admin:admin changes are not consumed in those prior versions?

vars/rpmDashboardsDistValidation.groovy Outdated Show resolved Hide resolved
@@ -46,7 +46,7 @@ def call(Map args = [:]) {
//Install OpenSearch with designated version via yum
println("Start installation with yum.")
rpmCommands(
command: "install",
command: "sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123! install",
Copy link
Member

Choose a reason for hiding this comment

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

Are you expecting user to first define the env var before running yum/rpm install?

Copy link
Member

Choose a reason for hiding this comment

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

You need to change the spec files of both deb and rpm, check if the var is set else exit with error msgs in the console.

Copy link
Author

Choose a reason for hiding this comment

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

Addressed in build repo companion PR.

@DarshitChanpura
Copy link
Member

this should be unblocked by: opensearch-project/opensearch-build#4332

Signed-off-by: Derek Ho <[email protected]>
@derek-ho
Copy link
Author

Addressed all comments. @peterzhuamazon can you take a look, pending the companion PR in the build repo? Thanks!

@derek-ho
Copy link
Author

@peterzhuamazon @prudhvigodithi is this PR even needed anymore? I am not sure how this library is being used, if at all during the build process.

@peterzhuamazon
Copy link
Member

peterzhuamazon commented Feb 29, 2024

Close this as it will be replaced as part of the validation workflow.

cc: @bbarani @zelinh @Divyaasm

Thanks.

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