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

stripe / smokescreen / 42368413803
67%
master: 68%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.0.1
DEFAULT BRANCH: master
Ran 07 Nov 2026 11:30AM UTC
Jobs 1
Files 33
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

07 Nov 2026 11:29AM UTC coverage: 66.92% (+1.2%) from 65.679%
42368413803

push

github

web-flow
acl/v2: add the decision engine (#366)

* acl/v2: add the decision engine

The engine decides in a fixed order: the service's deny list, its allow entries, the global deny list, the global allow entries, then the service's action. A matching service allow entry wins over the global deny list only if a matching entry sets override_global_policy, or in compat mode, so an exception for one domain never covers another. Entry order in the files does not change a result. It only picks the MITM config when several matching allow entries have one.

Reasons, Project and Default keep the values that v1 uses, so logs and callers that read them see no difference. A service deny list is new and reports "host matched denied domain in rule". Compile copies the policy, so a built Engine never changes and is safe for concurrent use.

Outside compat mode, Decide also checks a matching allow entry without override_global_policy against the global deny list itself. Validate's overlap check is a static approximation of what globs can match, so this is a second, exact check against the concrete host. The MITM config on a returned Decision is its own deep copy, so a caller that mutates one decision's headers can't change later decisions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

* acl/v2: match allow entries with their own cross_public_suffix setting

Domains are now plain strings and the crossing option sits on the allow entry, so the engine matches each entry's domains with that entry's setting. Proxy globs never cross public suffixes and deny globs always do. The sample ACL gains an entry that crosses, with a decision that only the crossing match allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Committed-By-Agent: claude

* acl/v2: pass Load's options to LoadFiles

LoadFiles now takes Options, so Load passes its own through. A caller that sets AllowUnknownFields gets the same parsing from Load as from LoadFiles.
... (continued)

128 of 138 new or added lines in 2 files covered. (92.75%)

2555 of 3818 relevant lines covered (66.92%)

18.46 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
93.7
pkg/smokescreen/acl/v2/engine.go
2
82.38
2.98% pkg/smokescreen/acl/v2/glob.go
Jobs
ID Job ID Ran Files Coverage
1 42368413803.1 07 Nov 2026 11:30AM UTC 33
66.92
GitHub Action Run
Source Files on build 42368413803
  • Tree
  • List 33
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 68d22736 on github
  • Prev Build on v2 (#42262261098)
  • Next Build on v2 (#43014476341)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc