Secret controller does not handle TLS disablement correctly #808
Labels
area/quality
Output qualification (tests, checks, scans, automation in general, etc.) related
kind/bug
Bug
How to categorize this issue?
/area quality
/kind bug
What happened:
Secret controller does not correctly handle the case where TLS was previously enabled for an Etcd resource (wither etcd client TLS or peer TLS, or etcd-backup-restore TLS), and TLS is then removed from the Etcd spec, but is not yet reconciled by etcd-druid. In such a case, secret controller simply removes the finalizer from the previously referenced secrets since they are no longer present/referenced by any Etcd resource spec, but are still being mounted/used by the etcd statefulset, until the time the Etcd resource is reconciled by druid. This leaves the etcd cluster in a vulnerable state, especially when druid is configured with auto reconciliation disabled.
How to reproduce it (as minimally and precisely as possible):
This can possibly lead to a quorum loss if more than one pod fail or get rescheduled for any reason.
The text was updated successfully, but these errors were encountered: