Repository navigation
docs(openspec): plan #2152 replace legacy IPv4 parser - #2971
Merged
dan-petty merged 1 commit intoNov 1, 2026
Merged
Conversation
7 tasks
dan-petty
deleted the
refactor/2152-the-egress-checks-read-legacy-numeric
branch
November 1, 2026 01:22
This was referenced Nov 1, 2026
fix(roadmap): the stage job refuses a plan whose group reads a path that a later group creates
#3017
Closed
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
This change corrects the OpenSpec plan of #2152 in place. The Service staged the plan in PR #2971. An evaluation on 2026-11-01 found defects in it. The corrected plan has three groups and no spec delta. Group 1 prepares the test doubles for a call with AI_NUMERICHOST. Group 2 adds tests for the legacy spellings. Group 3 makes parse_numeric_ip read a host as the resolver does. The plan now names the existing tests that break when the parser calls getaddrinfo. Every path in it exists on main, or is marked new. This change touches only the change folder of #2152. Plans #2152
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.
Plans #2152
Replace the hand-written legacy IPv4 parser in core/validation.py with socket.getaddrinfo and the AI_NUMERICHOST flag. The C library parses all legacy forms (octal, hex, one-to-three-part, integer) without a DNS query. Delete _parse_part, _combine_ipv4_parts, _parse_legacy_ipv4, the repeated metadata check in _enforce_non_private_ssrf, and two unreachable branches. Add tests for octal, three-part, zone-ID, and unparsable-is-private forms. Existing tests for one-part, two-part, and hex forms still pass. No test starts a program or makes a DNS query.
Change:
openspec/changes/2152-the-egress-checks-read-legacy-numeric/