fix: critical bugs and security hardening #19
Reference in New Issue
Block a user
Delete Branch "fix/critical-bugs-security-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
panic()ingenerateToken()with proper error return. Check alljson.Unmarshalerrors instead of silently ignoring them. AddClose()to Store interface.context.ContexttoProvider.Send()so HTTP alerts respect timeout/cancellation. Log alert delivery failures instead of swallowing errors.crypto/subtle.ConstantTimeComparefor cluster secret checks (7 endpoints). Addhttp.MaxBytesReader(1MB) to all POST handlers.log.Fatalfin goroutines withlog.Printf.Test plan
go build ./...passesgo test ./...passesgo test -race ./...clean