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

yylego / kratos-static-auth / 42890615527
99%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 07:59PM UTC
Jobs 3
Files 2
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

10 Nov 2026 07:58PM UTC coverage: 98.788% (+98.8%) from 0.0%
42890615527

push

github

yyle88
Check the config at startup and drop the debug switch and span hooks

- NewMiddleware panics when no token type is enabled, and when a username has a blank token, which would let "Basic base64(username:)" pass
- Drop WithDebugMode: each match and auth outcome is a slog Debug record, and the slog setup decides if it shows
- Drop WithNewSpanHook, since the tracing middleware that Kratos ships covers request tracing
- Drop SetUsernameIntoContext and GetUsernameFromContext; SetUsername and GetUsername hold the code
- Build the Basic token in one place, and drop the unused helpers in the utils package
- Add tests on each Config method, on the middleware and on the utils package
- Require Go 1.26 to match the current grpc, and bump the dependencies
- Align .gitignore, the release workflow and the README template blocks with the current templates

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

34 of 36 new or added lines in 1 file covered. (94.44%)

163 of 165 relevant lines covered (98.79%)

27.3 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.7
98.7% statickratosauth/static_kratos_auth.go
Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 42890615527.1 10 Nov 2026 07:59PM UTC 2
98.53
GitHub Action Run
2 Go-1.26.x - 42890615527.2 10 Nov 2026 07:59PM UTC 2
98.79
GitHub Action Run
3 Go-1.27.x - 42890615527.3 10 Nov 2026 07:59PM UTC 2
98.53
GitHub Action Run
Source Files on build 42890615527
  • Tree
  • List 2
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 38685eef on github
  • Prev Build on main (#28314214973)
  • Next Build on main (#44893221346)
  • Delete
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