Debug Mode Configuration
Scoped debug activation, masking, and TTL policy.
Debug mode must be scoped by time and masking to control security and cost risk.
Important
Never enable always-on debug across production. Scope by service or tenant with a 30-minute TTL default.
debug:
enabled: true
scope:
service: gateway-payment
tenant: bank-a
ttl: 30m
maskFields:
- token
- accountNumber
- residentId
Enable debug mode
- Specify target service, tenant, and TTL.
- Include PII and credentials in maskFields.
- Record activation events in audit logs.
- Restore settings after TTL expiry or manual shutdown.