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

umputun / remark42 / 24751384141 / 1
84%
master: 85%

Build:
Build:
LAST BUILD BRANCH: fix-image-proxy-xss-content-type-spoofing
DEFAULT BRANCH: master
Ran 21 Apr 2026 11:18PM UTC
Files 51
Run time 1s
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

21 Apr 2026 11:15PM UTC coverage: 84.244% (-0.003%) from 84.247%
24751384141.1

Pull #2049

github

paskal
fix(auth): normalise AllowedRedirectHosts entries + add unit test

Address Copilot review on PR #2049. The previous closure passed raw
s.AllowedHosts entries straight to the auth library, but --allowed-hosts
holds CSP frame-ancestors source expressions: scheme-prefixed values
(https://blog.example.com), entries with ports, and wildcards
(*.cdn.example.com) are all valid there but the auth library compares
against u.Hostname() and would silently drop them — breaking legitimate
redirects on multi-host deployments.

Extract getAllowedRedirectHosts that:
* trims whitespace, drops empty / 'self' / "self" / wildcard entries
* prepends https:// if scheme missing then url.Parse to extract Hostname
* logs a warning on parse failure rather than poisoning the allowlist

Wire the closure in getAuthenticator to call the helper.

Test_getAllowedRedirectHosts covers all the edge cases Copilot flagged
(scheme stripping, port handling, self spellings, wildcards, empty,
mixed real-world).
Pull Request #2049: fix(auth): close OAuth open-redirect by wiring AllowedRedirectHosts

6261 of 7432 relevant lines covered (84.24%)

34.36 hits per line

Source Files on job 24751384141.1
  • Tree
  • List 51
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24751384141
  • 808806f0 on github
  • Prev Job for on bump-auth-oauth-redirect-fix (#24600086020.1)
  • Next Job for on bump-auth-oauth-redirect-fix (#24752433324.1)
  • Delete
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