It's generally accepted that mounting as files is more secure that by environment variable.
For more information, see this SO post with some good discussion and references; https://stackoverflow.com/questions/51365355/kubernetes-secrets-volumes-vs-environment-variables