← Back to Baseline

MB-0729

Automated Declared project debug settings are disabled

MB-C05 Production Mode & Deployment Hygiene High

Inspected default-scope project Magento debug/inline-translation declarations and project PHP ini display_errors/display_startup_errors and Xdebug declarations must not enable debug output. Absent declarations are not enabled declarations in this scope; web-worker runtime, custom integrations and all-component ASVS conformance are outside this predicate.

Overview

Inspected default-scope project Magento debug/inline-translation declarations and project PHP ini display_errors/display_startup_errors and Xdebug declarations must not enable debug output. Absent declarations are not enabled declarations in this scope; web-worker runtime, custom integrations and all-component ASVS conformance are outside this predicate.

Why it Matters

Explicit debug declarations can accidentally reach a release through copied project configuration. Reviewing them catches a concrete source of diagnostic output before relying on runtime assumptions.

The absence of a declaration does not establish every worker's effective setting, so this narrow review should stay distinct from worker inspection.

Verification Steps

Manual Verification

  1. Inspect default-scope project debug/inline-translation settings and project PHP ini declarations for display_errors, display_startup_errors and Xdebug.
  2. Distinguish absent settings from explicit enablement.
  3. Review runtime worker state under its own criterion.

Command / Review Sample

php bin/magento config:show dev/debug/template_hints_storefront
php bin/magento config:show dev/debug/template_hints_admin
# Inspect project ini/debug declarations without dumping secrets.

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

  1. Investigate and change: Disable the reported project/default-scope debug, template hint or error-display setting through the managed deployment configuration. Inspect the real PHP-FPM/web worker and store overrides separately.
  2. Validate the change: Reload/redeploy through the approved process and verify successful pages do not disclose debug output; CLI ini settings alone are not web-worker proof.
  3. Recheck MB-0729: Read back the effective setting or role/runtime state from the same source used by the check, then test the affected authentication, application or integration flow in staging. A changed file alone does not establish that the production worker uses it.

Examples

Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.

Fail Example

A collected project ini explicitly enables display_errors or a named Magento debug flag is enabled.

Pass Example

No assessed declaration explicitly enables debug output; absence alone does not establish runtime worker state.

Scope and Evidence Limits

Rule revision: 1. Target modes: LOCAL.

Inspected default-scope project Magento debug/inline-translation declarations and project PHP ini display_errors/display_startup_errors and Xdebug declarations must not enable debug output. Absent declarations are not enabled declarations in this scope; web-worker runtime, custom integrations and all-component ASVS conformance are outside this predicate.

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.

References