You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the default of http.error.excludeStackTraces to true so HTTP error responses use the existing redaction marker unless diagnostic stack traces are explicitly enabled.
The option already exists through #536 and PR #1461. This proposal changes its default, rather than adding another hiding mechanism. On main 0c481c0, the fallback in GlobalErrorWebExceptionHandler is false.
Expected behavior
Omitted property: use the existing REDACTED FOR SECURITY REASONS marker.
Keep status codes, messages, request IDs, and the response schema unchanged. This proposal only concerns the stackTrace field; it does not introduce a general error-message redaction policy.
Compatibility and validation
This is a behavior change for deployments that omit the option. Document the migration path: set http.error.excludeStackTraces: false to retain the previous diagnostic response behavior.
Tests with the real WebFlux error handler confirm the current default and exercise omitted, explicit-true, and explicit-false configurations. No additional vulnerability or CVE claim is made.
This issue proposes changing the default value of http.error.excludeStackTraces to true so that HTTP error responses automatically redact stack traces with a security marker unless diagnostics are explicitly enabled. This improves default security without altering status codes, messages, or other response schemas. Deployments relying on previous diagnostic behavior must explicitly set the option to false.
Activity
kapybro commentedon Oct 7, 2026
AI Summary
This issue proposes changing the default value of
http.error.excludeStackTracestotrueso that HTTP error responses automatically redact stack traces with a security marker unless diagnostics are explicitly enabled. This improves default security without altering status codes, messages, or other response schemas. Deployments relying on previous diagnostic behavior must explicitly set the option tofalse.[-]BE: Redact HTTP error stack traces by default[/-][+]Redact HTTP error stack traces by default[/+]Haarolean commentedon Oct 7, 2026
why?
kapybro commentedon Oct 14, 2026
Further user feedback is requested. Please reply within 7 days or we might close the issue.
kapybro commentedon Oct 21, 2026
No feedback received within 7 days. Auto closing.