-
Notifications
You must be signed in to change notification settings - Fork 701
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
unit tests fail with go1.15 due to X.509 CommonName deprecation #324
Comments
dmitris
added a commit
to dmitris/go-grpc-middleware
that referenced
this issue
Aug 14, 2020
Fixes grpc-ecosystem#324. The certificates need to have SAN fields instead of relying on the CommonName due to X.509 CommonName deprecation in go1.15. Reference: https://golang.org/doc/go1.15#commonname
dmitris
added a commit
to dmitris/go-grpc-middleware
that referenced
this issue
Aug 14, 2020
Fixes grpc-ecosystem#324. The certificates need to have SAN fields instead of relying on the CommonName due to X.509 CommonName deprecation in go1.15. Reference: https://golang.org/doc/go1.15#commonname
dmitris
added a commit
to dmitris/go-grpc-middleware
that referenced
this issue
Sep 7, 2020
Fixes grpc-ecosystem#324. The certificates need to have SAN fields instead of relying on the CommonName due to X.509 CommonName deprecation in go1.15. Reference: https://golang.org/doc/go1.15#commonname
dmitris
added a commit
to dmitris/go-grpc-middleware
that referenced
this issue
Sep 8, 2020
Fixes grpc-ecosystem#324. The certificates need to have SAN fields instead of relying on the CommonName due to X.509 CommonName deprecation in go1.15. The certificate is generated on the fly and cached in github.com/grpc-ecosystem/go-grpc-middleware/testing/testcert utility package. Reference: https://golang.org/doc/go1.15#commonname
dmitris
added a commit
to dmitris/go-grpc-middleware
that referenced
this issue
Sep 8, 2020
Fixes grpc-ecosystem#324. The certificates need to have SAN fields instead of relying on the CommonName due to X.509 CommonName deprecation in go1.15. The certificate is generated on the fly and cached in github.com/grpc-ecosystem/go-grpc-middleware/testing/testcert utility package. Reference: https://golang.org/doc/go1.15#commonname
johanbrandhorst
pushed a commit
that referenced
this issue
Sep 8, 2020
* generate TLS test certs with SAN for go1.15 Fixes #324. The certificates need to have SAN fields instead of relying on the CommonName due to X.509 CommonName deprecation in go1.15. The certificate is generated on the fly and cached in github.com/grpc-ecosystem/go-grpc-middleware/testing/testcert utility package. Reference: https://golang.org/doc/go1.15#commonname * move test cert generation to interceptor_suite.go
This was referenced Sep 8, 2020
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go test ./...
in the repo root works OK with go1.14.7 but fails with go1.15. It also works fine when run asGODEBUG=x509ignoreCN=0 go test ./...
which indicates that the failure is related to the X.509 CommonName deprecation in 1.15 [1].The CommonName-related errors are better visible if you comment out the blocking option in
https://github.com/grpc-ecosystem/go-grpc-middleware/blob/master/testing/interceptor_suite.go#L105 - changing that line to:
newDialOpts := dialOpts
and runninggo test ./...
produces multiple errors likeFull dump:
grpc-middleware.txt
We also have failures in the packages that depend on github.com/grpc-ecosystem/go-grpc-middleware with go1.15 that go away when building with go1.14.7 or using
GODEBUG=x509ignoreCN=0 go test -v ./...
.[1] https://golang.org/doc/go1.15#commonname
The text was updated successfully, but these errors were encountered: