Jason Fehr has posted comments on this change. ( 
https://gerrit.cloudera.org/25247 )

Change subject: IMPALA-14331: Support proxy for JWKS URL download
......................................................................


Patch Set 2:

(5 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_PINNEDPUBLICKEY.html option.


https://gerrit.cloudera.org/#/c/25247/2/be/src/kudu/util/curl_util.cc@300
PS2, Line 300:   } else if (!noproxy_.empty()) {
The CURLOPT_NOPROXY setting must always be set if `noproxy_` is not empty.  It 
does not matter if `proxy_` is set or not.


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 parsing 
library instead of writing a custom parser.  See 
https://github.com/apache/impala/commit/f6a5cf48a16e3054cf5a680a19fd6d219f060b6b
 for an example.


https://gerrit.cloudera.org/#/c/25247/2/be/src/util/oauth-server-config.cc@119
PS2, Line 119:     return Status("oauth_servers entry field 'jwksProxy' must 
not contain credentials");
Don't limit the value of `jwksProxy`.  Let the end users specify whatever URL 
they want.


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: class TestOAuthServersJwksProxy(CustomClusterTestSuite):
Can all these tests be moved into the `TestImpalaShellOAuthServersAuth` class 
and this class removed?  That would eliminate some duplicated code.



--
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: 2
Gerrit-Owner: Anubhav Jindal <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Comment-Date: Tue, 03 Nov 2026 23:18:09 +0000
Gerrit-HasComments: Yes

Reply via email to