-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix expired tls certs for cpp tests #9607
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
| Issuer: C=US, ST=CA, O=Apache, OU=Pulsar Incubator, CN=localhost | ||
| Validity | ||
| Not Before: Feb 17 01:37:33 2018 GMT | ||
| Not After : Feb 16 01:37:33 2021 GMT |
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'm not familiar with TLS certificate but just have a question. The original Certificate - Data - Validity block has the Not After field that might lead to the broken CI. After this change, should we also keep the header-like block to record the Not After time?
I think the root cause is #1244 that intended to create certs which will expire after year 2030. However, the cacert.pem still expired after 2021-02-16.
|
btw. Some of the previous test keys/certificates weren't TLS 1.3 compatible. I assume that this problem gets also fixed? |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
eolivelli
left a comment
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.
looks good
|
/pulsarbot run-failure-checks |
|
@sijie There are still test failing because clients are validating the "hostname" with the CN of the certificate. The tests expect the certificates to be issued with CN |
|
I've regenerated the certs with "localhost" for broker CN |
|
@merlimat thank you! |
* Fix expired tls certs for cpp tests * Added "admin" role as super user * Fixed common name in certs * Added admin name in one more place * One more place missing "admin" * Fixed PulsarFunctionLocalRunTest * More fixes Co-authored-by: Matteo Merli <mmerli@apache.org>
* Fix expired tls certs for cpp tests * Added "admin" role as super user * Fixed common name in certs * Added admin name in one more place * One more place missing "admin" * Fixed PulsarFunctionLocalRunTest * More fixes Co-authored-by: Matteo Merli <mmerli@apache.org>
* Fix expired tls certs for cpp tests * Added "admin" role as super user * Fixed common name in certs * Added admin name in one more place * One more place missing "admin" * Fixed PulsarFunctionLocalRunTest * More fixes Co-authored-by: Matteo Merli <mmerli@apache.org>
* Fix expired tls certs for cpp tests * Added "admin" role as super user * Fixed common name in certs * Added admin name in one more place * One more place missing "admin" * Fixed PulsarFunctionLocalRunTest * More fixes Co-authored-by: Matteo Merli <mmerli@apache.org> (cherry picked from commit 2e08766)
Problem
The current master is broken due to an expired CA cert is used in CPP tests.
Modification
Use the certs we used for integration tests to keep it consistent across the rep.