QuestionQ60

VerifiedSecurity Operations

During a security review for the CI/CD process, a security engineer discovers the following information in a testing repository from the company:

Question Image

Which of the following options is the best countermeasure to prevent this issue in the future?

Explanation

The exposed snippet is a wp-config.php file with a database password hardcoded in plaintext; adopting a secrets management platform removes credentials from source code entirely and injects them securely at runtime, preventing this class of exposure in CI/CD repositories going forward. Penetration testing, changing repository technology, and automating uploads do not eliminate the underlying practice of embedding secrets in code.

Community Discussion

No comments yet. Be the first to start the discussion!