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

stripe / smokescreen / 42262261098
67%
master: 68%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.0.1
DEFAULT BRANCH: master
Ran 06 Nov 2026 05:31PM UTC
Jobs 1
Files 32
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

06 Nov 2026 05:30PM UTC coverage: 65.679% (+1.0%) from 64.664%
42262261098

push

github

web-flow
acl/v2: add the v2 ACL format and validator (#360)

* acl/v2: add the v2 ACL format and validator

A v2 ACL keeps v1's shape of one entry per service, and adds structure where v1 hides behavior. A service has allow entries, each holding domains and its options, so MITM sits on the allow entry it applies to. A domain is a string or a mapping that sets cross_public_suffix for that domain only. Service and global deny lists are plain strings, and a deny glob always matches across public suffixes, as v1's global deny list does, so a deny list is as broad as it reads.

A service allow entry can win over the global deny list only when it sets override_global_policy: true, so every exception is visible on the entry that makes it. By default, a service allow entry that overlaps the global deny list without the field fails validation. Options.Compat keeps the v1 behavior for these entries and reports each one as a warning, so existing ACLs have a migration path.

Parsing is strict: unknown keys, a second YAML document, and a version other than v2 are errors, including inside a domain mapping, which yaml.Node.Decode does not check on its own. A policy marshals back to YAML that Parse accepts. The overlap check compares globs by concrete host rules, not by glob text, so it can't be bypassed by spelling a domain differently in the two lists. For two confined label wildcards it compares every label, so sts.* against iam.*, or api* against admin*, is not flagged.

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

* acl/v2: set cross_public_suffix on allow entries, not on each domain

An allow domain could be a string or a {glob, cross_public_suffix} mapping, so every domain that crossed public suffixes needed the long form. The option now sits on the allow entry, next to mitm and override_global_policy, and applies to all of the entry's domains. Domains that need different settings go in separate entries, as they already do for mit... (continued)

150 of 185 new or added lines in 3 files covered. (81.08%)

2417 of 3680 relevant lines covered (65.68%)

17.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
81.82
pkg/smokescreen/acl/v2/validate.go
13
79.4
1.98% pkg/smokescreen/acl/v2/glob.go
8
87.5
pkg/smokescreen/acl/v2/policy.go
Jobs
ID Job ID Ran Files Coverage
1 42262261098.1 06 Nov 2026 05:31PM UTC 32
65.68
GitHub Action Run
Source Files on build 42262261098
  • Tree
  • List 32
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ab8a98cd on github
  • Prev Build on v2 (#42232990913)
  • Next Build on v2 (#42368413803)
  • 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