Commit 0b147a7
committed
fix: sanitize auth error causes before sending to WebSocket clients
Previously, internal ServerAuthPairingLinksListError and
ServerAuthSessionsListError objects were passed directly as the cause
field in AuthAccessStreamError, which gets serialized via Schema.Defect()
to WebSocket clients. This leaked internal error chains, stack traces,
and backend details.
Now we wrap the cause in a plain Error with only the message string,
preventing internal details from reaching the client while preserving
the human-readable error description.1 parent d430f59 commit 0b147a7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
0 commit comments