RATATOSK
← 전체 릴리스

Vitessv23.0.9

보안 19호환성 변경 1중요 수정 3기능·개선 1기타 1

Vitess 알림 받기

확인할 변경이 있을 때만 주 1회, critical 보안 공지는 즉시 발송

업그레이드 전 확인

전제 조건3
기존 znode의 ACL 업데이트

업그레이드 전에 생성된 znode의 ACL은 모든 구성 요소에서 인증 파일을 사용해 v23.0.9를 실행한 뒤 변경됩니다. PR에서는 업그레이드 전에 모든 구성 요소에 인증 파일을 설정하거나, 한 번의 롤아웃에서 인증 파일을 사용해 구성 요소를 재시작하는 방법도 설명합니다.

- 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/v23.0.9
업그레이드 전 gRPC mTLS subject 일치 설정 필수

업그레이드 전에 --grpc-auth-mtls-allowed-substrings에 비어 있지 않은 항목을 설정해야 합니다. Go 형식으로 표기한 각 클라이언트 인증서의 subject에는 해당 항목 중 하나가 포함되어야 합니다.

- 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.
github.com/vitessio/vitess/releases/tag/v23.0.9
파싱되지 않은 파티션 유지보수 문 거부

파서가 문 전체를 파싱하지 못하면 예외 대상이 아닌 다중 파티션 정의가 포함된 ADD PARTITION 문과 ADD PARTITION PARTITIONS n 문을 거부합니다. 작업 실패는 나중에 RANGE 테이블의 마지막 경계를 넘어서는 삽입이 실패하는 형태로 나타날 수 있습니다.

- 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.
github.com/vitessio/vitess/releases/tag/v23.0.9
알려진 문제1
릴리스 전에 만든 테이블 바인딩, 업그레이드 후에도 유지

과거에 수행한 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/v23.0.9

보안19

vttestserver의 ZooKeeper 인증 및 TLS 플래그를 vtcombo에 전달

영향 대상외부 토폴로지를 사용하는 vttestserver 설정
추가 조치관련 --topo-zk-auth-file 및/또는 --topo-zk-tls-* 플래그가 설정된 경우

이전에는 vtcombo가 vttestserver와 동일한 ZooKeeper 아이덴티티나 TLS 설정을 사용하지 않아, 개방된 루트 아래에 world:anyone znode가 남을 수 있었습니다. 이제 vtcombo는 vttestserver와 동일한 아이덴티티로 인증하고 같은 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

검증된 인증서 기준의 mTLS 권한 확인과 빈 부분 문자열 항목 거부

영향 대상설정되지 않았거나 비어 있거나 콜론으로 구분된 빈 --grpc-auth-mtls-allowed-substrings 항목이 있는 mTLS 프로세스
추가 조치각 클라이언트 인증서의 Go 형식 subject와 일치하는 비어 있지 않은 허용 부분 문자열 항목

이전에는 뒤에 추가된 자체 서명 인증서가 허용된 subject와 일치하면 검증된 리프 인증서가 일치하지 않아도 클라이언트가 허용될 수 있었습니다. 이제 리프가 아닌 인증서만 일치하는 클라이언트의 RPC는 Unauthenticated로 실패합니다. 빈 항목이 있으면 시작 시 프로세스가 치명적인 Failed to load auth plugin 오류와 함께 종료됩니다.

원문 보기
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` as a fatal error, with a dump of all goroutines, and exits if `--grpc-auth-mtls-allowed-substrings` has an empty entry.
github.com/vitessio/vitess/releases/tag/v23.0.9

Reshard 워크플로 필터 치환 오류 수정

영향 대상Reshard SwitchTraffic을 사용하는 키스페이스

키스페이스의 다른 워크플로 필터에 {{가 포함되어 있으면(예: 이동한 테이블 이름에 포함된 경우), 소스 쓰기가 중단된 뒤 필터가 다시 작성되거나 vtctld가 비정상 종료될 수 있었습니다. 이제 명령은 키 범위 플레이스홀더를 문자 그대로 치환하고, 그 밖의 {{가 포함된 필터는 거부합니다. 쓰기는 소스 샤드에 남고, 같은 명령으로 전환된 replica 및 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/v23.0.9

버퍼 재활용 후 VTGate MySQL 패킷 읽기 수정

영향 대상auth-switch 응답 또는 replication 명령을 처리하는 VTGate MySQL 서버 연결

로그인 중, auth-switch 응답과 replication 명령 인수, 일부 잘못된 명령에 대한 오류 응답을 처리할 때 패킷 버퍼가 공유 풀에 반환된 뒤 다른 연결이 덮어쓴 바이트를 사용할 수 있었습니다. 수정 후에는 버퍼를 재활용하기 전에 replication 명령을 파싱하고, auth-switch 응답에는 별도 버퍼를 사용하며, 재활용된 읽기 패킷을 초기화합니다.

원문 보기
- 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/v23.0.9

ZooKeeper znode ACL을 인증된 아이덴티티로 제한

영향 대상--topo-zk-auth-file을 사용하는 ZooKeeper 토폴로지
추가 조치기존 znode에는 각 앙상블의 공통 부모에서 모든 컴포넌트가 인증 파일을 사용해 v23.0.9를 실행한 뒤 addauth digest <user>:<password>와 setAcl -R <parent> auth::cdrwa를 실행해야 합니다.

이전에는 인증 파일을 설정했더라도 앙상블에 연결할 수 있는 모든 클라이언트가 토폴로지 znode를 읽고, 변경하고, 삭제할 수 있었습니다. 새 znode는 인증된 아이덴티티만 접근할 수 있도록 제한됩니다. 업그레이드 전에 생성된 znode는 별도로 변경할 때까지 기존 ACL을 유지합니다.

원문 보기
### ZooKeeper topology znodes are restricted to the `--topo-zk-auth-file` identity
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/v23.0.9

ZooKeeper 토폴로지 접근의 인증 오류 시 fail-closed 처리

영향 대상--topo-zk-auth-file을 사용하는 배포 환경
추가 조치인증 파일을 지정해 이번 릴리스를 실행하는 모든 컴포넌트가 실행된 뒤, 기존 znode에 대해 각 ZooKeeper 앙상블에서 수행할 ACL 업데이트: addauth digest <user>:<password>를 실행한 다음, global 및 cell 루트의 공통 부모에서 setAcl -R <parent> auth::cdrwa 실행

이전에는 인증 파일이 없거나, 읽을 수 없거나, 형식이 잘못된 경우 또는 AddAuth 호출이 실패한 경우 컴포넌트가 인증되지 않은 상태로 남을 수 있었습니다. 또한 digest 파일에 사용자 이름과 비밀번호가 모두 들어 있지 않아도 됐습니다. 이제 이러한 경우 연결 또는 토폴로지 호출이 실패합니다.

원문 보기
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/v23.0.9

gRPC mTLS 허용 목록 검사, 검증된 리프 인증서로 제한

영향 대상--grpc-auth-mode=mtls로 gRPC 상호 TLS를 구성한 경우

이전에는 --grpc-ca로 검증된 인증서를 가진 클라이언트가, 허용된 부분 문자열과 subject가 일치하는 자체 서명 인증서를 덧붙여 허용될 수 있었습니다. 이제 허용 목록 항목이 리프가 아닌 인증서에만 일치하는 클라이언트는 컴포넌트 RPC가 client certificate not authorized (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:`.
- 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.
github.com/vitessio/vitess/releases/tag/v23.0.9

옵션 지정 테이블의 엄격한 테이블 ACL 검사 수정

영향 대상엄격한 테이블 ACL이 적용되는, 다른 테이블을 지정하는 테이블 옵션
추가 조치--queryserver-config-strict-table-acl

이전에는 CREATE TABLE이나 ALTER TABLE에 지정된 테이블만 검사했기 때문에, 해당 테이블에 ADMIN 권한이 있는 사용자는 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/v23.0.9

CREATE TABLE ... LIKE의 원본 테이블 ACL 우회 수정

영향 대상엄격한 테이블 ACL이 활성화된 태블릿
추가 조치--queryserver-config-strict-table-acl 활성화

이전에는 CREATE TABLE ... LIKE가 원본 테이블의 ACL을 우회할 수 있어, 한 테이블에서 ADMIN 권한을 가진 사용자가 ACL로 차단된 다른 테이블을 읽고 쓸 수 있었습니다. 이제 원본 테이블에서 호출자에게 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/v23.0.9

파티션 교환의 ACL 우회 수정

영향 대상엄격한 테이블 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/v23.0.9

엄격한 테이블 ACL에서 테이블 집합을 판별할 수 없는 문장 거부

영향 대상엄격한 테이블 ACL을 사용하는 태블릿
추가 조치--queryserver-config-strict-table-acl 플래그

이전에는 일부만 파싱된 ALTER TABLE 및 CREATE INDEX 문이 MySQL로 전달되어, 파싱되지 않은 뒷부분에 플래너가 검사하지 않은 테이블이 지정될 수 있었습니다. 이제 Vitess가 테이블 집합을 판별하지 못하면 해당 문을 거부합니다. 이 거부는 CONNECTION을 설정하는 CREATE TABLE 또는 ALTER TABLE 문에도 적용됩니다. 다만 명시된 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/v23.0.9

엄격한 테이블 ACL에서 CONNECTION 문 거부

영향 대상엄격한 테이블 ACL이 활성화된 태블릿
추가 조치--queryserver-config-strict-table-acl

이전에는 CONNECTION 문자열로 테이블을 다른 테이블에 연결할 때 대상 테이블을 ACL과 대조하지 않았습니다. 그 결과 ACL이 거부한 읽기와 쓰기가 가능했습니다. 해당 엔진을 활성화한 경우 FEDERATED 테이블에서 이런 문제가 발생한다고 릴리스 노트는 설명합니다. 이제 엔진 종류와 관계없이 CONNECTION을 설정하는 CREATE TABLE 및 ALTER TABLE 문은 거부됩니다. 단, 예외 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/v23.0.9

엄격한 테이블 ACL에서 지원되지 않는 SERIAL 컬럼 거부

영향 대상엄격한 테이블 ACL을 활성화한 태블릿
추가 조치--queryserver-config-strict-table-acl

파서는 SERIAL을 지원하지 않습니다. BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE로 명시하면 지원되지 않는 타입 문법을 피할 수 있습니다.

원문 보기
- 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/v23.0.9

CopySchemaShard의 안전하지 않은 템플릿 실행 수정

영향 대상CopySchemaShard를 사용하는 구성 및 --skip-schema-copy를 설정하지 않은 Reshard 스키마 복사

DDL을 실행할 수 있는 사용자가 복사 대상 정의에 템플릿 액션을 넣으면 대상 프라이머리에서 DBA 권한으로 임의 SQL이 실행될 수 있었습니다. 잘못된 액션으로 CopySchemaShard에서 패닉이 발생하거나 Reshard 중 vtctld가 종료될 수도 있었습니다. 이제 복사된 정의의 템플릿 액션은 문자 그대로 처리하며, 데이터베이스 이름을 치환한 뒤 문장이 둘 이상 남으면 처리를 거부합니다.

원문 보기
`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/v23.0.9

VDiff ANALYZE TABLE 식별자 이스케이프 수정

영향 대상--update-table-stats 옵션을 사용하는 VDiff 실행

데이터베이스 이름이나 테이블 이름에 백틱이 있으면, 식별자를 이스케이프하지 않아 의도한 테이블을 분석하지 않는 문장이 생성될 수 있었습니다. 이제 VDiff는 두 식별자를 모두 이스케이프하며, 식별자 안에 포함된 백틱도 처리합니다. 일반적인 테이블 이름에서는 생성되는 문장이 이전과 동일합니다.

원문 보기
- 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/v23.0.9

VTGate가 알 수 없는 COM_SET_OPTION 작업에는 오류만 전송

영향 대상VTGate에서 COM_SET_OPTION을 사용하는 MySQL 클라이언트

알 수 없는 작업에 대해 이전에는 오류 응답 뒤에 OK 응답도 보내 클라이언트가 응답을 하나씩 밀려서 처리했습니다. 잘못된 명령의 오류 문구는 달라질 수 있지만, 오류 코드와 SQL 상태는 그대로 유지됩니다.

원문 보기
- 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/v23.0.9

VTGate COM_REGISTER_SLAVE 패킷 길이 검사 추가

영향 대상COM_REGISTER_SLAVE 패킷을 처리하는 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/v23.0.9

VDiff 및 Reshard의 stop_pos 업데이트에서 복제 위치 이스케이프 처리

영향 대상stop_pos에 소스 태블릿의 복제 위치를 기록하는 VDiff 및 Reshard 워크플로

이전에는 소스 태블릿의 복제 위치에 따옴표가 있으면 잘못되었거나 SQL 주입에 악용될 수 있는 SQL 문이 생성될 수 있었습니다. 여기에는 FilePos 파일 이름에 따옴표가 있는 경우도 포함됩니다. VDiff가 스냅샷 위치를 기록하거나 Reshard가 쓰기를 전환할 때 이런 문제가 발생할 수 있었습니다.

원문 보기
- 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/v23.0.9

소스 포지션을 통한 VDiff SQL 인젝션 수정

영향 대상VDiff 실행

소스 태블릿이 파싱할 수 없는 스냅샷 포지션을 보고하면, VDiff는 해당 포지션을 기다리다 실패하기 전에 대상 스트림의 stop_pos를 업데이트했습니다. 이제 VDiff는 소스 포지션을 먼저 파싱합니다. 유효하지 않은 값은 업데이트 전에 실패하고, 유효한 값은 다시 인코딩해 저장합니다. 대상 스냅샷 포지션은 파싱하지 않습니다.

원문 보기
- 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/v23.0.9

호환성 변경1

레거시 vtctl Materialize의 소스 표현식 플레이스홀더 치환 중단

영향 대상레거시 vtctl Materialize에서 {{.keyrange}} 또는 {{.dbname}}를 사용하는 소스 표현식

이전에는 소스 표현식의 플레이스홀더가 대상 키 범위 또는 데이터베이스 이름으로 치환됐습니다. 이제 문서화되지 않은 이 치환에 의존하던 표현식에는 플레이스홀더가 그대로 남습니다.

원문 보기
`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/v23.0.9

중요 수정3

  • CRLF 환경에서 ZooKeeper 인증 파일의 아이덴티티 매칭 수정
    영향 대상CRLF 줄바꿈을 사용하는 ZooKeeper 인증 파일, 특히 digest 인증 파일

    CRLF 줄바꿈을 사용하면 끝에 붙은 CR이 제거되어, 결과 아이덴티티가 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/v23.0.9
  • VDiff --debug-query 포맷 문자열 처리 크래시 수정
    영향 대상이름에 %가 포함된 테이블에서 VDiff --debug-query를 사용하는 경우

    행이 일치하지 않거나 추가 행이 있으면 대상 프라이머리의 vttablet이 크래시하거나 레거시 VDiff에서 패닉이 발생할 수 있었습니다. 이제 diff 대상 쿼리의 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/v23.0.9
  • 잘못된 COM_STMT_RESET 이후에도 연결을 유지하는 VTGate
    영향 대상VTGate MySQL 프로토콜 연결

    잘못된 형식의 COM_STMT_RESET 패킷이나 알 수 없는 statement ID가 들어오면, 이전에는 스택 트레이스를 로그에 남기고 연결을 닫았습니다. 이제 클라이언트에는 오류 하나가 반환되고 연결은 열린 상태로 유지됩니다. 오류 문구는 달라질 수 있지만 오류 코드와 SQL 상태는 바뀌지 않습니다.

    - 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/v23.0.9

기능·개선1

  • ZooKeeper 플래그 지원과 토폴로지 도구의 ACL 일치

    사용 조건 ZooKeeper ACL 동작을 위한 --topo-zk-auth-file 설정

    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
기타1
  • 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/v23.0.9

정리 내용은 AI가 작성하므로 틀릴 수 있으며, 보증 없이 제공합니다.