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

fix(jenkins): Igor fails to start if only keystore is configured #856

Merged
merged 4 commits into from
Oct 7, 2020

Conversation

jervi
Copy link
Contributor

@jervi jervi commented Sep 9, 2020

This configuration worked fine in okhttp2, but not in okhttp3.
As a workaround, Igor will try to use the keystore as a truststore as well, and prints a warning in the log.

"Bug" introduced in #834. Keystore support was added in #596.

This configuration worked fine in okhttp2, but not in okhttp3.
As a workaround, Igor will try to use the keystore as a truststore as well, and prints a warning in the log.
@jervi jervi changed the title fix(jenkins): Jenkins fails to start if only keystore is configured fix(jenkins): Igor fails to start if only keystore is configured Sep 9, 2020
if (trustManagers == null) {
log.warn("${host.name}: okhttp3 (unlike okhttp2) doesn't support configuring only a keystore without " +
"a truststore. Please configure a truststore to get rid of this message. Trying to use the " +
"keystore '${host.keyStore}' as a truststore as well. Your mileage may vary.")
Copy link
Member

Choose a reason for hiding this comment

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

Ah, I'm not sure we want to be advising this.

Copy link
Member

@robzienert robzienert left a comment

Choose a reason for hiding this comment

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

Sketchy advise in logs, I'd get rid of that.

Copy link
Member

@robzienert robzienert left a comment

Choose a reason for hiding this comment

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

Oh. I read the log backwards. Looks fine.

@robzienert robzienert added the ready to merge Approved and ready for merge label Oct 7, 2020
@mergify mergify bot added the auto merged label Oct 7, 2020
@mergify mergify bot merged commit 0bbc7dc into spinnaker:master Oct 7, 2020
@jervi jervi deleted the fix_npe_when_initializing_jenkins branch October 7, 2020 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants