fix(security): audit run-4 fixes and run-3 leftovers (#26)

Corrects passthrough metering, the cost gate, credential redaction, reload drain, response headers and the discovery cap.
This commit is contained in:
2026-11-29 10:50:36 +00:00
committed by GitHub
parent 009de03264
commit f1b198bce4
48 changed files with 3598 additions and 211 deletions
+3 -1
View File
@@ -289,10 +289,12 @@ func (wb *watchdogBody) fire() {
return
}
atomic.StoreInt32(&wb.timedOut, 1)
wb.cancel()
// Record before cancelling: cancel unblocks a parked Read, and its
// caller must find the failure already recorded.
if wb.onTimeout != nil {
wb.onTimeout(nil, wb.timeoutError())
}
wb.cancel()
}
// timeoutError builds the error Read returns once timedOut is set, and