Repository navigation
test(security): no committed file holds a private address or a .lan host - #2597
Merged
Merged
Conversation
A new invariant test reads each tracked file, parses each run of address characters with `ipaddress`, and fails on an RFC 1918 host address or a `.lan` host (SECURITY.md rule 8). A range in CIDR form and three named upstream defaults pass. Test code, archived OpenSpec changes and CHANGELOG.md are out of scope. The specs configured-service-urls and stack-credential-sync, the five tests that feed them and a reference_extractor docstring move to RFC 5737 addresses. SECURITY.md names the check.
Owner
Author
|
Test evidence:
Pending a person: review the diff in tuicr ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SECURITY.md rule 8 forbids an RFC 1918 address and an internal
.lanhost in a committed file, but no check held the rule.tests/invariants/test_committed_addresses.pyreads each tracked file, parses each run of address characters withipaddress(no octet pattern), and fails on an RFC 1918 host address or a.lanhost.CHANGELOG.mdare out of scope: the egress and reference classifier tests need RFC 1918 input, archives record merged work, and release-please writes the changelog.Closes #1977
Change:
openspec/changes/archive/2026-10-29-1977-private-address-check/