sweisdb opened a new pull request, #45394:
URL: https://github.com/apache/spark/pull/45394

   ### What changes were proposed in this pull request?
   The high level issue is that Apache Spark's RPC encryption is using 
unauthenticated CTR. We want to switch to GCM.
   
   The complication is Spark currently uses Apache Commons' CryptoInputStream 
and CryptoOutputStream, which do not support GCM. GCM also increases the 
ciphertext size by prepending an IV and adding an authentication tag.
   
   So far, this is requiring a larger rewrite to work with Spark's ByteBufs and 
FileRegions. This diff is currently a Work in Progress
   
   
   ### Why are the changes needed?
   
   AES CTR mode with no authentication is vulnerable to someone modifying 
ciphertexts. That would allow them to change RPC call contents.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Existing unit tests
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to