sweb commented on code in PR #58010: URL: https://github.com/apache/spark/pull/58010#discussion_r4316472336
########## docs/security.md: ########## @@ -183,6 +183,30 @@ Unlike the other SSL settings for the UI, the RPC SSL is *not* automatically ena `spark.ssl.enabled` is set. It must be explicitly enabled, to ensure a safe migration path for users upgrading Spark versions. +On Kubernetes, RPC SSL passwords set in the Spark configuration are propagated to executor pods +using environment variables, like the authentication secret described under +[Kubernetes](#kubernetes) above, so any user who can list pods in the namespace can read them. In +cluster mode they are also stored in plaintext in the driver's ConfigMap. To avoid both, store the +passwords in a Kubernetes Secret and bind the following variables on the driver and the executors +using `spark.kubernetes.driver.secretKeyRef.<name>` and Review Comment: yet another thing I was not aware of - thank you very much for pointing this out. I attempted to address it here: https://github.com/apache/spark/pull/58010/commits/9b7c554e42c3c5efb7cc8ebe0e1ee9240a6fda76 I added a follow up issue for scoping the env fallback: https://issues.apache.org/jira/browse/SPARK-60345 -- 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]
