DanielLeens commented on PR #11559: URL: https://github.com/apache/seatunnel/pull/11559#issuecomment-7006919495
Thanks @SEZ9. On current head `e31e7ef7eaa7`, Java serialization is still used, but it is no longer an unrestricted ObjectInputStream: KafkaSourceReader.deserializeSplit (`:404-412`) constructs KafkaGateObjectInputStream. resolveClass (`:432-450`) accepts exact class names only and rejects every array descriptor except byte[]; resolveProxyClass (`:460-461`) rejects proxies. The allowlist test was made production-path based in `8909a67fce2`, and proxy/array hardening is in `5458405ede0`. KafkaSourceReaderGateTest covers a valid split round trip (`:135`), HashMap rejection (`:146`), same-package subclass rejection (`:170`), arrays (`:185`) and proxies (`:204`). This addresses the unrestricted-deserialization pattern in that specific question without relying solely on payload trust. I have not run those tests locally or cleared the other lifecycle/CI blockers from the previous full 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
