Skip to content

Stop leaking internal error details to clients#24

Merged
andrew merged 1 commit into
mainfrom
fix-error-disclosure
Mar 13, 2026
Merged

Stop leaking internal error details to clients#24
andrew merged 1 commit into
mainfrom
fix-error-disclosure

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Mar 12, 2026

API endpoints and the health check were returning err.Error() directly in HTTP responses, which could expose database driver errors, file paths, and other internal details to callers.

Replaced with generic error messages. The errors are still logged server-side for debugging.

Replace err.Error() in HTTP error responses with generic messages.
Internal details like database driver errors and enrichment failures
were being sent directly to clients.
@andrew andrew merged commit 3ec353c into main Mar 13, 2026
5 checks passed
@andrew andrew deleted the fix-error-disclosure branch March 13, 2026 07:25
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