-
Notifications
You must be signed in to change notification settings - Fork 9.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
embed: fix HTTPs + DNS SRV discovery #8651
Conversation
Ok I will try manual-testing it. Thanks. |
embed/config.go
Outdated
cfg.PeerTLSInfo.ServerName = cfg.DNSCluster | ||
// SRV targets have subdomains under the given DNSCluster, so wildcard matching | ||
// is needed. | ||
cfg.PeerTLSInfo.ServerName = "*" + cfg.DNSCluster |
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.
s/*/*./
?
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.
fixed.
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!
Was able to reproduce, and confirm the fix via #8654. |
The ppc64 one is always failing recently. i have not digged into why. but that should not block this pr. so merging. |
This change breaks existing clusters that use ETCD with SSL without the wildcard domain. It would have been good if it wasn't part of a patch release and the release notes highlighted that it is a backwards incompatible change. |
@stephanh maybe we will revert this change, and find a better solution. i am not sure how to deal with it for now. but we will figure it out before the release. |
@xiang90 it has already been included in the 3.2.9 release (https://github.com/coreos/etcd/releases/tag/v3.2.9). |
@stephanh sorry. then we need to figure this out as soon as possible. |
FYI this has been reverted and released with https://github.com/coreos/etcd/releases/tag/v3.2.10. |
Fix #8445
@gyuho can you manually test it? or do we have a plan to add a test case for this?