Github user mccheah commented on the issue:

    https://github.com/apache/spark/pull/23174
  
    > Why? And how are mounted files better?
    
    Environment variables leak far more easily than file contents. One can 
accidentally `printenv` in a shell attached to the and get the secret contents. 
`System.getenv` has a similar effect within the application code itself. For 
what it's worth I'm also not sure if the secret would be listed under the 
environment variables in the Spark UI (would have to test this).


---

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

Reply via email to