cliffchen12 opened a new pull request, #48457: URL: https://github.com/apache/spark/pull/48457
### What changes were proposed in this pull request? The pr is add AVA_OPTION_PURE_MODE configuration item. When the configuration item is set to true, JavaOptions cannot be configured. ### Why are the changes needed? Adding JAVA_OPTION_PURE_MODE can completely prevent command injection caused by Java parameters in Yarn mode. This is more secure when JVM parameters do not need to be customized. ### Does this PR introduce _any_ user-facing change? Yes. If JAVA_OPTION_PURE_MODE is set to true, JavaOptions cannot be set. ### How was this patch tested? Added a new UT. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
