RATATOSK
← リリース一覧

Vitessv24.0.6

セキュリティ 18破壊的変更 1重大な修正 2機能・改善 2その他の変更 2

Vitessの通知を受け取る

週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。

アップグレード前の確認事項

前提条件2
ダイジェスト認証向け ZooKeeper ACL の設定

アップグレード前の znode には world:anyone ACL が残ります。記録されている手順では、addauth digest <user>:<password> で認証し、グローバルルートとセルルートに共通する親に auth::cdrwa を再帰的に設定します。初回設定では、いずれかをアップグレードする前に全コンポーネントへ認証ファイルを設定するか、1回のロールアウトで認証ファイルを適用して全コンポーネントを再起動します。

- Znodes created before the upgrade keep their `world:anyone` ACLs. Once every component runs this release with the auth file, run `addauth digest <user>:<password>` in `zkCli.sh`, then `setAcl -R <parent> auth::cdrwa` on the common parent of the global and cell roots (for example `/vitess`), in each ZooKeeper ensemble. Credential rotation and first-time setup are described in [#22231](https://github.com/vitessio/vitess/pull/22231).
github.com/vitessio/vitess/releases/tag/v24.0.6
既存のテーブルバインディングのアップグレード後の維持

シャードのプライマリ上の MERGE テーブルと FEDERATED テーブルでは、UNION または CONNECTION のバインディングが保持されます。過去の EXCHANGE PARTITION 操作は、バイナリログまたは監査ログにしか痕跡を残しません。

- Upgrading doesn't undo bindings made before it. Find MERGE and FEDERATED tables on each shard's primary with `SELECT table_schema, table_name, engine FROM information_schema.tables WHERE engine IN ('MRG_MYISAM', 'FEDERATED')`, check each one's `UNION` list or `CONNECTION` string with `SHOW CREATE TABLE`, and drop any binding that isn't intended. A past `EXCHANGE PARTITION` leaves no such trace; only the binary log or an audit log shows it.
github.com/vitessio/vitess/releases/tag/v24.0.6
既知の問題1
パーサーがパーティションメンテナンスや SERIAL のステートメントを拒否する場合

パーサーがステートメントを完全に解析できない場合、パーティションメンテナンスや SERIAL のステートメントが拒否されることがあります。注記では、1つのステートメントにつきパーティションを1つにすること、例外ユーザーを使うこと、または SERIAL 型を明記することが代替策として挙げられています。

- Partition maintenance that the parser doesn't fully parse is denied for non-exempt callers, such as `ADD PARTITION` with more than one partition definition, or `ADD PARTITION PARTITIONS n`. Add one partition per statement, or run the job as the exempt user. A failing job may only show up later, as inserts that fail past a RANGE table's last bound.
- On this release the parser also has no `SERIAL` column type, so an `ALTER TABLE` that defines a `SERIAL` column is denied as well. Spell the type out (`BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE`).
github.com/vitessio/vitess/releases/tag/v24.0.6

セキュリティ18

mTLS クライアント認可における検証済みリーフ証明書のサブジェクト確認

影響対象--grpc-auth-mode=mtls を使用するプロセス
追加の対応Go の書式で表した各クライアント証明書のサブジェクトに一致する、空でない許可部分文字列エントリー

以前は、許可されたサブジェクトを持つ自己署名証明書を証明書チェーンに追加すると、その証明書が --grpc-ca による検証を受けていなくても、クライアントが認可されることがありました。アップグレード後は、エントリーが未設定または空の場合、mTLS プロセスは起動できません。また、リーフ証明書以外の証明書だけで照合されるクライアントは、RPC で client certificate not authorized(Unauthenticated)を受け取ることがあります。このエラーはサーバーに記録されません。

原文を表示
### gRPC mTLS authorization checks only the verified client certificate
With `--grpc-auth-mode=mtls`, `--grpc-auth-mtls-allowed-substrings` was matched against every certificate the client presented, not just the one verified against `--grpc-ca`. A client with any certificate from that CA could append a self-signed certificate with an allowed subject and be admitted ([GHSA-xhx6-rmm2-5h2p](https://github.com/vitessio/vitess/security/advisories/GHSA-xhx6-rmm2-5h2p)). The flag is now matched only against the subject of the verified leaf certificate. In mtls mode the flag can also no longer have an empty entry, which matched every subject: an unset or empty value (the default), or a leading, trailing or repeated colon, such as in `CN=vtctld:`.
#### Impact
- A process started with `--grpc-auth-mode=mtls` logs `Failed to load auth plugin` and exits with status 1 if `--grpc-auth-mtls-allowed-substrings` has an empty entry.
- An entry that matches only a non-leaf certificate, such as an intermediate CA's subject, no longer admits the client. RPCs between components, such as VTGate, VTOrc or vtctld calling an upgraded VTTablet, can fail with `client certificate not authorized` (gRPC code `Unauthenticated`), which the server doesn't log.
- Before upgrading, set the flag to non-empty entries, and check that each client certificate's subject, as Go formats it (`CN=vtctld,OU=Vitess,O=Example,C=US`), contains one of them.
See [#22234](https://github.com/vitessio/vitess/pull/22234) for details.
github.com/vitessio/vitess/releases/tag/v24.0.6

mTLS 認可の対象を検証済みリーフ証明書に限定

影響対象--grpc-auth-mode=mtls を使用するプロセス
追加の対応アップグレード前に --grpc-auth-mtls-allowed-substrings に空でない値を設定し、各クライアント証明書のサブジェクトに、Go の書式でそのいずれかが含まれることを確認

以前は、許可する部分文字列の照合で、追加された自己署名証明書やその他のリーフ以外の証明書が一致すると、検証済みリーフ証明書が一致しない場合でもクライアントが許可されることがありました。現在は検証済みリーフ証明書のサブジェクトのみを照合するため、そのようなクライアントとサブジェクトが空のクライアントは拒否され、RPC が Unauthenticated で失敗することがあります。

原文を表示
With `--grpc-auth-mode=mtls`, `--grpc-auth-mtls-allowed-substrings` was matched against every certificate the client presented, not just the one verified against `--grpc-ca`. A client with any certificate from that CA could append a self-signed certificate with an allowed subject and be admitted ([GHSA-xhx6-rmm2-5h2p](https://github.com/vitessio/vitess/security/advisories/GHSA-xhx6-rmm2-5h2p)). The flag is now matched only against the subject of the verified leaf certificate. In mtls mode the flag can also no longer have an empty entry, which matched every subject: an unset or empty value (the default), or a leading, trailing or repeated colon, such as in `CN=vtctld:`.
- A process started with `--grpc-auth-mode=mtls` logs `Failed to load auth plugin` and exits with status 1 if `--grpc-auth-mtls-allowed-substrings` has an empty entry.
- Before upgrading, set the flag to non-empty entries, and check that each client certificate's subject, as Go formats it (`CN=vtctld,OU=Vitess,O=Example,C=US`), contains one of them.
See [#22234](https://github.com/vitessio/vitess/pull/22234) for details.
github.com/vitessio/vitess/releases/tag/v24.0.6

--grpc-auth-mtls-allowed-substrings の空エントリーを拒否

影響対象--grpc-auth-mtls-allowed-substrings を使った mTLS 認証

以前は、フラグ値が未設定または空の場合や、先頭・末尾のコロン、連続するコロンによって空のエントリーが生じると、すべての subject に一致していました。現在は、空のエントリーがある状態で mTLS モードで起動したプロセスは Failed to load auth plugin をログに記録してステータス 1 で終了します。また、リーフ証明書以外にしか一致しないエントリーでは、クライアントは許可されなくなりました。

原文を表示
With `--grpc-auth-mode=mtls`, `--grpc-auth-mtls-allowed-substrings` was matched against every certificate the client presented, not just the one verified against `--grpc-ca`. A client with any certificate from that CA could append a self-signed certificate with an allowed subject and be admitted ([GHSA-xhx6-rmm2-5h2p](https://github.com/vitessio/vitess/security/advisories/GHSA-xhx6-rmm2-5h2p)). The flag is now matched only against the subject of the verified leaf certificate. In mtls mode the flag can also no longer have an empty entry, which matched every subject: an unset or empty value (the default), or a leading, trailing or repeated colon, such as in `CN=vtctld:`.
- A process started with `--grpc-auth-mode=mtls` logs `Failed to load auth plugin` and exits with status 1 if `--grpc-auth-mtls-allowed-substrings` has an empty entry.
- Before upgrading, set the flag to non-empty entries, and check that each client certificate's subject, as Go formats it (`CN=vtctld,OU=Vitess,O=Example,C=US`), contains one of them.
See [#22234](https://github.com/vitessio/vitess/pull/22234) for details.
github.com/vitessio/vitess/releases/tag/v24.0.6

厳格なテーブル ACL による部分解析の ALTER TABLE と CREATE INDEX の拒否

影響対象厳格なテーブル ACL が有効なタブレット
追加の対応--queryserver-config-strict-table-acl

以前は、解析されなかった末尾部分に、プランナーが確認していないテーブルを指定できました。現在は、呼び出し元が ACL の適用除外対象であるか、すべてのテーブルで必要なロールを持っている場合を除き、対象テーブルを特定できないこれらのステートメントは拒否されます。

原文を表示
Under strict table ACL (`--queryserver-config-strict-table-acl`), only the table a `CREATE TABLE` or `ALTER TABLE` names was checked. A MERGE table's `UNION=(...)` option, a `CREATE TABLE ... LIKE` of a MERGE table, and `ALTER TABLE ... EXCHANGE PARTITION` let a user with ADMIN on one table read and write tables the ACL denied them, and so could a FEDERATED table's `CONNECTION` string where that engine is enabled ([GHSA-q4ch-mhpm-9368](https://github.com/vitessio/vitess/security/advisories/GHSA-q4ch-mhpm-9368)). Now:
- a partially parsed `ALTER TABLE` or `CREATE INDEX`, and a `CREATE TABLE` or `ALTER TABLE` that sets `CONNECTION`, are denied with `command denied ... for a table set that cannot be determined`. The exceptions are the exempt ACL (`--queryserver-config-acl-exempt-acl`) and a caller with every role in a table group covering every table (`%`).
github.com/vitessio/vitess/releases/tag/v24.0.6

VTGate MySQL パケットバッファ再利用の修正

影響対象VTGate MySQL サーバーへの接続

ハンドラーが共有バッファの返却後もパケットを使い続け、そのバッファが別の接続によって上書きされると、認証切り替えの検証、レプリケーションコマンドの引数、一部の不正コマンドに対するエラー応答で、別の接続のバイト列が使われる可能性がありました。サーバーはパケットを再利用する前にデータを読み取り、認証切り替えデータには専用のバッファを使うようになりました。また、返却された読み取り用パケットは再利用前に内容がクリアされます。

原文を表示
- Fixes [GHSA-g6c2-qp3p-x2w2](https://github.com/vitessio/vitess/security/advisories/GHSA-g6c2-qp3p-x2w2): the VTGate MySQL server kept reading a client's packet after returning its buffer to the shared buffer pool, where another connection could overwrite it. The auth switch response checked during login, the arguments of the replication commands, and the error replies to some malformed commands could use bytes from another connection's packet. See [#22247](https://github.com/vitessio/vitess/pull/22247).
github.com/vitessio/vitess/releases/tag/v24.0.6

zk2topo のトポロジー ACL による情報露出の修正

影響対象--topo-zk-auth-file を使用する ZooKeeper デプロイメント

以前の zk2topo は、オープンな ACL でトポロジーの znode を作成していたため、ZooKeeper アンサンブルに接続できるクライアントであれば、トポロジーの読み取り、変更、削除が可能でした。現在は、アクセスが認証済みの ID に制限されます。別の ID を使用するコンポーネントや、ID を指定しないコンポーネントには zk: not authenticated が返されます。

原文を表示
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.
- Every component that shares the topology must use the same ZooKeeper identity, `vtctldclient --server internal` and `topo2topo` included. A component with another identity, or none, gets `zk: not authenticated`.
github.com/vitessio/vitess/releases/tag/v24.0.6

ZooKeeper トポロジーへのアクセスを認証ファイルの ID に限定

影響対象--topo-zk-auth-file で設定された ZooKeeper トポロジー
追加の対応トポロジーを共有する全コンポーネントで同一の ZooKeeper ID を使用すること。アップグレード前の znode については、すべてのコンポーネントでこのリリースを認証ファイル付きで実行した後、各アンサンブルの共通親に対して addauth digest <user>:<password> と setAcl -R <parent> auth::cdrwa を実行すること。

以前は、アンサンブルに接続できるクライアントであれば、world:anyone ACL で作成された znode の読み取り、変更、削除が可能でした。新しい znode にアクセスできるのは、認証ファイルの ID のみです。認証ファイルの読み込み・解析・AddAuth の失敗、およびパスワードのない digest ファイルがある場合は、未認証のまま処理を続けず、接続またはトポロジー呼び出しが失敗します。アップグレード前の znode には、引き続き world:anyone ACL が設定されています。

原文を表示
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.
- A component whose auth file can't be read or parsed, or a `digest` file without a password, now fails every topology call. Before upgrading, check that no component logs `failed to read topo-zk-auth-file`, `failed to parse topo-zk-auth-file contents` or `failed to add auth from topo-zk-auth-file`.
github.com/vitessio/vitess/releases/tag/v24.0.6

テーブルオプションで指定されたテーブルの厳格な ACL チェック

影響対象厳格なテーブル ACL を使用する tablet 構成
追加の対応--queryserver-config-strict-table-acl

従来は CREATE TABLE または ALTER TABLE で指定されたテーブルだけがチェック対象でした。そのテーブルに対する ADMIN 権限を持つユーザーは、ACL に反していても、テーブルオプションで指定された別のテーブルを読み書きできました。今後は、MERGE テーブルの UNION=(...) を含め、テーブルオプションで指定されたすべてのテーブルで READER と WRITER のチェックが必須です。

原文を表示
### Table ACL: tables bound by MERGE `UNION`, `CREATE TABLE ... LIKE` and `EXCHANGE PARTITION` are checked
Under strict table ACL (`--queryserver-config-strict-table-acl`), only the table a `CREATE TABLE` or `ALTER TABLE` names was checked. A MERGE table's `UNION=(...)` option, a `CREATE TABLE ... LIKE` of a MERGE table, and `ALTER TABLE ... EXCHANGE PARTITION` let a user with ADMIN on one table read and write tables the ACL denied them, and so could a FEDERATED table's `CONNECTION` string where that engine is enabled ([GHSA-q4ch-mhpm-9368](https://github.com/vitessio/vitess/security/advisories/GHSA-q4ch-mhpm-9368)). Now:
- tables named by a table option, and the source of `CREATE TABLE ... LIKE`, require READER and WRITER;
github.com/vitessio/vitess/releases/tag/v24.0.6

CREATE TABLE ... LIKE のソース ACL チェックの適用

影響対象厳格なテーブル ACL を有効にした tablet 構成
追加の対応--queryserver-config-strict-table-acl

以前は宛先テーブルのみがチェックされ、ソーステーブルはチェックされていませんでした。また、MERGE のソースから UNION リストが引き継がれることもありました。現在は、ソーステーブルにも READER と WRITER のチェックが必要です。

原文を表示
Under strict table ACL (`--queryserver-config-strict-table-acl`), only the table a `CREATE TABLE` or `ALTER TABLE` names was checked. A MERGE table's `UNION=(...)` option, a `CREATE TABLE ... LIKE` of a MERGE table, and `ALTER TABLE ... EXCHANGE PARTITION` let a user with ADMIN on one table read and write tables the ACL denied them, and so could a FEDERATED table's `CONNECTION` string where that engine is enabled ([GHSA-q4ch-mhpm-9368](https://github.com/vitessio/vitess/security/advisories/GHSA-q4ch-mhpm-9368)). Now:
- tables named by a table option, and the source of `CREATE TABLE ... LIKE`, require READER and WRITER;
github.com/vitessio/vitess/releases/tag/v24.0.6

厳格なテーブル ACL による EXCHANGE PARTITION の両テーブル検証

影響対象厳格なテーブル ACL を有効にした tablet 構成
追加の対応--queryserver-config-strict-table-acl

以前は、ALTER TABLE ... EXCHANGE PARTITION により、一方のテーブルへのアクセス権を持つ呼び出し元が、その ACL に反してもう一方のテーブルを読み書きできる場合がありました。現在は、両方のテーブルで ADMIN、READER、WRITER の各チェックに合格する必要があります。

原文を表示
Under strict table ACL (`--queryserver-config-strict-table-acl`), only the table a `CREATE TABLE` or `ALTER TABLE` names was checked. A MERGE table's `UNION=(...)` option, a `CREATE TABLE ... LIKE` of a MERGE table, and `ALTER TABLE ... EXCHANGE PARTITION` let a user with ADMIN on one table read and write tables the ACL denied them, and so could a FEDERATED table's `CONNECTION` string where that engine is enabled ([GHSA-q4ch-mhpm-9368](https://github.com/vitessio/vitess/security/advisories/GHSA-q4ch-mhpm-9368)). Now:
- both tables of `EXCHANGE PARTITION` require ADMIN, READER and WRITER;
github.com/vitessio/vitess/releases/tag/v24.0.6

厳格なテーブル ACL による CONNECTION のテーブルバインド拒否

影響対象厳格なテーブル ACL を使用する tablet 構成
追加の対応--queryserver-config-strict-table-acl

従来は、ACL が名前で確認できないテーブルにも CONNECTION 文字列をバインドでき、ACL が拒否するテーブルへのアクセスが可能でした。注記では、そのエンジンが有効な場合の FEDERATED テーブルを例に挙げています。このようなステートメントは現在、command denied ... エラーで拒否されます。ただし、ACL の適用除外ユーザーと、すべてのテーブル(%)を対象とするテーブルグループの全ロールを保持する呼び出し元は除きます。

原文を表示
Under strict table ACL (`--queryserver-config-strict-table-acl`), only the table a `CREATE TABLE` or `ALTER TABLE` names was checked. A MERGE table's `UNION=(...)` option, a `CREATE TABLE ... LIKE` of a MERGE table, and `ALTER TABLE ... EXCHANGE PARTITION` let a user with ADMIN on one table read and write tables the ACL denied them, and so could a FEDERATED table's `CONNECTION` string where that engine is enabled ([GHSA-q4ch-mhpm-9368](https://github.com/vitessio/vitess/security/advisories/GHSA-q4ch-mhpm-9368)). Now:
- a partially parsed `ALTER TABLE` or `CREATE INDEX`, and a `CREATE TABLE` or `ALTER TABLE` that sets `CONNECTION`, are denied with `command denied ... for a table set that cannot be determined`. The exceptions are the exempt ACL (`--queryserver-config-acl-exempt-acl`) and a caller with every role in a table group covering every table (`%`).
github.com/vitessio/vitess/releases/tag/v24.0.6

CopySchemaShard のスキーマテンプレート実行の修正

影響対象--skip-schema-copy を設定せずに CopySchemaShard を実行する環境。スキーマコピーを行う Reshard も含む

修正前は、コピーした SHOW CREATE 文内のテンプレートアクション(テーブルコメント内など)によって、Vitess が宛先プライマリ上で DBA ユーザーとして任意の SQL を実行する可能性がありました。コピーしたスキーマテキストはリテラルとして扱われるようになり、データベース名の置換後に複数のステートメントを含む定義は拒否されます。

原文を表示
`CopySchemaShard`, which `Reshard` also runs for each new shard unless `--skip-schema-copy` is set, filled the `{{.DatabaseName}}` placeholder by executing each copied `SHOW CREATE` statement as a Go `text/template`. A user able to run DDL could put template actions in, for example, a table comment, and make Vitess run arbitrary SQL as the DBA user on the destination primaries ([GHSA-7g75-v57j-2ghw](https://github.com/vitessio/vitess/security/advisories/GHSA-7g75-v57j-2ghw)). The same pattern existed when a Reshard migrates the keyspace's other workflows (each stream's filter, which can contain table names, was executed as a template to fill in the key range) and in the legacy `vtctl` materializer (`MoveTables`, `Materialize`, `Migrate`, `CreateLookupVindex`). VDiff's `--debug-query` used the diffed query's `FROM` clause as a format string, so a `%` in a table name crashed vttablet. Placeholders are now substituted literally, and nothing else in the text is interpreted.
- `CopySchemaShard`, and so `Reshard`'s schema copy, refuses a copied definition that is more than one statement once the database name is filled in.
github.com/vitessio/vitess/releases/tag/v24.0.6

Reshard のストリームフィルターにおける余分なテンプレート構文の拒否

影響対象同一キースペース内の他のワークフローが関与する Reshard ワークフローの移行

Reshard ワークフローの移行中、別のワークフローのストリームフィルターに {{ が含まれていると、テンプレートアクションによってフィルターが書き換えられたり、ソースへの書き込みを停止した後に vtctld がクラッシュしたりする可能性がありました。また、DDLを実行できるユーザーがテンプレートアクションを使い、宛先プライマリ上で Vitess に DBA ユーザーとして任意の SQL を実行させることも可能でした。このようなフィルターは拒否されるようになりました。SwitchTraffic を実行しても書き込みはソースシャードに残り、このコマンドで切り替えたレプリカと rdonly の読み取りは切り替わった状態を保ちます。--dry-run ではエラーが報告されます。

原文を表示
`CopySchemaShard`, which `Reshard` also runs for each new shard unless `--skip-schema-copy` is set, filled the `{{.DatabaseName}}` placeholder by executing each copied `SHOW CREATE` statement as a Go `text/template`. A user able to run DDL could put template actions in, for example, a table comment, and make Vitess run arbitrary SQL as the DBA user on the destination primaries ([GHSA-7g75-v57j-2ghw](https://github.com/vitessio/vitess/security/advisories/GHSA-7g75-v57j-2ghw)). The same pattern existed when a Reshard migrates the keyspace's other workflows (each stream's filter, which can contain table names, was executed as a template to fill in the key range) and in the legacy `vtctl` materializer (`MoveTables`, `Materialize`, `Migrate`, `CreateLookupVindex`). VDiff's `--debug-query` used the diffed query's `FROM` clause as a format string, so a `%` in a table name crashed vttablet. Placeholders are now substituted literally, and nothing else in the text is interpreted.
- A Reshard's `SwitchTraffic` fails to switch writes if another workflow in the keyspace has a filter that contains `{{`, for example a moved table whose name contains it. Writes stay on the source shards; replica and rdonly reads that the same command switched stay switched, and `--dry-run` reports the error.
github.com/vitessio/vitess/releases/tag/v24.0.6

VDiff --debug-query の FROM 句処理の修正

影響対象--debug-query を使う VDiff の実行

DDL を実行できるユーザーが、テーブルコメントにテンプレートアクションを記述し、Vitess に宛先プライマリ上で DBA 権限による任意の SQL を実行させる可能性がありました。テーブル名に % が含まれると vttablet がクラッシュすることがあり、行の不一致や余分な行がある場合は、対象プライマリの vttablet がクラッシュしたり、従来の VDiff がパニックしたりすることもありました。差分クエリの FROM 句はフォーマット文字列として扱わず、そのまま出力するようになったため、テーブル名の % による前述のクラッシュは発生しなくなりました。

原文を表示
`CopySchemaShard`, which `Reshard` also runs for each new shard unless `--skip-schema-copy` is set, filled the `{{.DatabaseName}}` placeholder by executing each copied `SHOW CREATE` statement as a Go `text/template`. A user able to run DDL could put template actions in, for example, a table comment, and make Vitess run arbitrary SQL as the DBA user on the destination primaries ([GHSA-7g75-v57j-2ghw](https://github.com/vitessio/vitess/security/advisories/GHSA-7g75-v57j-2ghw)). The same pattern existed when a Reshard migrates the keyspace's other workflows (each stream's filter, which can contain table names, was executed as a template to fill in the key range) and in the legacy `vtctl` materializer (`MoveTables`, `Materialize`, `Migrate`, `CreateLookupVindex`). VDiff's `--debug-query` used the diffed query's `FROM` clause as a format string, so a `%` in a table name crashed vttablet. Placeholders are now substituted literally, and nothing else in the text is interpreted.
github.com/vitessio/vitess/releases/tag/v24.0.6

VDiff のテーブル統計用識別子のエスケープ修正

影響対象VDiff のテーブル統計更新

これまでは、バッククォートを含むテーブル名によって SQL 文が変わり、意図したテーブルが分析されないことがありました。VDiff は ANALYZE TABLE 文内のデータベース識別子とテーブル識別子をエスケープするようになりました。通常のテーブル名への影響はありません。

原文を表示
- Fixes [GHSA-mmjh-49cg-g5v2](https://github.com/vitessio/vitess/security/advisories/GHSA-mmjh-49cg-g5v2): SQL injection through table names in the `ANALYZE TABLE` that VDiff runs for `--update-table-stats`. See [#22243](https://github.com/vitessio/vitess/pull/22243).
github.com/vitessio/vitess/releases/tag/v24.0.6

VTGate の COM_REGISTER_SLAVE パケット長チェックの追加

影響対象VTGate の MySQL レプリケーション登録

ホスト名、ユーザー名、またはパスワードの長さが COM_REGISTER_SLAVE パケットの範囲を超えている場合、以前は範囲外読み取りや接続を閉じるパニックが発生する可能性がありました。パーサーはこれらの長さをパケットの範囲と照合するようになりました。

原文を表示
- Fixes [GHSA-g6c2-qp3p-x2w2](https://github.com/vitessio/vitess/security/advisories/GHSA-g6c2-qp3p-x2w2): the VTGate MySQL server kept reading a client's packet after returning its buffer to the shared buffer pool, where another connection could overwrite it. The auth switch response checked during login, the arguments of the replication commands, and the error replies to some malformed commands could use bytes from another connection's packet. See [#22247](https://github.com/vitessio/vitess/pull/22247).
github.com/vitessio/vitess/releases/tag/v24.0.6

VDiff と Reshard の stop_pos における SQL インジェクションの修正

影響対象ソースタブレットのレプリケーション位置から stop_pos を更新する VDiff ワークフローおよび Reshard 操作

報告された位置に引用符が含まれていると、エスケープされていない更新文が壊れ、SQL インジェクションが可能になる場合がありました。位置はエスケープした SQL 文字列リテラルとして書き込まれるようになりました。通常の位置では、文は変更されません。

原文を表示
- Fixes [GHSA-hqg6-fhvc-3vmf](https://github.com/vitessio/vitess/security/advisories/GHSA-hqg6-fhvc-3vmf): SQL injection through a replication position from a source tablet in the `stop_pos` update that VDiff runs and in the update that `Reshard` runs when switching writes. See [#22250](https://github.com/vitessio/vitess/pull/22250).
github.com/vitessio/vitess/releases/tag/v24.0.6

VDiff と Reshard のレプリケーション位置を使った SQL インジェクションの修正

影響対象VDiff v2 とレガシー VDiff、および Reshard の書き込み切り替え

ソースタブレットからのレプリケーション位置により、VDiff の stop_pos 更新時と、Reshard の書き込み切り替え時の更新で SQL インジェクションが可能になるおそれがありました。VDiff は stop_pos の更新前にソースのスナップショット位置を解析するようになりました。解析できない位置の場合はターゲットストリームを変更せずに失敗し、解析できる位置は再エンコードして保存します。

原文を表示
- Fixes [GHSA-hqg6-fhvc-3vmf](https://github.com/vitessio/vitess/security/advisories/GHSA-hqg6-fhvc-3vmf): SQL injection through a replication position from a source tablet in the `stop_pos` update that VDiff runs and in the update that `Reshard` runs when switching writes. See [#22250](https://github.com/vitessio/vitess/pull/22250).
github.com/vitessio/vitess/releases/tag/v24.0.6

破壊的変更1

ZooKeeper digest 認証ファイルに完全な認証情報が必要

影響対象ZooKeeper digest 認証ファイル
必要な対応digest 認証ファイルにユーザー名とパスワードの両方が含まれていること。形式は digest:<user>:<password>

末尾の CR は破棄されるため、CRLF で終端されたファイルから得られる identity は、zkCli.sh で addauth digest <user>:<password> を実行した場合と同じです。

原文を表示
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/v24.0.6

重大な修正2

  • VTGate のプリペアドステートメント処理における接続切断の修正
    影響対象VTGate の MySQL プリペアドステートメント処理

    不正な COM_STMT_RESET パケットを受信した場合、またはステートメント ID が不明な場合、サーバーはエラーを送信した後、nil の PrepareData を参照して接続を閉じていました。現在はエラーを 1 回だけ送信し、接続を開いたままにします。

    - Fixes [GHSA-g6c2-qp3p-x2w2](https://github.com/vitessio/vitess/security/advisories/GHSA-g6c2-qp3p-x2w2): the VTGate MySQL server kept reading a client's packet after returning its buffer to the shared buffer pool, where another connection could overwrite it. The auth switch response checked during login, the arguments of the replication commands, and the error replies to some malformed commands could use bytes from another connection's packet. See [#22247](https://github.com/vitessio/vitess/pull/22247).
    github.com/vitessio/vitess/releases/tag/v24.0.6
  • 未知の COM_SET_OPTION 操作への応答をエラーのみに修正
    影響対象VTGate MySQL の COM_SET_OPTION 処理

    クライアントが未知の操作を指定して COM_SET_OPTION を送信すると、サーバーはエラーの後に OK も返していたため、クライアントの応答処理が1件ずれていました。

    - Fixes [GHSA-g6c2-qp3p-x2w2](https://github.com/vitessio/vitess/security/advisories/GHSA-g6c2-qp3p-x2w2): the VTGate MySQL server kept reading a client's packet after returning its buffer to the shared buffer pool, where another connection could overwrite it. The auth switch response checked during login, the arguments of the replication commands, and the error replies to some malformed commands could use bytes from another connection's packet. See [#22247](https://github.com/vitessio/vitess/pull/22247).
    github.com/vitessio/vitess/releases/tag/v24.0.6

機能・改善2

  • vtctldclient、topo2topo、zk への ZooKeeper トポロジーフラグの追加

    利用条件 該当する --topo-zk-* フラグ、および vtctldclient で必要な --server internal

    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/v24.0.6
  • vttestserver による ZooKeeper 認証・TLS フラグの vtcombo への転送

    利用条件 外部トポロジーの使用

    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/v24.0.6
その他の変更2
  • 従来の vtctl におけるソース式テンプレート置換の停止
    `CopySchemaShard`, which `Reshard` also runs for each new shard unless `--skip-schema-copy` is set, filled the `{{.DatabaseName}}` placeholder by executing each copied `SHOW CREATE` statement as a Go `text/template`. A user able to run DDL could put template actions in, for example, a table comment, and make Vitess run arbitrary SQL as the DBA user on the destination primaries ([GHSA-7g75-v57j-2ghw](https://github.com/vitessio/vitess/security/advisories/GHSA-7g75-v57j-2ghw)). The same pattern existed when a Reshard migrates the keyspace's other workflows (each stream's filter, which can contain table names, was executed as a template to fill in the key range) and in the legacy `vtctl` materializer (`MoveTables`, `Materialize`, `Migrate`, `CreateLookupVindex`). VDiff's `--debug-query` used the diffed query's `FROM` clause as a format string, so a `%` in a table name crashed vttablet. Placeholders are now substituted literally, and nothing else in the text is interpreted.
    - The legacy `vtctl` `Materialize` no longer substitutes a `{{.keyrange}}` or `{{.dbname}}` written in a source expression. This was never documented, and `vtctldclient Materialize` never supported it.
    github.com/vitessio/vitess/releases/tag/v24.0.6
  • VTGateの未知コマンドログでパケットバイト列を省略
    - Fixes [GHSA-g6c2-qp3p-x2w2](https://github.com/vitessio/vitess/security/advisories/GHSA-g6c2-qp3p-x2w2): the VTGate MySQL server kept reading a client's packet after returning its buffer to the shared buffer pool, where another connection could overwrite it. The auth switch response checked during login, the arguments of the replication commands, and the error replies to some malformed commands could use bytes from another connection's packet. See [#22247](https://github.com/vitessio/vitess/pull/22247).
    github.com/vitessio/vitess/releases/tag/v24.0.6

整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。