SEZ9 commented on issue #13377:
URL: https://github.com/apache/seatunnel/issues/13377#issuecomment-7146116077

   @chovy-3012 thanks for dropping the pure-Java cipher and holding the 
implementation PR until both gates are agreed.
   
   **Provider / packaging**
   
   The BouncyCastle lightweight-API route (`SM4Engine` + `CBCBlockCipher` + 
`PKCS7Padding`, no `Security.addProvider()`), shaded and relocated into the 
`seatunnel-transforms-v2` jar, answers most of the first gate. A few details 
are still open:
   
   1. **Version:** you validated 1.80, 1.85 and 1.87. Please name the single 
`bcprov-jdk18on` version you propose to pin.
   2. **License impact:** you gave the license name and the ~7.3 MB size. 
Please also state what license/notice changes bundling the relocated classes 
into the shaded jar requires for the distribution.
   3. **Packaged runtime:** please confirm that the job-level cases in 
`TestSQLIT` / `TestCalciteIT` exercise the shaded, relocated jar as shipped in 
`lib/`, and not an unshaded test classpath. The known-answer vector you 
reproduced locally should be one of those cases.
   
   **Wire contract**
   
   Your comment is cut off right after the quoted request, so your decision for 
the second gate isn't visible. Could you repost that part? It needs to cover:
   
   1. **The choice:** either a documented Base64 `STRING` envelope in the 
existing AES-function style, or a true `BINARY` result.
   2. **The envelope:** its exact byte layout.
   3. **If `BINARY`:** the feasibility proof for both the Zeta dispatcher/type 
path and the `CalciteUdf` SPI/`byte[]` bridge, plus engine-level binary-type 
assertions in the test plan. Parity should not be inferred from Zeta alone.
   4. **Secrets:** how keys and derived key material are kept out of logs, 
exceptions and persisted diagnostics.
   
   Once those are posted, the provider and engine contract can be agreed and a 
focused implementation proposal reviewed.
   
   <!-- streview-comment:2588 -->


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