From: chaitanyabodlapati (@chaitanyabodlapati) <noreply+chaitanyabodlapati@github.com>
To: patroni/patroni <noreply+patroni-patroni@github.com>
Subject: Re: [patroni/patroni] PR #3608: Add opt-in TLS verification flags for etcd/etcd3 DCS backends
Date: Thu, 09 Jul 2026 19:42:48 +0000
Message-ID: <gh-patroni-patroni-3608-c4928894879@github.com> (raw)
In-Reply-To: <gh-patroni-patroni-3608@github.com>
References: <gh-patroni-patroni-3608@github.com>
> @chaitanyabodlapati ping. Are you planning to follow up on this PR?
@hughcapet Thanks for the review, and apologies for the delay — I got pulled into other work before I could follow up on the comments.
I agree with the direction of keeping this change as small and consistent with the existing Patroni structure as possible. I'll revisit the implementation and address your comments, especially:
1. avoiding a separate patroni/dcs/etcd_tls.py helper, since that directory is for DCS implementations;
2. simplifying the verify=false path and dropping the unnecessary SSLContext if urllib3 pool options are enough;
3. only emitting warnings for actual TLS verification relaxations, not for plain/private non-TLS etcd usage;
4. only building the CA-validation context where it's actually needed, rather than in paths where identity checking is already relaxed.
5. aligning hostname_checks_common_name with the Python/OpenSSL default (which is already True) and dropping the RuntimeError.
I'll rework the patch with these points in mind and push an updated version within the next couple of weeks.