Development configurations such as sandbox API keys, test SMTP servers, or verbose logging must not remain in production. They often bypass security controls and can leak sensitive data. Audit environment configs to ensure only production values are applied on live systems.
Magento has developer-oriented settings (template hints, symlink templates, profiler, verbose logging). These are useful for debugging, but if enabled on production they expose sensitive paths, slow down performance, and may leak information about the internal application structure.
Ensuring that no developer configs are active in production keeps the site fast, reduces attack surface, and prevents unintentional information disclosure.
Stores → Configuration → Advanced → Developer
- Template Path Hints: Off
- Allow Symlinks: No
- Profiler: Disabled
# Inspect env.php or config.php for dev settings
grep -Ri profiler app/etc/
grep -Ri template_hints app/etc/
grep -Ri dev app/etc/
env.php or custom modules.# app/etc/config.php
'dev' => [
'debug' => [
'template_hints' => 1,
],
'profiler' => [
'enabled' => true,
],
]
# app/etc/config.php
'dev' => [
'debug' => [
'template_hints' => 0,
],
'profiler' => [
'enabled' => false,
],
]