Overview
No configured PCRE secret-pattern matches occur in eligible nonbinary working-tree files excluding expected runtime app/etc/env.php, or in the Git index and individual file lines across available local Git ref history (including env.php unless explicitly excluded). Configured paths, exclusions and collection limits apply. A runtime credential in its expected config path alone is not exposure; this check does not establish effective file access, HTTP exposure, credential validity or complete secret absence. Git metadata and PCRE support are required for a clean VCS conclusion.
Why it Matters
Secrets such as API keys, database credentials, JWT tokens, and private certificates must never be committed into version control (Git, SVN, etc.). Once stored in a public or shared repository, these secrets can be leaked permanently even if later removed, leading to account takeover, database breaches, and privilege escalation.
Ensuring that no secrets exist in version control protects sensitive data and enforces proper use of environment variables or secret management systems (e.g., Vault, AWS Secrets Manager).
Verification Steps
Manual Verification
- Review paths, exclusions, size limits and local refs.
- Triage matches using redacted evidence, then rotate confirmed exposed credentials.
- Verify Git/PCRE support and collection completeness before a clean conclusion.
Command / Review Sample
git rev-parse --is-inside-work-tree
git for-each-ref --format='%(refname)'
# Review secret-scanner matches with redacted output; do not paste credential values.
Use the assessed Magento project and the appropriate application or read-only review account. Replace example hosts, paths and identifiers with the assessment scope; configuration and source fragments are illustrative.
Remediation / Fix Guidance
- Investigate and change: Treat each reported VCS secret match as a candidate and verify it without copying its value into a ticket. Revoke/rotate confirmed credentials at their issuer, update protected deployment secrets and investigate repository exposure.
- Validate the change: Remove the secret from active files and coordinate any approved history rewrite with repository owners; deleting a commit or string does not revoke an exposed credential.
- Rerun MB-0072 against the same release, profile and relevant file/key/package scope; compare the new evidence and inspect any independent collection gaps.
Examples
Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.
Fail Example
A configured pattern matches a live secret in a current or collected historical file line.
Pass Example
No configured patterns match the complete eligible collected scope; excluded/unavailable history is outside the result.
Scope and Evidence Limits
Rule revision: 5. Target modes: LOCAL.
No configured PCRE secret-pattern matches occur in eligible nonbinary working-tree files excluding expected runtime app/etc/env.php, or in the Git index and individual file lines across available local Git ref history (including env.php unless explicitly excluded). Configured paths, exclusions and collection limits apply. A runtime credential in its expected config path alone is not exposure; this check does not establish effective file access, HTTP exposure, credential validity or complete secret absence. Git metadata and PCRE support are required for a clean VCS conclusion.
Expected app/etc/env.php is outside working-tree matching only. Staged and historical copies remain in VCS scope. Pattern matches need private confirmation; separate permission and HTTP checks establish access observations.
Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.