-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[console] If using an https agent, set rejectUnauthorized in the agent #11700
Conversation
@@ -45,6 +45,7 @@ export class ProxyConfig { | |||
}; | |||
|
|||
if (values(sslAgentOpts).filter(Boolean).length) { | |||
sslAgentOpts.rejectUnauthorized = this.verifySsl === undefined ? true : this.verifySsl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why === undefined
and not == null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
elastic#11700) * [console] If using an https agent, set rejectUnauthorized in the agent * [console] Update tests to expect rejectUnauthorized in agent config * [console] Check for null and undefined when setting rejectUnauthorized
elastic#11700) * [console] If using an https agent, set rejectUnauthorized in the agent * [console] Update tests to expect rejectUnauthorized in agent config * [console] Check for null and undefined when setting rejectUnauthorized
elastic#11700) * [console] If using an https agent, set rejectUnauthorized in the agent * [console] Update tests to expect rejectUnauthorized in agent config * [console] Check for null and undefined when setting rejectUnauthorized
Currently setting
will result in an error of
This probably broke sometime around the hapi or node upgrade, I'm still investigating. Instead of setting both rejectUnauthorized and an agent, this will set rejectUnauthorized on the agent.