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

alexferl / zerohttp / 47471949716
94%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2026 03:13AM UTC
Jobs 1
Files 93
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

05 Dec 2026 03:12AM UTC coverage: 93.546% (+0.02%) from 93.526%
47471949716

push

github

web-flow
fix(jwtauth): keep Secure and HttpOnly cookie defaults when unset (#185)

CookieConfig.Secure and HttpOnly are documented as defaulting to true, but
they were plain bools. Config merging always copies bools so callers can
override a true default with false, which meant a user who enabled cookies
and set only some fields had the zero values copied over the defaults.
New() merges the user Config over DefaultConfig, so a partial CookieConfig
produced cookies with neither the Secure nor the HttpOnly flag - session
tokens sent over plain HTTP and readable from JavaScript.

Make both fields *bool, matching the idiom used elsewhere in the repo
(new(true) for pointer bool literals), and resolve nil to true at each
http.SetCookie site with config.BoolOrDefault. Explicitly setting false
still disables the flag, which is needed for local HTTP development.

TestSetCookie_Defaults never asserted the two flags, which is why this went
unnoticed. Add those assertions plus explicit-override and partial-merge
regression tests.

BREAKING CHANGE: CookieConfig.Secure and CookieConfig.HttpOnly are now
*bool. Callers setting them need new(true)/new(false) or config.Bool.

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

14 of 14 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

9334 of 9978 relevant lines covered (93.55%)

138.79 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.03
0.0% sse/sse.go
Jobs
ID Job ID Ran Files Coverage
1 47471949716.1 05 Dec 2026 03:13AM UTC 93
93.55
GitHub Action Run
Source Files on build 47471949716
  • Tree
  • List 93
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #47471949716
  • 7bbe682f on github
  • Prev Build on master (#47467711960)
  • Next Build on master (#47472347493)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc