Skip to content

Fix [JENKINS-72585]: Pass HTTPS keystore password via stdin#715

Open
viru0909-dev wants to merge 2 commits into
jenkinsci:masterfrom
viru0909-dev:fix/secure-keystore-password
Open

Fix [JENKINS-72585]: Pass HTTPS keystore password via stdin#715
viru0909-dev wants to merge 2 commits into
jenkinsci:masterfrom
viru0909-dev:fix/secure-keystore-password

Conversation

@viru0909-dev

@viru0909-dev viru0909-dev commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Fixes #707

Description

Modified jenkins.sh to use --paramsFromStdIn when JENKINS_HTTPS_KEYSTORE_PASSWORD is set.
Previously, the password was passed as a command-line argument, which exposed it to other users via the process list (ps aux). This change pipes the password via standard input, which is secure.

Testing done

  • Manual verification (Waiting for CI/Review)

@viru0909-dev viru0909-dev requested a review from a team as a code owner December 14, 2025 11:02
@viru0909-dev

Copy link
Copy Markdown
Contributor Author

All CI checks passed. The changes are verified and ready for review.

Comment thread systemd/jenkins.sh Outdated
${java_opts_tmp} \
-jar "${jenkins_war_tmp}" \
${inferred_jenkins_opts}
if [ -n "${JENKINS_HOME}" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please restore the spacing that was in the original script. Your changes have made this section of the script inconsistent with the rest of the script. Inconsistent formatting in a file can be a distraction to reviewers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! I've restored the original 4-space indentation to ensure consistency with the rest of the script. Ready for another look.

@viru0909-dev viru0909-dev force-pushed the fix/secure-keystore-password branch from cc45a5a to 434da9e Compare December 14, 2025 13:05
@viru0909-dev

Copy link
Copy Markdown
Contributor Author

@MarkEWaite Thanks for the feedback! I've completely reworked the PR to address your concerns.

@MarkEWaite

Copy link
Copy Markdown
Contributor

We are in process with several packaging changes related to the GPG signing key update and the RPM unification. I'd prefer to not merge this for a week or two, while we focus on those higher priority items

@LevN0

LevN0 commented Mar 13, 2026

Copy link
Copy Markdown

@MarkEWaite

Any updates on merging this?

@MarkEWaite

Copy link
Copy Markdown
Contributor

@MarkEWaite

Any updates on merging this?

No update. I'm working on other issues, unlikely to look at this for a month or more.

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.

[JENKINS-72585] Using JENKINS_HTTPS_KEYSTORE_PASSWORD exposes keystore password in process list

3 participants