-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix PowerDNS regex domain filter #3828
Fix PowerDNS regex domain filter #3828
Conversation
Welcome @matusf! |
Hi @matusf. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
It's a missing a test on domain_filter, to ensure this issue won't happen again.
@mloiseleur, shall I test that |
@matusf Then ... 🤔 why don't you remove the invalid call on PowerDNS provider, then ? |
1c58966
to
ea51373
Compare
ea51373
to
9272943
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: matusf, mloiseleur The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required |
@matusf: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @johngmyers @njuettner |
This test is expected to fail and aims to show that regex domain filter is not working.
9272943
to
0df91c4
Compare
Thanks @mloiseleur, I rebased. |
/lgtm |
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.
Why are we putting the check for being a regex filter in the caller? Shouldn't it be in MatchParent
like it is in Match
? Then we wouldn't have to make IsRegexFilterConfigured
public.
Firstly I put the check in the |
That's not how I interpreted that comment. I interpret it as asking why pdns is calling |
Yes, exactly. It seems weird to have only pdns calling |
The For example To disable this behaviour, one needs to prefix the filter with dot I would suggest removing the Another approach might be to create a new cli flag to enable the match parent functionality and do not piggyback on the domain filter. This would also solve the abovementioned challenges. |
Ok, shall I remove it as part of this PR (and thereby fix the regex domain filter)? |
I suppose there isn't a good way to mark MatchParent as deprecated. I wouldn't oppose removing the functionality. We'd have to announce the behavior change in the relevant release. |
I created new PR (#3869) which supersedes this one. It deletes the |
/close |
@mloiseleur: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Description
Regex domain filter stopped working because
MatchParent
method was invoked during zone partitioning. The failure occured becauseMatchParent
included wrong zones (zones not matcing the regex) in the filtered list. Subsequently listing of those zones failed because the pdns client did not have api token with permissions to list them.To fix this issue I disabled
MatchParent
functionality when matching domain using regex domain filter becauseMatchParent
is a specific "extension" of domain filter.Fixes #3816
Checklist