-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add filter state IP matcher #37637
base: main
Are you sure you want to change the base?
Add filter state IP matcher #37637
Conversation
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
/assign @markdroth |
/retest |
Signed-off-by: antoniovleonti <[email protected]>
5587720
to
1cd6e9e
Compare
Signed-off-by: antoniovleonti <[email protected]>
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.
Thanks for the contribution. And a comment to API to start this work.
Signed-off-by: antoniovleonti <[email protected]>
Signed-off-by: antoniovleonti <[email protected]>
…into gen_ip_range Signed-off-by: antoniovleonti <[email protected]>
Signed-off-by: antoniovleonti <[email protected]>
Signed-off-by: antoniovleonti <[email protected]>
If you have any idea what is causing this error
Please let me know :). It's from the changelog but I used the same pattern from other matchers: https://github.com/search?q=repo%3Aenvoyproxy%2Fenvoy%20envoy_api_msg_type.matcher&type=code |
ithink you missed the version in that label? |
Signed-off-by: antoniovleonti <[email protected]>
Signed-off-by: antoniovleonti <[email protected]>
/retest |
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.
Thanks for the update and sorry the delay. I add some comments to the source code. But I think it's good overall. And the api is fine now.
/lgtm api
/wait |
And merry Christmas!!! 🎄 And please ping me at slack directly if you are back and want a quick review. Sometimes I will fall into a lazy status and won't check the github notifications. 😴 |
Signed-off-by: antoniovleonti <[email protected]>
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.
LGTM, thanks. Could you check the CI? Thanks.
Signed-off-by: antoniovleonti <[email protected]>
Signed-off-by: antoniovleonti <[email protected]>
You may also need add the new proto to the |
Signed-off-by: antoniovleonti <[email protected]>
Commit Message: Add filter state IP matcher
Additional Description:
This cl adds a matcher to the generic filter state matcher which attempts to coerce the specified filter state object into an IP, then matches it against a configured CIDR range. If the IP is in the range, the matcher returns true, otherwise false.
Risk Level: low
Testing: unit tested
Docs Changes: none
Release Notes: changelog updated
Platform Specific Features: none