Skip to content

fix(server): sanitize API error responses#29

Merged
lostmygithubaccount merged 1 commit into
mainfrom
cody/sanitize-api-errors
Apr 6, 2026
Merged

fix(server): sanitize API error responses#29
lostmygithubaccount merged 1 commit into
mainfrom
cody/sanitize-api-errors

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

Summary

  • Internal errors (DataFusion, Turso, Arrow, IO, Config) now return generic "internal server error" to clients instead of leaking implementation details (file paths, engine internals, table lookup info)
  • User-facing errors (validation, schema, read/write path misuse) remain descriptive so callers can fix their requests
  • Full error details continue to be logged server-side via tracing::warn

Generated with Claude Code

Internal errors (DataFusion, Turso, Arrow, IO, Config) now return a
generic "internal server error" message to clients instead of exposing
implementation details like file paths and engine internals. User-facing
errors (validation, schema, read/write path) remain descriptive. Full
error details are still logged server-side via tracing::warn.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount enabled auto-merge (squash) April 6, 2026 03:39
@lostmygithubaccount lostmygithubaccount merged commit 3a8cb39 into main Apr 6, 2026
1 check passed
@lostmygithubaccount lostmygithubaccount deleted the cody/sanitize-api-errors branch April 6, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant