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

Tolerate missing keystore password, for example for tests #417

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Oct 10, 2024

Discovered while working on jenkinsci/jenkins-test-harness#858

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@jglick
Copy link
Member

jglick commented Oct 10, 2024

Does it work to just pass a new char[0] or is that considered distinct from “no password”?

@jglick
Copy link
Member

jglick commented Oct 10, 2024

\ --httpsKeyStorePassword = the password for the SSL KeyStore file. Default is null\n\
so does this mean that not passing that parameter caused Winstone to crash with an NPE? Has this been broken forever? Seems like something that would get noticed quickly.

@Vlatombe
Copy link
Member Author

not passing that parameter caused Winstone to crash with an NPE?

yup

@jglick
Copy link
Member

jglick commented Oct 10, 2024

If that is a regression, it sounds like an lts-candidate.

@Vlatombe
Copy link
Member Author

#16 then fceac88.

@jglick
Copy link
Member

jglick commented Oct 10, 2024

Huh. I guess everyone has been forced to set a password for the past decade?! Seems weird to me, because it adds little apparent security: you are making the password accessible to the machine running Jenkins (in fact part of the /proc command line, and the JVM’s reported args, and presumably in some service wrapper config), so it is not as if you are making it harder for someone who steals the keystore off the filesystem to use it.

@Vlatombe
Copy link
Member Author

Doesn't even seem to be possible to create a keystore using keytool without setting a password. Programatically this seems possible.

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.

2 participants