Secrets as Files or Variables
Why is a Secret mounted as a file often preferred over the same Secret as an environment variable?
Choose one answer
Only files can hold binary data such as certificates and keystores
Environment variables are visible to every other Pod on the same node
Variables leak easily (logs, child processes); files update on rotation
Files are encrypted inside the container, while variables are plain text