Octavi00 opened a new pull request, #14934:
URL: https://github.com/apache/gravitino/pull/14934
Subtask] M4: Convenience helpers, protocol/cipher, and system-truststore mTLS
#14900
### What changes were proposed in this pull request?
Added withTrustStore() for configuring a custom truststore.
Added withKeyStore() for client certificate authentication using the default
JVM truststore.
Added withMutualTls() for mutual TLS authentication using a custom
truststore and client keystore.
Added protocols() and cipherSuites() builder methods to restrict supported
TLS protocols and cipher suites.
Added input validation and descriptive error messages for invalid TLS
configurations.
Extended TLS integration tests to cover the convenience helpers, certificate
validation, and protocol/cipher-suite restrictions.
### Why are the changes needed?
These changes simplify the common TLS CUJs by allowing users to configure
TLS without directly interacting with JSSE types such as SSLContext or KeyStore.
They also provide additional flexibility by supporting protocol and
cipher-suite restrictions, as well as mutual TLS authentication using the
default JVM truststore.
### Does this PR introduce _any_ user-facing change?
Yes:
TLSConfigurers.withTrustStore()
TLSConfigurers.withKeyStore()
TLSConfigurers.withMutualTls()
TLSConfigurers.builder().protocols()
TLSConfigurers.builder().cipherSuites()
As will be described in the documentation
### How was this patch tested?
./gradlew :clients:client-java:test --tests
"org.apache.gravitino.client.TestHTTPClientTLS"
Passed
./gradlew rat
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]