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

(8 comments)

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

https://gerrit.cloudera.org/#/c/25247/3/be/src/util/jwt-util.cc@751
PS3, Line 751:     } else if (!jwks_doc.HasMember("keys")) {
> Opus finding:  Need the ability to set the https://curl.se/libcurl/c/CURLOP
Done, with one tweak. I added jwksProxyCaCertFilePath with exactly that 
behavior: if it's missing it falls back to caCertFilePath, and if it's blank 
nothing is set. I used CURLOPT_PROXY_CAINFO instead of CAPATH, though, because 
CAPATH expects a directory of hashed certs and caCertFilePath is a single PEM 
file.


https://gerrit.cloudera.org/#/c/25247/3/be/src/util/jwt-util.cc@758
PS3, Line 758:   }
> Opus found this call could still include the jwks_url (which would include
Fixed by not allowing credentials in jwksProxy at all, so there's nothing left 
for curl's error text to leak. I removed the redaction code.


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

https://gerrit.cloudera.org/#/c/25247/3/be/src/util/oauth-server-config.cc@52
PS3, Line 52:
> Opus reported the possibility of exposing the proxy username/password.
I took option 2 partway: jwksProxy now rejects any username or password, 
checked with libcurl's URL parser, so nothing sensitive ends up in the log or 
on /varz. I'd like to add the separate password field (jwksProxyPasswordCmd 
with CURLOPT_PROXYPASSWORD) under IMPALA-15692, which already tracks proxy 
auth, to keep this change focused.


https://gerrit.cloudera.org/#/c/25247/3/be/src/util/oauth-server-config.cc@101
PS3, Line 101:
> Opus finding: ValidateJwksProxy only checks that jwksProxy is non-empty, so
Done


https://gerrit.cloudera.org/#/c/25247/3/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/3/tests/custom_cluster/test_shell_oauth_servers_auth.py@36
PS3, Line 36: LOG = logging.getLogger(__name__)
            :
            : # Ports of the JWKS servers and proxies started by 
TestImpalaShellOAuthServersAuth. They
            : # are picked when the module is loaded because the impalad 
arguments depend on them.
            : JWKS_HTTP_PORT = get_unused_port()
            : JWKS_HTTPS_PORT = get_unused_port()
            : HTTP_PROXY_PORT = g
> If any of these ports are in-use, the tests will fail.  Implement logic to
Done


https://gerrit.cloudera.org/#/c/25247/3/tests/custom_cluster/test_shell_oauth_servers_auth.py@104
PS3, Line 104:       '-oauth_jwks_file_path={0} 
-oauth_jwt_custom_claim_username=sub'
> Opus finding: if any of these servers fails to start, all previously starte
Done


https://gerrit.cloudera.org/#/c/25247/3/tests/custom_cluster/test_shell_oauth_servers_auth.py@122
PS3, Line 122:       cls.http_proxy = 
cls._start_proxy(HttpProxy(HTTP_PROXY_PORT, http_backend))
> An exception stopping a server will leave the rest of the servers running.
Done


https://gerrit.cloudera.org/#/c/25247/3/tests/custom_cluster/test_shell_oauth_servers_auth.py@209
PS3, Line 209:     result = run_impala_shell_cmd(vector, args)
> Opus suggestion for test to add:
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: 4
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: Mon, 16 Nov 2026 08:45:01 +0000
Gerrit-HasComments: Yes

Reply via email to