Skip to content

chore: harden against environment-specific leaks#56

Merged
offendingcommit merged 2 commits into
mainfrom
chore/env-specific-hardening
Jun 2, 2026
Merged

chore: harden against environment-specific leaks#56
offendingcommit merged 2 commits into
mainfrom
chore/env-specific-hardening

Conversation

@offendingcommit
Copy link
Copy Markdown
Owner

Two small hygiene changes (separate concern from #54):

  1. test(web): replace the 100.x CGNAT fixture in the token-transport guard tests with 192.0.2.10 (RFC 5737 TEST-NET-1) — a clearly-example, non-loopback address. Same assertions, no environment-specific IP.
  2. chore(hooks): extend the pre-commit scripts/secret-scan.sh to flag *.ts.net MagicDNS names and 100.64.0.0/10 tailnet IPs, so live infra can't be committed into code, docs, or examples going forward.

Verified the guard detects leaks, has no false positive on 192.0.2.x / non-CGNAT 100.x, and does not self-trip on its own pattern definitions. Use examples (honcho.example.net, 192.0.2.x) instead.

Swap the 100.x CGNAT example for 192.0.2.10 (RFC 5737 TEST-NET-1) in the
token-transport guard tests — keeps the non-loopback-HTTP assertion, drops an
environment-specific address.
Extend the pre-commit secret-scan to catch environment-specific values
(*.ts.net MagicDNS names and 100.64.0.0/10 tailnet IPs) so live infra can't be
committed into code, docs, or examples. Verified: detects leaks, no false
positive on 192.0.2.x or non-CGNAT 100.x, and the script does not self-trip.
@offendingcommit offendingcommit merged commit 4349864 into main Jun 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant