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

stripe / smokescreen / 24180064184
56%

Build:
DEFAULT BRANCH: master
Ran 09 Apr 2026 08:19AM 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

09 Apr 2026 08:18AM UTC coverage: 56.203% (-0.2%) from 56.415%
24180064184

push

github

web-flow
acl: pass *http.Request through Decide via DecideArgs (#286)

* acl: replace Decide(service, host, proxy) with Decide(DecideArgs)

Replace the three positional string arguments on the Decider interface with
a DecideArgs struct. This keeps the interface stable as new fields are
added — the immediate motivation is passing *http.Request so custom Decider
implementations (e.g. request-aware authorization layers) can inspect request
headers without requiring a separate interface method.

ACL.Decide itself does not inspect Req; the field is documented as existing
solely for custom implementations. Tests are updated to use the new struct
form and two previously missing proxy-host cases are added (allowed proxy +
disallowed target, wildcard proxy glob), along with a test asserting that
ACL.Decide produces identical results regardless of the Req value.

Committed-By-Agent: claude

* smokescreen: remove TestHostSquareBrackets

Go 1.21 tightened URL validation in both the HTTP client (url.Parse) and
the HTTP server (request-line parsing), causing both layers to reject
hostnames containing square brackets before the request reaches
smokescreen's handler. The test can no longer exercise smokescreen's own
host-validation logic for these inputs and is removed.

Committed-By-Agent: claude

---------

Co-authored-by: Harold Simpson <harold@stripe.com>

14 of 15 new or added lines in 2 files covered. (93.33%)

9 existing lines in 1 file now uncovered.

1812 of 3224 relevant lines covered (56.2%)

46.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.59
0.0% pkg/smokescreen/acl/v1/acl.go

Coverage Regressions

Lines Coverage ∆ File
9
76.22
-0.75% pkg/smokescreen/smokescreen.go
Jobs
ID Job ID Ran Files Coverage
1 24180064184.1 09 Apr 2026 08:19AM UTC 25
56.2
GitHub Action Run
Source Files on build 24180064184
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7d45971c on github
  • Prev Build on master (#22099438009)
  • 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