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

(6 comments)

https://gerrit.cloudera.org/#/c/25247/5//COMMIT_MSG
Commit Message:

https://gerrit.cloudera.org/#/c/25247/5//COMMIT_MSG@22
PS5, Line 22: a proxy taken from the https_proxy environment variable. When 
jwksProxy is set, the JWKS
Nit: wrap lines at 70 characters.


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

https://gerrit.cloudera.org/#/c/25247/5/be/src/kudu/util/curl_util.h@156
PS5, Line 156: including one taken from the 'https_proxy' environment variable.
Nit: consider removing this statement as it causes confusion.  Instead, 
document above the set_proxy() function that the "http_proxy" and "https_proxy" 
environment variables are automatically read by EasyCurl.


https://gerrit.cloudera.org/#/c/25247/5/be/src/kudu/util/curl_util.h@164
PS5, Line 164: It also applies to a proxy taken from the
             :   // 'https_proxy' environment variable
Nit: consider removing this statement as it causes confusion.  Instead, 
document above the set_proxy() function that the "http_proxy" and "https_proxy" 
environment variables are automatically read by EasyCurl.


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

https://gerrit.cloudera.org/#/c/25247/5/be/src/kudu/util/curl_util.cc@283
PS5, Line 283:   // The proxy TLS options also apply to a proxy taken from the 
'https_proxy'
             :   // environment variable.
             :   if (verify_peer_) {
             :     CURL_RETURN_NOT_OK(curl_easy_setopt(curl_, 
CURLOPT_PROXY_SSL_VERIFYHOST, 2));
             :     CURL_RETURN_NOT_OK(curl_easy_setopt(curl_, 
CURLOPT_PROXY_SSL_VERIFYPEER, 1));
             :     if (!FLAGS_trusted_certificate_file.empty()) {
             :       CURL_RETURN_NOT_OK(curl_easy_setopt(curl_, 
CURLOPT_PROXY_CAINFO,
             :             FLAGS_trusted_certificate_file.c_str()));
             :     }
             :   } else {
             :     CURL_RETURN_NOT_OK(curl_easy_setopt(curl_, 
CURLOPT_PROXY_SSL_VERIFYHOST, 0));
             :     CURL_RETURN_NOT_OK(curl_easy_setopt(curl_, 
CURLOPT_PROXY_SSL_VERIFYPEER, 0));
             :   }
Let's move this code up into the existing `if (verify_peer_) {` block that 
starts on line 201.


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

https://gerrit.cloudera.org/#/c/25247/5/be/src/util/jwt-util.cc@837
PS5, Line 837:                      Substitute(" via proxy '$0'", 
options.proxy));
Please add a note to IMPALA-15692 that auth creds will need to be redacted here.


https://gerrit.cloudera.org/#/c/25247/5/be/src/util/oauth-servers-manager.cc
File be/src/util/oauth-servers-manager.cc:

https://gerrit.cloudera.org/#/c/25247/5/be/src/util/oauth-servers-manager.cc@58
PS5, Line 58:       options.ca_certificate = config.ca_cert_file_path;
            :       options.pull_timeout_secs = config.jwks_pull_timeout_secs;
            :       options.update_frequency_secs = 
config.jwks_update_frequency_secs;
            :       options.proxy = config.jwks_proxy;
            :       options.proxy_ca_certificate = 
config.jwks_proxy_ca_certificate;
            :       options.proxy_pinned_public_key = 
config.jwks_proxy_pinned_public_key;
For all the strings, use std::move, for example:
options.ca_certificate = std::move(config.ca_cert_file_path);



--
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: Wed, 18 Nov 2026 23:24:00 +0000
Gerrit-HasComments: Yes

Reply via email to