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 3:

(8 comments)

https://gerrit.cloudera.org/#/c/25247/2/be/src/kudu/util/curl_util.cc
File be/src/kudu/util/curl_util.cc:

https://gerrit.cloudera.org/#/c/25247/2/be/src/kudu/util/curl_util.cc@280
PS2, Line 280:   if (!proxy_.empty()) {
> Let's also implement the https://curl.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBL
Done. Added set_proxy_pinned_public_key() to EasyCurl and a new 
jwksProxyPinnedPublicKey field.


https://gerrit.cloudera.org/#/c/25247/2/be/src/kudu/util/curl_util.cc@300
PS2, Line 300:     }
> The CURLOPT_NOPROXY setting must always be set if `noproxy_` is not empty.
Done, it's set whenever noproxy_ isn't empty now.


https://gerrit.cloudera.org/#/c/25247/2/be/src/util/jwt-util.cc
File be/src/util/jwt-util.cc:

https://gerrit.cloudera.org/#/c/25247/2/be/src/util/jwt-util.cc@837
PS2, Line 837:     return nullptr;
             :   }
> Let's make this log message always log whether or not a jwks proxy is defin
Done


https://gerrit.cloudera.org/#/c/25247/2/be/src/util/oauth-server-config.cc
File be/src/util/oauth-server-config.cc:

https://gerrit.cloudera.org/#/c/25247/2/be/src/util/oauth-server-config.cc@97
PS2, Line 97: Status ValidateJwksProxy(const OAuthServerConfig& config) {
> Can we let libcurl do all this validation?  If not, use the libcurl URL par
Yes, I removed the custom parser and libcurl validates it now. A bad value 
fails startup on the first download. The only checks left are that jwksProxy 
needs jwksUrl and the pinned key needs jwksProxy.


https://gerrit.cloudera.org/#/c/25247/2/be/src/util/oauth-server-config.cc@119
PS2, Line 119:     std::string* value_out) {
> Don't limit the value of `jwksProxy`.  Let the end users specify whatever U
Done, any value is accepted, credentials included


https://gerrit.cloudera.org/#/c/25247/2/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/2/tests/custom_cluster/test_shell_oauth_servers_auth.py@175
PS2, Line 175:     result = run_impala_shell_cmd(vector, args)
> Can all these tests be moved into the `TestImpalaShellOAuthServersAuth` cla
Done. I merged them in and removed the old class.


https://gerrit.cloudera.org/#/c/25247/2/tests/custom_cluster/test_shell_oauth_servers_auth.py@258
PS2, Line 258:     impalad_timeout_s=60,
> Please add a failure test that asserts the JWKS fails to download through a
Added test_jwks_url_through_https_proxy_with_untrusted_cert_fails.


https://gerrit.cloudera.org/#/c/25247/2/tests/util/proxy_servers.py
File tests/util/proxy_servers.py:

https://gerrit.cloudera.org/#/c/25247/2/tests/util/proxy_servers.py@18
PS2, Line 18: # Minimal in-process HTTP, HTTPS and SOCKS5 proxies for tests.
            : #
            : # Every proxy forwards all connections to a single fixed backend 
address, regardless of
            : # the destination requested by the client, and records the 
requested destinations. This
            : # lets tests use unresolvable host names in URLs to prove that 
requests went through the
            : # proxy.
            :
> Nit: this should be a comment instead of a multi-line string.
Done



--
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: 3
Gerrit-Owner: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Comment-Date: Wed, 04 Nov 2026 19:07:07 +0000
Gerrit-HasComments: Yes

Reply via email to