lasdf1234 opened a new issue, #14900:
URL: https://github.com/apache/gravitino/issues/14900

   ### Describe the subtask
   
   Replaces the former M4 (#12302) and M5 (#12303) with a single subtask.
   After M3, every journey is possible through the builder; this makes the 
common
   ones short via helpers, and closes the two helper gaps M3 left open.
   
   A user configuring the standard cases — trust an internal CA, present a 
client
   certificate, enforce TLS 1.3 / cipher suites, or present a client certificate
   while using the system truststore — should not need to hand-implement
   `TLSConfigurer` or touch `SSLContext` / `KeyStore` directly.
   
   ## Deliverable
   
   - **Common-path helpers** on the configurer factory so the typical call site
     shrinks to one line per concern (a truststore, mutual TLS) with sensible
     defaults. Example shape (exact names in the PR):
   
     ```java
     TLSConfigurers.withTrustStore(truststore, password);
     TLSConfigurers.withMutualTls(truststore, trustPassword, keystore, 
keyPassword);
     ```
   
   - **Protocol and cipher-suite configuration through the helper**, not only 
via
     the interface.
   
   - **Keystore-only / system-truststore mTLS** — client certificate with the
     platform default trust (no explicit truststore).
   
   Discipline: every helper must map to a journey in the design doc. No 
speculative
   helpers without a CUJ.
   
   ## Acceptance criteria
   
   - [ ] Private-CA and mutual-TLS journeys expressible without touching JSSE 
types
   - [ ] Every helper corresponds to a CUJ in the design doc
   - [ ] TLS 1.3 (or a cipher list) enforceable through the helper alone
   - [ ] Test proves protocol/cipher constraints bind (out-of-policy handshake 
fails)
   - [ ] Client-cert-with-default-trust expressible and tested
   - [ ] Docs updated to the helper form (including completeness journeys)
   - [ ] Tests for each helper, including failure messages on bad input
   
   Depends on: M3 (#12301).
   
   Supersedes: #12302, #12303.
   
   ### Parent issue
   
   #9836


-- 
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]

Reply via email to