A legacy payroll application supports only username and password authentication to its database, and the password sits in plaintext in a config file in source control. What is the BEST way to remove the exposure?
Show the answer
Correct answerB. Store the password in a secrets vault and fetch it at runtime
AWhy not this: The app supports only passwords, so bearer tokens cannot be used without redesigning how it authenticates.
BWhy this is right: It keeps the password mechanism the app supports while removing it from source control and adding access control.
CWhy not this: Certificate login is not supported by the application, so a client certificate would not be accepted.
DWhy not this: Base64 is reversible encoding, not protection, so anyone with repository access can read the password.
The application can only use a password, so the fix is to move that password out of the code and into a secrets vault with access control and auditing, retrieved at runtime. Tokens and certificates are stronger mechanisms but the legacy application cannot use them.