A developer stores secrets such as API keys and database passwords directly in application configuration files checked into source control. Which secure design practice should be enforced instead?
-
A
Encrypt the configuration files with AES-256
-
B
Use environment variables or a secrets management vault
-
C
Restrict repository access to senior developers only
-
D
Hash all secrets before storing them in config files