-
Notifications
You must be signed in to change notification settings - Fork 7
Fix sending from "default" expose in flow-filter #1227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
qmonnet
wants to merge
2
commits into
main
Choose a base branch
from
pr/qmonnet/fix-default-src
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+273
−33
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
We'll need to add some processing specific to some of the local expose objects in a follow-up commit, so we need to make the distinction on a per-expose basis rather than use a flat map of the prefixes. Signed-off-by: Quentin Monnet <qmo@qmon.net>
We recently added support for "default" expose blocks used as a fallback destination for packets from the VPC when the destination IP matches no other exposed prefixes. From the "default" block we deduce information about the destination VPC, and about whether the packet has a valid destination. But we forgot to use it for the reverse check: when a packet is emitted from a VPC, from behind a "default" block, its source address should always be considered as valid. This is not the case! So if we have VPC A and B peered together, and VPC B exposing a "default" block, VPC A can send packets to VPC B through this block, but all replies from VPC B are dropped. This commit fixes the issue by adding a "default source" connection information object to the context for the flow-filter stage, in the per-source-VPC-discriminant table. This information is used to validate the destination and retrieve the destination VPC when a packet is emitted from behind a "default" expose block. Also add unit tests to validate the behaviour. Fixes: d081eb6 ("feat(flow-filter): Add support for "default" destination VpcExpose") Signed-off-by: Quentin Monnet <qmo@qmon.net>
Fredi-raspall
requested changes
Jan 22, 2026
Contributor
Fredi-raspall
approved these changes
Jan 22, 2026
Contributor
Fredi-raspall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified, thanks!
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.
We recently added support for "default" expose blocks used as a fallback destination for packets from the VPC when the destination IP matches no other exposed prefixes. From the "default" block we deduce information about the destination VPC, and about whether the packet has a valid destination. But we forgot to use it for the reverse check: when a packet is emitted from a VPC, from behind a "default" block, its source address should always be considered as valid. This is not the case! So if we have VPC A and B peered together, and VPC B exposing a "default" block, VPC A can send packets to VPC B through this block, but all replies from VPC B are dropped.
This PR fixes the issue by adding a "default source" connection information object to the context for the flow-filter stage, in the per-source-VPC-discriminant table. This information is used to validate the destination and retrieve the destination VPC when a packet is emitted from behind a "default" expose block.