fix(trpc): hide query text and params in error responses #169
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment!169
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/trpc-error-leak"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
Internal tRPC errors now return the message
internal error. No error response carriesdata.stack.data.reasonstill reaches the caller forReasonError.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
subscriptionStatusreturns a body with no SQL and no param. The log still has the root cause.Closes #116