How do you manage application configurations and secrets across different environments using YAML and secure environment variables?