-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update Golang to 1.15 #7204
Update Golang to 1.15 #7204
Conversation
Updating golang build to 1.15 and bumping bootstrap image identifier to reflect new build. Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
Signed-off-by: D.K <dan.kozlowski@gmail.com>
This appears to be an actual failure on |
It appears the default MySQL install generates a TLS certificate that does not set the SAN
What this means is that as of golang 1.15 we will no longer trust these certificates. There is a whole github thread about how this breaks RDS Here is the CL that changed the default |
Also I can confirm setting |
This sets the flag to ignore 509 validation errors caused by certs not setting a SAN and only using a CN. The default MySQL certs don't set either to a valid hostname. Newer versions of ETCD don't respond on the v2 endpoint so this replaces that check with the /version endpoint which will always respond. Signed-off-by: D.K <dan.kozlowski@gmail.com>
This uses the tlstest package to generate valid certs and injects them into mysql for the test Signed-off-by: D.K <dan.kozlowski@gmail.com>
Some tests use this same infrastructure, but they already plumb in SSL certificates, this will keep those tests the same and only effect this one test Signed-off-by: D.K <dan.kozlowski@gmail.com>
There are quite a few places where it turns out the "VerifyURL" is actually the base url for accessing data. Who would have thought. Signed-off-by: D.K <dan.kozlowski@gmail.com>
Adding that |
I think it's important that we continue work with systems like RDS. In the spirit of continuing to move forward, we should look at hardcoding this env var in our mysql client. However, we have to make sure we add this variable to |
RDS and CloudSQL have both updated their TLS certificates, but if you have a very old RDS instance that hasn't been upgraded it would require the GODEBUG setting https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html |
In that case, we should just document this and move on. No need to add any hardcoding. |
As to a custom fix this comment lists how to do it client side ( i.e. what we would need to change vttls.go to have ) |
If it turns out that we do need client side overrides here is what that looks like
|
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
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: update top level name for unit tests Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: try different naming convention Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: try different naming convention Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: split cluster matrix into individual tests Signed-off-by: Rohit Nayak <rohit@planetscale.com> Add action to Makefile to generate the yaml files Signed-off-by: Rohit Nayak <rohit@planetscale.com> Change go version to reflect PR vitessio#7204 Signed-off-by: Rohit Nayak <rohit@planetscale.com> Regenerate files with go-version 1.15 Signed-off-by: Rohit Nayak <rohit@planetscale.com> gofmt-ed Signed-off-by: Rohit Nayak <rohit@planetscale.com> Minor refactor, initial README Signed-off-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Harshit Gangal <harshit@planetscale.com> Add descriptive names to vrep shards. Update test generator script Signed-off-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Harshit Gangal <harshit@planetscale.com> gofmt-ed Signed-off-by: Rohit Nayak <rohit@planetscale.com> Address review comment Signed-off-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: update top level name for unit tests Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: try different naming convention Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: try different naming convention Signed-off-by: Rohit Nayak <rohit@planetscale.com> CI: split cluster matrix into individual tests Signed-off-by: Rohit Nayak <rohit@planetscale.com> Add action to Makefile to generate the yaml files Signed-off-by: Rohit Nayak <rohit@planetscale.com> Change go version to reflect PR vitessio#7204 Signed-off-by: Rohit Nayak <rohit@planetscale.com> Regenerate files with go-version 1.15 Signed-off-by: Rohit Nayak <rohit@planetscale.com> gofmt-ed Signed-off-by: Rohit Nayak <rohit@planetscale.com> Minor refactor, initial README Signed-off-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Harshit Gangal <harshit@planetscale.com> Add descriptive names to vrep shards. Update test generator script Signed-off-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Harshit Gangal <harshit@planetscale.com> gofmt-ed Signed-off-by: Rohit Nayak <rohit@planetscale.com> Address review comment Signed-off-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Backport
NO
Description
Updates the version of go used by CI to 1.15, this also adds in a CI test to ensure we don't drift the bootstrap version
Impacted Areas in Vitess