-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(endpoint): domains handling with idna #5685
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
a4fe0fa
to
e1069df
Compare
Signed-off-by: ivan katliarchuk <[email protected]>
e1069df
to
e9ec3ac
Compare
Hi @a-pallari , @sathieu and @valerian-roche any chence to confirm the fix works? If needed, see how to test a PR ?. |
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.
We use roughly the same fix successfully in our fork.
The main difference is the Profile
becoming a shared, reused instance. The structure methods have pointer receiver but from a quick read of the code do not seem to alter it, so it should not be an issue
@valerian-roche: changing LGTM is restricted to collaborators 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-sigs/prow repository. |
Signed-off-by: ivan katliarchuk <[email protected]>
Signed-off-by: ivan katliarchuk <[email protected]>
@ivankatliarchuk I won't have the time to do e2e test, but I can confirm that this removes the error: package main
import (
"fmt"
"golang.org/x/net/idna"
)
func main() {
fmt.Println(idna.Lookup.ToUnicode("*.foo.example.org"))
Profile := idna.New(
idna.MapForLookup(),
idna.Transitional(true),
idna.StrictDomainName(false),
)
fmt.Println(Profile.ToUnicode("*.foo.example.org"))
}
See on Go Playground |
Hi @RichardoC you could try this fix and validate? |
/lgtm |
Unfortunately not. The cluster where I see the issue isn't somewhere I can install unreleased software. Sorry! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivankatliarchuk, valerian-roche The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* fix(idna): fix handling of domains Signed-off-by: ivan katliarchuk <[email protected]> * fix(idna): fix handling of domains Signed-off-by: ivan katliarchuk <[email protected]> * fix(idna): fix handling of domains Signed-off-by: ivan katliarchuk <[email protected]> --------- Signed-off-by: ivan katliarchuk <[email protected]>
What does it do ?
*
not handled correctlyFollow-up most likely
prefix
. Example terraform https://github.com/hashicorp/terraform-provider-aws/blob/47afa5c147c6c5efede000e47d5d42483a0da928/internal/service/route53/record.go#L980 and API https://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.htmlMotivation
Fixes #5649
Fixes #5602
More
Current

With the fix
records added

records deleted

same for records with

*
and_