Overview
Eligible deployed working-tree text files within configured paths and exclusions contain no configured secret-pattern matches. Git history is outside this basic deployment check. Runtime credential configuration app/etc/env.php is excluded; unreadable or oversized eligible files are collection errors.
Why it Matters
A deployed secret-pattern match can expose a credential through artifacts, backups or unintended file access. Reviewing the working tree helps catch secrets that ordinary code review missed.
Excluding env.php recognizes its runtime purpose rather than declaring it public-safe; file permissions, packaging and historical exposure remain separate concerns.
Verification Steps
Manual Verification
- Check configured text paths, exclusions, size limits and pattern set.
- Triage redacted matches and collection errors.
- Independently verify the treatment of env.php and history rather than interpreting their exclusion as an absence of secrets.
Command / Review Sample
# Deployment scan evidence:
paths/exclusions, readable files, pattern set, redacted findings
excluded runtime file: app/etc/env.php
history: outside this rule
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: Review each redacted deployed-file secret-pattern match and privately confirm whether it is a real credential. Revoke/rotate exposed secrets and move them to the approved deployment secret mechanism.
- Validate the change: Rescan readable deployed scope and investigate any public/Git exposure. Pattern absence does not prove env.php is protected or that historical copies are safe.
- Rerun MB-0730 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
An eligible deployed file matches a configured secret pattern.
Pass Example
Complete eligible working-tree collection has no configured matches; excluded runtime credentials and history remain separately reviewed.
Scope and Evidence Limits
Rule revision: 2. Target modes: LOCAL.
Eligible deployed working-tree text files within configured paths and exclusions contain no configured secret-pattern matches. Git history is outside this basic deployment check. Runtime credential configuration app/etc/env.php is excluded; unreadable or oversized eligible files are collection errors.
This check covers only the collected observation. Missing collection scope, external controls and runtime behavior require separate evidence.
Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.