Harden RegistryChecker IRR/Whois origin parsing - #13
Merged
DeepZone merged 1 commit intoMay 19, 2026
Conversation
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.
Motivation
fields,irr_records) while keeping raw data visible and keeping the checker read-only.Description
_extract_route_origins()with a defensive walker and small helpers:_walk_records(),_walk_node(),_looks_like_field_list(),_extract_fields_from_record(), and_normalize_origin()to traverse lists, nested lists and dict-based records.data.irr_records,data.records, nested structures, object records withfields, and inline string blobs like"origin: AS3333"extracted only when the same record also containsroute/route6evidence.ASxxxxformat and accept numeric-only values (e.g."3333"→AS3333) when clearly present in an origin context.check()behavior: absent registry route origins produceWARNING,UNKNOWNremains for missing/error payloads, andCRITICALis only returned when a route/route6-origin is found and contradicts the provided origin AS.Testing
cd backend && pytest -qand all tests passed (27 passed).cd frontend && npm run buildand the production build completed successfully.Codex Task