• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alexferl / zerohttp / 22877421491
94%

Build:
DEFAULT BRANCH: master
Ran 09 Mar 2026 10:20PM UTC
Jobs 1
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Mar 2026 10:19PM UTC coverage: 93.204% (+0.07%) from 93.138%
22877421491

push

github

web-flow
fix: security hardening and reliability improvements (#50)

* fix: security hardening and reliability improvements

Replace panic-based error handling with graceful fallbacks
- ProblemDetail errors now fall back to plain text response
- Removed panics from circuit breaker, rate limiter, and timeout middleware

Fix CSRF token generation to fail closed
- generateToken() now returns error on rand.Read failure
- Prevents CSRF bypass when random generation fails

Add HMAC secret key length validation
- Enforce minimum 32 bytes for HS256 secrets
- Enforce 32/48/64 bytes for SHA256/384/512 respectively

Fix ETag middleware double-write bug
- Add finalized flag to prevent duplicate response writes
- Occurred when Flush() was called during response rendering

Update tests to use properly sized secrets

Signed-off-by: alexferl <me@alexferl.com>

* increase test coverage

Signed-off-by: alexferl <me@alexferl.com>

* increase test coverage

Signed-off-by: alexferl <me@alexferl.com>

* add test coverage

Signed-off-by: alexferl <me@alexferl.com>

* remove notes

Signed-off-by: alexferl <me@alexferl.com>

---------

Signed-off-by: alexferl <me@alexferl.com>

49 of 50 new or added lines in 8 files covered. (98.0%)

3 existing lines in 2 files now uncovered.

7790 of 8358 relevant lines covered (93.2%)

30.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.35
-0.04% middleware/csrf.go

Coverage Regressions

Lines Coverage ∆ File
2
92.99
-0.54% sse.go
1
95.35
-0.04% middleware/csrf.go
Jobs
ID Job ID Ran Files Coverage
1 22877421491.1 09 Mar 2026 10:20PM UTC 62
93.2
GitHub Action Run
Source Files on build 22877421491
  • Tree
  • List 62
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22877421491
  • 7eb895aa on github
  • Prev Build on master (#22870963881)
  • Next Build on master (#22880726309)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc