-
Notifications
You must be signed in to change notification settings - Fork 580
Add DYNAMIC_DNS resolution type for wildcard hosts #3565
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
Conversation
- Defines DELAYED_DNS Signed-off-by: Jackie Elliott <[email protected]>
Signed-off-by: Jackie Elliott <[email protected]>
Skipping CI for Draft Pull Request. |
😊 Welcome @jaellio! This is either your first contribution to the Istio api repo, or it's been You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines Thanks for contributing! Courtesy of your friendly welcome wagon. |
Signed-off-by: Jackie Elliott <[email protected]>
validation Signed-off-by: Jackie Elliott <[email protected]>
Our current kubebuilder directive for wildcard hosts disallows setting any host to |
Signed-off-by: Jackie Elliott <[email protected]>
Signed-off-by: Jackie Elliott <[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; will approve after:
- Ian's comments/suggestions are addressed
- We have clarity on if we're using webhook validation or kubebuilder validation how this field is going to be used (I recommend webhook validation if we want to support this mode in sidecars later)
Signed-off-by: Jackie Elliott <[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.
Nice improvement. Thanks for fixing my weird "front-end" wording.
Maybe I'm being pedantic here but I'd like to see clearer delineation between what occurs during DNS proxy in ztunnel vs what DYNAMIC_DNS is intended to do. The two complement each other but should not be conflated.
Signed-off-by: Jackie Elliott <[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.
This seems pretty correct now. One question about when this is permitted though. Depending on the answer it might not be that relevant but if we won't configure DYNAMIC_DNS without wildcard we probably should say that more strongly here.
// the Host header or SNI to an IP address when handling traffic. This | ||
// is particularly useful when multiple dns addresses can be represented | ||
// by a single wildcard `host` entry without having to explicitly |
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.
Did we decide we only allow configuring this when using wildcards? The wording suggests it could be used elsewhere but I'm not sure if we strongly disallow that, or only don't recommend it.
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.
Personally, I'm in favor of a more narrow application and then expand it as we test
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.
I agree with being stricter in our official support. I believe in the POC I explicitly disallow non wildcard hosts with DYNAMIC_DNS
resolution.
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.
I have this right now later in the comment
`DYNAMIC_DNS` is only supported for wildcard hosts
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.
My thinking is that "particularly useful" suggests there are other applications allowed, just we didn't think they would be so useful. We could change it to something like "This is required when using a wildcard host name..." which to my mind doesn't suggest other applications.
I may just be splitting hairs here though. It's likely clear enough and just my mistake reading sentences individually versus in full context.
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.
Removed "Particularly useful"
Signed-off-by: Jackie Elliott <[email protected]>
Part of istio/istio#54540