fix(trpc): hide query text and params in error responses #169

Sammanfogat
supernaut sammanfogade 2 incheckningar från fix/trpc-error-leak in i main 2026-10-13 08:20:07 +00:00
Ägare

What

Internal tRPC errors now return the message internal error. No error response carries data.stack. data.reason still reaches the caller for ReasonError.

Why

A failed query put its SQL text and params in the response, for example the billing name and email on checkout. The server log already records only the code and root cause.

Test

A DB failure through subscriptionStatus returns a body with no SQL and no param. The log still has the root cause.

Closes #116

## What Internal tRPC errors now return the message `internal error`. No error response carries `data.stack`. `data.reason` still reaches the caller for `ReasonError`. ## Why A failed query put its SQL text and params in the response, for example the billing name and email on checkout. The server log already records only the code and root cause. ## Test A DB failure through `subscriptionStatus` returns a body with no SQL and no param. The log still has the root cause. Closes #116
supernaut lade till 2 incheckningar 2026-10-13 06:37:58 +00:00
Internal errors now return a fixed message and no stack. Reason codes still reach the caller. The server log keeps the root cause.
fix(trpc): drop stack from every error response
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m3s
49eb18e061
supernaut sammanfogade incheckning ce2ee637a2 till main 2026-10-13 08:20:07 +00:00
supernaut tog bort grenen fix/trpc-error-leak 2026-10-13 08:20:08 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-payment!169
Ingen beskrivning angiven.