feat: add checkServerIdentity override #2295
Open
+5
−13
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.
This fixes the issue described by #2119 (comment) and partially resolves #2172.
This doesn't implement the changes described in the issue regarding deprecating the Amazon RDS profile in favor of moving that out to a new package but it does allow for a path forward to re-enabling
rejectUnauthorized
.The follow scenarios are now true:
Set
rejectUnauthorized: false
- never any server identity verificationSet
rejectUnauthorized: true
or not provided:set
verifyIdentity: true
or not provided - run providedcheckServerIdentity()
or use defaulttls.checkServerIdentity()
functionset
verifyIdentity: false
-checkServerIdentity
set to no-op functionHow was this tested?
I tested changes locally against a tls-enabled postgresql instance. I'm not sure of how to incorporate any unit or integration tests for this as there does not currently appear to be any. Any support here would be lovely.