feat(fetch): a wildcard covers subdomains and is not a suffix test #665
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!665
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/a-wildcard-is-not-a-suffix-claude"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #663
The separating dot is the whole security property
docs/sirens-echo-fetch.mdchose exact matching for a stated reason:A wildcard is exactly where that mistake comes back. Matching
"."+suffixrather thansuffixis the difference:Mutation run. Dropping the dot fails
TestAWildcardIsNotASuffixTestonnotmozilla.comandevilmozilla.com, plus the apex test. The property is proven rather than asserted.The apex is a separate entry
Your example lists the bare form as covering the domain and the wildcard as covering subdomains, so I took them as two entries and did not have
*.mozilla.commatchmozilla.com.That direction is the safe one to get wrong. Widening it later is one line and cannot break an existing allowlist. Narrowing it later would silently revoke access someone is relying on. Say the word if you want the apex included and it is a one-character change.
Two other guarantees
A malformed pattern matches nothing rather than everything.
*.,*,*.*.mozilla.comand an inner star are all refused — a typo that opens an allowlist is precisely the failure this bound exists to prevent, and it is the shape #618 and #592 kept finding today.Bare entries are unchanged. No configured allowlist gains reach when this ships, so this cannot widen a deployment by merging.
ward exec gategreen.