mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
The browser error relay forwarded anything posted to it into the operator's GlitchTip without a session, limited only per address, so anyone could fill the incident list. Separately, a Prisma client error prints the failed call into its message and stack, with the arguments object (a reading's value, a note's text) when no source map is at hand, and the server sent that to GlitchTip and the logs after a credential scrub that does not look for it. The relay now needs a signed-in session and is limited per account; errors on pages before sign-in go unreported. The central redaction cuts a Prisma call's printed arguments, keeping the call, a reason line that names a field, and the stack frames, and the GlitchTip sender applies the redaction to every event at the egress boundary, whichever caller built it.