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: Mon, 12 Oct 2026 20:12:23 +0000
Message-ID: <gh-patroni-patroni-3608-c6131825193@github.com> (raw)
In-Reply-To: <gh-patroni-patroni-3608@github.com>
References: <gh-patroni-patroni-3608@github.com>
Both addressed:
1. Added verify_hostname and hostname_checks_common_name to the boolean env-var cast list in config.py.
2. Moved the TLS-configuration guard from _load_machines_cache into _refresh_machines_cache, right after the discovered member list is stored, so HTTPS client URLs learned through member discovery — even from an HTTP seed — trigger TLS configuration. Added a regression test (test__refresh_machines_cache_configures_tls_for_https_members) covering exactly that: an HTTP seed advertising HTTPS members.