Cloud credentials are hardcoded in the build scripts of a CI/CD pipeline and stored in the repository. What is the BEST fix?
Show the answer
Correct answerD. Store credentials in a secrets manager and inject them into the pipeline at run time
AWhy not this: DAST tests the running application's behavior; it does not remove credentials from pipeline scripts.
BWhy not this: Local IDE settings spread secrets across workstations and make the pipeline unreproducible, not more secure.
CWhy not this: Encryption at rest does not hide the secrets from authorized users, clones or history, so exposure remains.
DWhy this is right: Secrets management removes credentials from code and injects them at run time, with access control and rotation.
A secrets manager keeps credentials out of code and scripts, supplies them to the pipeline only at run time, and allows rotation and access control. Encrypting the repository at rest does not protect the secrets from anyone with repository access or from copies in history.