Anubhav Jindal has posted comments on this change. ( http://gerrit.cloudera.org:8080/25244 )
Change subject: IMPALA-12560: Docs for OAuth Authentication ...................................................................... Patch Set 2: (12 comments) http://gerrit.cloudera.org:8080/#/c/25244/2//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/25244/2//COMMIT_MSG@13 PS2, Line 13: Assisted-by: Claude Sonnt 5 (Copilot) nit: Sonnet spelling has a typo http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml File docs/topics/impala_oauth.xml: http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@79 PS2, Line 79: HiveServer2 HTTP endpint (<codeph>--hs2_http_port</codeph>) and the Impala typo in endpoint http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@94 PS2, Line 94: Looks through its list of configured identity providers for the first one whose keys nit: This is over the 90-character limit, please re-wrap. http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@112 PS2, Line 112: Once a token has been successfully verified, Impala returns a session cookie to This is only true for the HS2 HTTP endpoint. The web UI doesn't set a cookie after bearer-token auth (see the TODO: cookies are not added in Webserver::BeginRequestCallback), so every web UI request gets its token checked again. Can we say this applies to hs2-http only? http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@177 PS2, Line 177: Use the <codeph>--oauth_servers</codeph> startup flag to configure Impala with The older flags still work but are now deprecated in favor of --oauth_servers, and the doc doesn't mention them. That covers --jwt_token_auth, --jwks_url, --jwks_file_path and the other --jwks_* flags, plus the --oauth_jwks_* flags. A short note listing them would help people upgrading. http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@311 PS2, Line 311: <codeph>auth_iss</codeph> issuer, and a second, simpler provider whose JWKS is read nit: This is over the 90-character limit, please re-wrap. http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@315 PS2, Line 315: <codeblock>-oauth_servers='[ Nit: the rest of the doc uses --flag. Use --oauth_servers here too for consistency. http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@357 PS2, Line 357: looks like a oauth (it contains at least one <codeph>.</codeph> character), "looks like a oauth" should be "looks like a JWT" http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_oauth.xml@391 PS2, Line 391: These metrics only count the initial token verification for a connection. Same issue as above. For the web UI, impala.webserver.total-oauth-token-auth-success goes up on every request, because no cookie is issued. Maybe limit this paragraph to the hs2-http metrics. http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_shell_options.xml File docs/topics/impala_shell_options.xml: http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_shell_options.xml@588 PS2, Line 588: Use an OAuth access token to authenticate with Impala. Impala must be Worth adding that -a requires --protocol=hs2-http and can't be used with --strict_hs2_protocol. Otherwise the shell exits with an error. The same applies to -j (line 560, Use a JWT to authenticate with Impala. Impala must be configured to). http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_shell_options.xml@637 PS2, Line 637: Specifies a command to run to retrieve the OAuth client secret Could mention that if this isn't set, the shell prompts for the client secret interactively. It's also ignored if --oauth_cmd is given, because that option takes priority. http://gerrit.cloudera.org:8080/#/c/25244/2/docs/topics/impala_shell_options.xml@651 PS2, Line 651: URL of the OAuth authorization server used to request access and This is actually a host (with an optional port), not a URL. The shell passes it straight to HTTPSConnection() and always uses HTTPS, so a value like https://idp.example.com won't work. It also hardcodes the audience as https://<oauth_server>/api/v2/. Maybe say "hostname" and mention the audience. -- To view, visit http://gerrit.cloudera.org:8080/25244 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I6f1c2846b82d606ce8927772aae0e21bce295ab5 Gerrit-Change-Number: 25244 Gerrit-PatchSet: 2 Gerrit-Owner: Jason Fehr <[email protected]> Gerrit-Reviewer: Anubhav Jindal <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Sanjana Malhotra <[email protected]> Gerrit-Comment-Date: Thu, 29 Oct 2026 23:04:06 +0000 Gerrit-HasComments: Yes
