SEZ9 commented on PR #11559:
URL: https://github.com/apache/seatunnel/pull/11559#issuecomment-7050741941

   Thanks for the follow-up on the deserialization finding (PR11559-F1, the 
unsafe Java deserialization pattern in `KafkaSourceReader`).
   
   On head `e31e7ef7eaa7`, Java serialization is still used, but the stream is 
no longer an unrestricted `ObjectInputStream`:
   
   - `KafkaSourceReader.deserializeSplit` now constructs 
`KafkaGateObjectInputStream`.
   - `resolveClass` accepts exact class names only and rejects every array 
descriptor except `byte[]`.
   - `resolveProxyClass` rejects proxies.
   - The allowlist test was made production-path based in `8909a67fce2`, and 
the proxy/array hardening is in `5458405ede0`.
   - `KafkaSourceReaderGateTest` covers a valid split round trip, `HashMap` 
rejection, same-package subclass rejection, arrays and proxies.
   
   That addresses the unrestricted-deserialization pattern from the finding 
without relying solely on payload trust.
   
   One ask remains before this point can be closed: those tests have not been 
run locally on the review side. Could you share a passing run of 
`KafkaSourceReaderGateTest` on `e31e7ef7eaa7`?
   
   This reply covers only the deserialization finding.
   
   <!-- streview-comment:2483 -->


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