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

umputun / stash / 20637072238
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.18.0
DEFAULT BRANCH: master
Ran 01 Jan 2026 10:32AM UTC
Jobs 1
Files 29
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

01 Jan 2026 10:30AM UTC coverage: 83.47% (-0.7%) from 84.156%
20637072238

Pull #54

github

umputun
refactor(auth): extract auth package and simplify interfaces

split ~900 line auth.go into app/server/auth/ package with 3 files:
- config.go: types and yaml parsing
- auth.go: Service struct and methods
- middleware.go: HTTP middleware and helpers

simplified consumer interfaces:
- api.AuthProvider: reduced from 7 to 3 methods
- server.AuditAuth: reduced from 4 to 2 methods

added request-based auth methods that encapsulate internal logic:
- FilterKeysForRequest(r, keys) replaces manual token/session/public checks
- IsRequestAdmin(r) replaces HasTokenACL + IsTokenAdmin + IsAdmin combo
- GetRequestActor(r) returns actor type and name from request

naming follows go conventions (avoid stuttering):
- auth.Service instead of auth.Auth
- auth.New instead of auth.NewAuth
- auth.Config instead of auth.AuthConfig

related #audit-ui
Pull Request #54: refactor(auth): extract auth package and simplify interfaces

640 of 737 new or added lines in 8 files covered. (86.84%)

23 existing lines in 2 files now uncovered.

3974 of 4761 relevant lines covered (83.47%)

78.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
75.95
-8.93% app/server/server.go
7
61.13
1.13% app/main.go
7
91.95
app/server/auth/middleware.go
11
90.98
app/server/auth/config.go
70
83.45
app/server/auth/auth.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
61.13
1.13% app/main.go
20
75.95
-8.93% app/server/server.go
Jobs
ID Job ID Ran Files Coverage
1 20637072238.1 01 Jan 2026 10:32AM UTC 29
83.47
GitHub Action Run
Source Files on build 20637072238
  • Tree
  • List 29
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #54
  • PR Base - master (#20636009011)
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