vttestserver から vtcombo への ZooKeeper 認証・TLS フラグの引き継ぎ
--topo-zk-auth-file および/または --topo-zk-tls-* フラグが設定済み以前は、vtcombo が同じ ZooKeeper ID や TLS 設定を使用していなかったため、オープンなルート配下に world:anyone の znode が残る可能性がありました。現在は vttestserver と同じ ID で認証し、同じ TLS 設定を使って ZooKeeper に接続します。
原文を表示
With `--topo-zk-auth-file` set, `zk2topo` authenticated its ZooKeeper session but still created every znode, lock and election nodes included, with a `world:anyone` ACL, so any client that could reach the ensemble could read, change or delete the topology ([GHSA-9c2c-hxwj-c5jr](https://github.com/vitessio/vitess/security/advisories/GHSA-9c2c-hxwj-c5jr)). Znodes are now created with ZooKeeper's `auth` ACL scheme, so only the auth file's identity can access them. A missing, unreadable or malformed auth file, or a failed `AddAuth`, now fails the connection instead of continuing unauthenticated. A `digest` auth file must hold both a user and a password, and a trailing CR is dropped like a trailing LF. `vtctldclient`, `topo2topo` and the `zk` tool now take the `--topo-zk-*` flags, and `vttestserver` passes `--topo-zk-auth-file` and the `--topo-zk-tls-*` flags on to `vtcombo`. Without an auth file, nothing changes.github.com/vitessio/vitess/releases/tag/v23.0.9