Anubhav Jindal has posted comments on this change. ( https://gerrit.cloudera.org/25247 )
Change subject: IMPALA-14331: Support proxy for JWKS URL download ...................................................................... Patch Set 5: (6 comments) https://gerrit.cloudera.org/#/c/25247/4/be/src/kudu/util/curl_util.cc File be/src/kudu/util/curl_util.cc: https://gerrit.cloudera.org/#/c/25247/4/be/src/kudu/util/curl_util.cc@293 PS4, Line 293: CURL_RETURN_NOT_OK(curl_easy_setopt(curl_, CURLOPT_PROXY_SSL_VERIFYHOST, 0)); > The proxy CA and pinned-key options are only applied when proxy_ is non-emp Good catch, agreed. The proxy TLS options (verify, CA and pin) are now set outside the proxy_ check, so they also apply to a proxy from https_proxy https://gerrit.cloudera.org/#/c/25247/4/be/src/util/jwt-util.h File be/src/util/jwt-util.h: https://gerrit.cloudera.org/#/c/25247/4/be/src/util/jwt-util.h@70 PS4, Line 70: // Custom deleter: intended for use with std::unique_ptr<JWTDecodedToken>. > This signature (and JWKSMgr::Init / JWKSSnapshot::LoadKeysFromUrl) is now 9 Agreed, done. https://gerrit.cloudera.org/#/c/25247/4/be/src/util/jwt-util.cc File be/src/util/jwt-util.cc: https://gerrit.cloudera.org/#/c/25247/4/be/src/util/jwt-util.cc@883 PS4, Line 883: DCHECK(current_jwks_.get() != nullptr); > The commit message states the proxy is used "for the periodic JWKS refresh" Done https://gerrit.cloudera.org/#/c/25247/4/be/src/util/oauth-server-config.cc File be/src/util/oauth-server-config.cc: https://gerrit.cloudera.org/#/c/25247/4/be/src/util/oauth-server-config.cc@64 PS4, Line 64: "defaults to caCertFilePath. If jwksProxyCaCertFilePath is empty, the CA " > The flag text says an empty jwksProxyCaCertFilePath "uses the default CA bu You're right, the text was misleading. I reworded the flag help, the header comment and the commit message. https://gerrit.cloudera.org/#/c/25247/4/tests/custom_cluster/test_shell_oauth_servers_auth.py File tests/custom_cluster/test_shell_oauth_servers_auth.py: https://gerrit.cloudera.org/#/c/25247/4/tests/custom_cluster/test_shell_oauth_servers_auth.py@66 PS4, Line 66: > This pin is hard-coded against the current be/src/testutil/server-cert.pem. Good point. A new public_key_pin() helper now computes the pin from SERVER_CERT at test time https://gerrit.cloudera.org/#/c/25247/4/tests/util/proxy_servers.py File tests/util/proxy_servers.py: https://gerrit.cloudera.org/#/c/25247/4/tests/util/proxy_servers.py@157 PS4, Line 157: line = self.rfile.readline().decode('latin-1') > This raises ValueError: not enough values to unpack when request_line is em Thanks, I added the early if not request_line: return with a short comment explaining why. The traceback no longer shows up in the test log. -- To view, visit https://gerrit.cloudera.org/25247 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I6741b8e107f707d3fcc0a9e15ac01b5769191924 Gerrit-Change-Number: 25247 Gerrit-PatchSet: 5 Gerrit-Owner: Anubhav Jindal <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Anubhav Jindal <[email protected]> Gerrit-Reviewer: Gokul Kolady <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Yida Wu <[email protected]> Gerrit-Comment-Date: Tue, 17 Nov 2026 23:54:31 +0000 Gerrit-HasComments: Yes
