You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Octavi00 (via GitHub)" <gi...@apache.org> on 2026/08/13 05:00:19 UTC

[PR] [#12300] feat(client:client-java): TLS support at the HTTPClient layer- #12300 [gravitino]

Octavi00 opened a new pull request, #12449:
URL: https://github.com/apache/gravitino/pull/12449

   [Subtask] M2: TLS support at the HTTPClient layer #12300
   
   ### What changes were proposed in this pull request?
   - Added TLSConfigurer: Default TLS interface. One note to the reviewer: the hostname verifier still uses an import org.apache.hc.client5.http.ssl.HttpsSupport to provide a default hostname verifier. SSLContext follows the requested "no types from implementation-scoped dependencies in its public signatures or default
   method bodies". I want to clarify if an hc5 import would meet or fail this request.
   - Added TLSConfigurers: contains all builder methods for easier ux. 
   -Modified HTTPClient: Added optional TLS configuration
   - Added TestHTTPClientTLS.java: covers 6 requested test + 2 extra early fail tests that further prove requested functionality
   - Modified TestHttpsServerAuthentication to avoid redundant code in TestHTTPClientTLS by shifting a few functions into TestTlsServerUtils 
   - Modified clients/client-java/build.gradle.kts: added test implementation to include testArtifacts published in M1
   
   
   Fix: #12300
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, addition of TLSConfigurer + TLSConfigurer as described in M0.
   
   ### How was this patch tested?
   Ran:
   ./gradlew rat
   Passed
   ./gradlew :server-common:test --tests "org.apache.gravitino.server.web.TestHttpsServerAuthentication"
   Passed
   ./gradlew :clients:client-java:test --tests "org.apache.gravitino.client.TestHTTPClientTLS"
   Passed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12300] feat(client:client-java): TLS support at the HTTPClient layer- #12300 [gravitino]

Posted by "nevzheng (via GitHub)" <gi...@apache.org>.
nevzheng commented on PR #12449:
URL: https://github.com/apache/gravitino/pull/12449#issuecomment-5288091915

   note (non-blocking): @Octavi00 you asked whether the HC5 `HttpsSupport` import on the default `hostnameVerifier()` meets or fails the “no implementation types in default method bodies” rule.
   
   I’m not going to prioritize that in this PR. Non-blocking. We can revisit if we ever need `TLSConfigurer` to be independent of HttpClient 5.
   
   Nevin
   Sent from my 🤖 (Cursor)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12300] feat(client:client-java): TLS support at the HTTPClient layer- #12300 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on PR #12449:
URL: https://github.com/apache/gravitino/pull/12449#issuecomment-5288548703

   Thanks @Octavi00 for contribution! Thanks @nevzheng for review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12300] feat(client:client-java): TLS support at the HTTPClient layer- #12300 [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12449:
URL: https://github.com/apache/gravitino/pull/12449#issuecomment-5278955785

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|68.67% **`+0.04%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|83.12%|:green_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|49.31%|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |aws|42.04%|:green_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|9.92%|:red_circle:|
   |catalog-fileset|79.77%|:green_circle:|
   |catalog-glue|68.95%|:green_circle:|
   |catalog-hive|79.4%|:green_circle:|
   |catalog-jdbc-common|45.7%|:green_circle:|
   |catalog-jdbc-doris|81.8%|:green_circle:|
   |catalog-jdbc-mysql|79.33%|:green_circle:|
   |catalog-jdbc-postgresql|83.39%|:green_circle:|
   |catalog-jdbc-starrocks|79.16%|:green_circle:|
   |catalog-kafka|77.01%|:green_circle:|
   |catalog-lakehouse-generic|59.18%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.86%|:green_circle:|
   |catalog-lakehouse-paimon|84.23%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.48%|:green_circle:|
   |client-java|78.56% **`+0.31%`**|:green_circle:|
   |common|52.75%|:green_circle:|
   |core|83.63%|:green_circle:|
   |filesystem-hadoop3|77.28%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|48.68%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-auth|68.0%|:green_circle:|
   |hadoop-common|12.7%|:red_circle:|
   |hive-metastore-common|53.4%|:green_circle:|
   |iceberg-aliyun-bundle|0.0%|:red_circle:|
   |iceberg-common|64.75%|:green_circle:|
   |iceberg-rest-server|75.03%|:green_circle:|
   |idp-basic|86.02%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|31.75%|:red_circle:|
   |lance-rest-server|63.47%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.17%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|87.25%|:green_circle:|
   |server-common|79.41%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|45.89%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|40.29%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |client-java|[TLSConfigurers.java](https://github.com/Vonna9/gravitino/blob/0f0cee807dbb8f85ee94177960ea5b4ff9ef4ee4/clients/client-java/src/main/java/org/apache/gravitino/client/TLSConfigurers.java)|89.74%|:green_circle:|
   ||[HTTPClient.java](https://github.com/Vonna9/gravitino/blob/0f0cee807dbb8f85ee94177960ea5b4ff9ef4ee4/clients/client-java/src/main/java/org/apache/gravitino/client/HTTPClient.java)|82.81%|:green_circle:|
   ||[TLSConfigurer.java](https://github.com/Vonna9/gravitino/blob/0f0cee807dbb8f85ee94177960ea5b4ff9ef4ee4/clients/client-java/src/main/java/org/apache/gravitino/client/TLSConfigurer.java)|50.0%|:red_circle:|
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#12300] feat(client:client-java): TLS support at the HTTPClient layer- #12300 [gravitino]

Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi merged PR #12449:
URL: https://github.com/apache/gravitino/pull/12449


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org