Debug Surface Disabled in Shared Environments
Turn off debug, introspection and verbose error paths in any environment more than one person can reach, and verify by request rather than by configuration reading
Use when: a debug or introspection route is reachable or verbose errors are enabled outside a local environment
Avoid when: every debug surface is disabled in shared environments and a request confirms it
Procedure
- List every debug, introspection, metrics-detail and verbose-error surface found during probing.
- Disable each in shared environments, or place it behind authentication if it must remain available.
- Prefer removing the route over flagging it, since a flag can be flipped back by a later deploy.
- Verify by issuing the same requests that found the exposure and confirming rejection or absence.
- Confirm the environment delta now records the setting as disabled in every shared environment.
- Re-run the debug-endpoint probe and record the result beside the change.
Signals
- A debug route is gated by a flag that a later deploy could re-enable
- The fix is a configuration change with no verification request recorded
- One shared environment still answers a debug path after others were closed
- The environment delta still lists the debug setting as enabled
Patterns
1. Closure record
surface | action | verification request | result
/debug/routes | removed | GET -> 404 | confirmed absent
verbose errors | flag off | trigger -> uniform body | confirmed
2. Remove-over-flag
removal survives a deploy; a flag flipped by a later change does not, so prefer deletion where the route has no legitimate use
3. Delta update
the environment delta row is updated in the same change, so the record and the reality stay aligned
Pitfalls
- Closing a debug route in one environment while another shared environment keeps it
- Recording a configuration edit as the fix without a request proving the surface is gone
- Leaving the setting enabled in the delta, which makes the next assessment repeat the work
Done when
- Each debug surface has an action and a verification request with a recorded result
- The environment delta reflects the disabled state in every shared environment