Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make VPN ACL filter more precise #50

Merged
merged 2 commits into from
May 6, 2024
Merged

Make VPN ACL filter more precise #50

merged 2 commits into from
May 6, 2024

Conversation

timebertt
Copy link
Member

@timebertt timebertt commented May 6, 2024

This PR makes the contains matcher in the VPN EnvoyFilter more precise.
The header value looks like outbound|1194||vpn-seed-server.<technical-ID>.svc.cluster.local.
We now include dots in the contains matcher as anchors, to always match the entire technical shoot ID.
Otherwise, if there is one cluster named foo and one named foo-bar (in the same project), foo would effectively inherit the ACL of foo-bar.

The PR also switches the inverse rule to and_ids. Using or_ids with a list of not_id makes the policy always allow traffic if multiple shoots use the ACL extension and run behind the same ingress gateway.

The more permanent solution to the problem is #43.

@timebertt timebertt enabled auto-merge (squash) May 6, 2024 13:34
@timebertt timebertt merged commit 0b5ed40 into main May 6, 2024
3 checks passed
@timebertt timebertt deleted the fix-vpn-filter branch May 6, 2024 13:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants