Repository navigation
feat: aggkit-proxy bridgeServiceFinder AllowNetworkIDs whitelist 1909 - #1923
Conversation
Add BridgeServiceFinder.AllowNetworkIDs: when non-empty, only the listed networks are resolved and every other one is excluded exactly like an IgnoreNetworkIDs entry (skipped at enumeration and live discovery, ErrNetworkDisabled from GetURL, never pending). It combines with AutoRegisterNewNetworks so a network ID can be listed before the network is attached to the rollup manager. IgnoreNetworkIDs and AllowNetworkIDs are mutually exclusive: New returns ErrConflictingNetworkFilters if both are set. Fixes #1909 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@claude review |
|
Claude finished @joanestebanr's task in 36s —— View job Review of PR #1923:
|
…chars Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔄 Changes Summary
BridgeServiceFinder.AllowNetworkIDs, a whitelist of permitted networks. When non-empty, only the listed network IDs are resolved; every other network is excluded exactly as if it were inIgnoreNetworkIDs(skipped at enumeration and live discovery,GetURLreturnsErrNetworkDisabled, never recorded as pending even withAutoRegisterNewNetworks = false).AutoRegisterNewNetworks, so a network ID can be listed before the network is attached to the rollup manager.IgnoreNetworkIDsandAllowNetworkIDsare mutually exclusive:NewreturnsErrConflictingNetworkFiltersif both are set, so the proxy fails at startup.networkFiltershared by the finder and the listener.[](no allowlist). The only new failure is configuring both lists at once.📋 Config Updates
🔌 API Updates
🔌 Bridge service API
🔌 Proxy API
🔌 Others API
✅ Testing
bridgeservicefinder/allow_network_ids_test.go: conflict withIgnoreNetworkIDs, filter logic, enumeration atStart, and live discovery withAutoRegisterNewNetworkson and off.proxy/configdefault test extended.AllowNetworkIDsin the aggkit-proxy config and check thatGETfor a non-listed network returns not found, and that setting both lists makes the proxy fail at startup.🐞 Issues
🔗 Related PRs
📝 Notes
0(L1) is a regular entry, so it must be listed to keep being served fromBridgeURLs; this is consistent withIgnoreNetworkIDs.TestStart_UnreachableService_RequireAllHealthyOnStart{True,False}fail ondevelopwithout these changes too.