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

stripe / smokescreen / 37462579887
66%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2026 12:21PM UTC
Jobs 1
Files 28
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 Oct 2026 12:20PM UTC coverage: 65.014% (+1.0%) from 64.012%
37462579887

push

github

web-flow
acl: support single-label wildcards in domain globs (#344)

* acl: support single-label wildcards in domain globs

Domain globs only allowed a leading "*.", so patterns like access-analyzer.*.amazonaws.com (#241) or api*.example.com had to be expanded by hand, and new regions or hosts silently fell outside the list. Globs may now also contain a single wildcard that is confined to one label: either a whole non-leftmost label or a suffix after a literal prefix. Such a wildcard never crosses a dot, must be followed by a registrable domain, and is rejected in the TLD, Punycode labels, IP-shaped patterns, and directly after a leading "*" since that is usually a typo for "*.".

Outside the global deny list, a host only matches if its registrable domain per the public suffix list equals that of the glob's literal suffix. Without this, access-analyzer.*.amazonaws.com would allow access-analyzer.s3.amazonaws.com, an S3 bucket anyone can claim. The cost is that hosts the PSL splits off, like the us-east-1.amazonaws.com suffix, must be listed explicitly. The global deny list skips the check so a denied glob blocks every host it reads as.

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

* acl: share label wildcard parsing between validation and matching

The matcher re-derived a label wildcard's structure on its own and only rejected some of the shapes that validation rejects, so an unvalidated glob such as 1*.0.0.1 still matched an IP address in the global deny list. Validation and matching now share one parser, and a glob only matches after passing the same checks as ValidateDomainGlob. The normalization and public suffix checks run only after the labels match, so a miss costs no more than before.

The README now also notes that hosts that are public suffixes themselves, such as regional S3 endpoints, never match a wildcard, and that denying a label wildcard covers neither the bare prefix nor subdomains.

Co-Authored-By: Clau... (continued)

123 of 133 new or added lines in 2 files covered. (92.48%)

2 existing lines in 1 file now uncovered.

2046 of 3147 relevant lines covered (65.01%)

22.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
92.31
-1.27% pkg/smokescreen/acl/v1/acl.go

Coverage Regressions

Lines Coverage ∆ File
2
92.31
-1.27% pkg/smokescreen/acl/v1/acl.go
Jobs
ID Job ID Ran Files Coverage
1 37462579887.1 06 Oct 2026 12:21PM UTC 28
65.01
GitHub Action Run
Source Files on build 37462579887
  • Tree
  • List 28
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ac3ca090 on github
  • Prev Build on master (#37445263519)
  • Next Build on master (#37516137375)
  • 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