Skip to content
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

feat: Support label_match_statement #100

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amontalban
Copy link

what

This PR allows creating rules based on labels. It is specially useful if you want to block specific regions of a country.

why

We need to block certain regions that are part of Ukraine due to commercial embargoes (See examples).

references

@amontalban amontalban requested review from a team as code owners September 17, 2024 18:23
@mergify mergify bot added the triage Needs triage label Sep 17, 2024
@addepar-tg
Copy link

This would also be extremely useful for us to be able to allow traffic based on paths not matching regular expressions, without the ability to use not statements.

@@ -280,6 +280,85 @@ variable "geo_match_statement_rules" {
DOC
}

variable "label_match_statement_rules" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: move label_match_statement_rules under ip_set_reference_statement_rules to maintain rules block alphabetical order.

@addepar-tg
Copy link

FWIW I have tested this extensively today for our use case, and this functionality seems to work perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants