Revert "Support additional tls.connect() options" #2010
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reverts #1996
This is causing backwards compatibility issues. We don't have an tests in travis covering the expected behavior when connecting to a postgres server over SSL with a self-signed cert. Until we can get some tests up for that behavior I'm going to revert this to not break all existing folks who do a minor version upgrade.
For v8.0 we'll need to nail this down and make sure it's behaving properly. As this is the first I've heard of this I haven't dug in yet, but I will figure out what the proper behavior should be, do as much as we can in the next semver minor release (like supporting more ssl options), and make sure it behaves the same way a raw
tls.connect
call is made in node. It kinda blows my mind that node would treatself.ssl.rejectUnauthorized: undefined
asfalse
...