feat: add checkServerIdentity override#2295
feat: add checkServerIdentity override#2295brandonjfeldkamp wants to merge 1 commit intosidorares:masterfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@juanheyns @sidorares regarding this concern of similarly named "things" from #2376, would you like me to rename it? I think this is still important as without it by setting the |
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: trueor not provided:set
verifyIdentity: trueor not provided - run providedcheckServerIdentity()or use defaulttls.checkServerIdentity()functionset
verifyIdentity: false-checkServerIdentityset 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.