mchades commented on code in PR #14963: URL: https://github.com/apache/gravitino/pull/14963#discussion_r4561210393
########## gradle/libs.versions.toml: ########## @@ -121,7 +121,7 @@ selenium = "4.33.0" rauschig = "1.2.0" mybatis = "3.5.6" h2db = "2.2.224" -kafka = "3.4.0" +kafka = "3.9.2" Review Comment: [P1] Block caller-controlled ConfigProviders before upgrading With 3.9.2, a user with `CREATE_CATALOG` can select `EnvVarConfigProvider` through `gravitino.bypass.config.providers*` and reference a server environment variable from a numeric Kafka option. The Kafka catalog's `testConnection` API returns the resolved value verbatim in the validation error, exposing server environment values to catalog users without requiring a reachable broker. I reproduced this over HTTP using a synthetic marker. With 3.4.0, the provider cannot be loaded. With 3.9.2, the marker appears in the response. Setting `org.apache.kafka.automatic.config.providers=none` on 3.9.2 rejects the same request. Please reject caller-supplied `config.providers` before constructing the AdminClient and add a regression test for the connection-test endpoint. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
