Skip to content

Error responses expose internal error context to clients #437

Description

@aram356

Summary

user_message() returns the Display representation of TrustedServerError, which includes internal error context like "Configuration error: ...", "Proxy error: ...". These are returned directly to clients in the response body.

Refs

  • crates/fastly/src/error.rs lines 17-18

Recommendation

Return generic error messages to clients; keep detailed context in server logs only.

Context

Production readiness audit — see #396

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions