fix(#218)#245
Open
anshul23102 wants to merge 1 commit into
Open
Conversation
…onse Closes Coder-s-OG-s#218 The webhook INSERT failure path returned the raw PostgrestError object directly to the caller, exposing code, message, details, and hint fields. These fields can reveal internal table names, column names, and database constraint identifiers to any caller that can reach the endpoint. Replaced the error serialisation with a server-side console.error that logs all four fields for ops visibility, and a generic client-facing { error: 'internal server error' } response with no schema details.
Contributor
|
@anshul23102 is attempting to deploy a commit to the codersogs-3057's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey @anshul23102 You have 4 open PRs right now. The limit is 3 at a time. Please get your existing PRs merged or closed before opening new ones:
This PR will remain open but won't be reviewed until you're under the limit. See our Contributing Guidelines for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Returns a generic HTTP 500 response when a webhook INSERT fails instead of forwarding the raw Supabase error object to the caller.
Related Issue
Closes #218
Type of Change
Root Cause
The webhook INSERT failure path returned the raw `PostgrestError` object (including `code`, `details`, and `hint` fields) directly in the HTTP 500 response body. Internal Postgres constraint names, table schema hints, and error codes were visible to any caller that could trigger a failed insertion.
What Changed
Testing
Checklist