Repository navigation
fix(transport): Refuse invalid VLAN interfaces in the gateway and NAT - #1548
Merged
Merged
Conversation
galactic-gateway and galactic-nat logged a transport side that failed validation and stayed Ready. Both now resolve their configured logical interfaces through internal/plumbing/transport before anything is expanded to hook targets or attached: - At startup a transport.ValidationError fails the process with the side, interface and rule, as galactic-cni does. A missing interface now fails as interface_not_found instead of an unnamed netlink error. - On a later link or route change a failure turns the readiness service NOT_SERVING, keeps the current attachments, and is logged and counted once until it changes or clears (Tracker.Record). galactic-nat reported its bond members as sides because it resolved the list natattach.ResolveUplinks had already expanded. SelectUplinks now returns the logical uplinks the shard validates, reports and fills vlan_egress from; UplinkTargets expands them for attachment and the uplink sysctls only. An uplink listed twice is refused as sides_overlap. Fixes #1546 Fixes #1547
Contributor
Author
|
Test evidence for the head this PR opened with, 15b667f.
The This PR did not use the shared lab. |
4 tasks done
privateip
marked this pull request as ready for review
December 1, 2026 02:20
This was referenced Dec 1, 2026
privateip
added a commit
that referenced
this pull request
Dec 2, 2026
fix(transport): Refuse invalid VLAN interfaces in the gateway and NAT
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.
Fixes #1546
Fixes #1547
The edge gateway and the NAT shard now refuse to start when a configured interface breaks the VLAN transport contract, naming the side, interface and rule, and turn readiness off when a break appears later. The NAT shard reports a bond uplink as the bond, and refuses an uplink listed twice as an overlap. The overlap with #597 in the NAT setup code is resolved when the epic reaches
main. Movinggalactic-cnitoTracker.Record, and reporting transport failures in the EgressShard Ready condition, are left for later.