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

go-pkgz / auth / 24596751515
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix/auth-sensitive-logging
DEFAULT BRANCH: master
Ran 18 Apr 2026 04:22AM UTC
Jobs 1
Files 25
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

18 Apr 2026 04:20AM UTC coverage: 84.618% (+0.4%) from 84.247%
24596751515

Pull #275

github

paskal
fix(provider): port-insensitive host check + log only host on rejection

Address Copilot review on PR #275:

* isAllowedRedirect compared u.Host (which includes port). A from URL
  like https://app.example.com:443/x against an Opts.URL of
  https://app.example.com would be rejected even though they are the
  same origin. Switch to u.Hostname() so the explicit-default-port form
  matches, and add three test cases (https:443, http:80, non-default :8080).

* The rejection log lines wrote the full from URL, leaking
  attacker-supplied paths/query strings into operator logs. Add
  redirectHostForLog helper (parses and returns just the hostname,
  sentinel on parse failure) and use it from all four sites
  (oauth1/oauth2/apple/verify). Covered by TestRedirectHostForLog.
Pull Request #275: fix: validate "from" redirect target in OAuth/verify flows

106 of 109 new or added lines in 7 files covered. (97.25%)

2789 of 3296 relevant lines covered (84.62%)

7.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
89.11
v2/token/jwt.go
Jobs
ID Job ID Ran Files Coverage
1 24596751515.1 18 Apr 2026 04:21AM UTC 25
84.62
GitHub Action Run
Source Files on build 24596751515
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #275
  • PR Base - master (#24545263781)
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