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

umputun / remark42 / 24751384141
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix-typo
DEFAULT BRANCH: master
Ran 21 Apr 2026 11:18PM UTC
Jobs 1
Files 51
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

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

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

22 of 26 new or added lines in 2 files covered. (84.62%)

87 existing lines in 1 file now uncovered.

6261 of 7432 relevant lines covered (84.24%)

34.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
83.83
-0.01% backend/app/cmd/server.go

Coverage Regressions

Lines Coverage ∆ File
87
83.83
-0.01% backend/app/cmd/server.go
Jobs
ID Job ID Ran Files Coverage
1 24751384141.1 21 Apr 2026 11:18PM UTC 51
84.24
GitHub Action Run
Source Files on build 24751384141
  • Tree
  • List 51
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2049
  • PR Base - master (#24600086020)
  • 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