InformationKubernetes supports mounting secrets as data volumes or as environment variables. Minimize the use of environment variable secrets.
It is reasonably common for application code to log out its environment (particularly in the event of an error). This will include any secret values passed in as environment variables, so secrets can easily be exposed to any user or entity who has access to the logs.
Application code which expects to read secrets in the form of environment variables would need modification
SolutionIf possible, rewrite application code to read secrets from mounted secret files, rather than from environment variables.
By default, secrets are not defined