Skip to content
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

Pki test certs expired #97756

Closed
rjernst opened this issue Jul 18, 2023 · 4 comments · Fixed by #97766
Closed

Pki test certs expired #97756

rjernst opened this issue Jul 18, 2023 · 4 comments · Fixed by #97766
Assignees
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test-failure Triaged test failures from CI

Comments

@rjernst
Copy link
Member

rjernst commented Jul 18, 2023

CI Link

https://gradle-enterprise.elastic.co/s/jze725jpxi7ki/console-log?task=:x-pack:plugin:security:internalClusterTest

Repro line

./gradlew ':x-pack:plugin:security:internalClusterTest' --tests "org.elasticsearch.xpack.security.authc.pki.PkiAuthDelegationIntegTests.testDelegateThenAuthenticate" -Dtests.seed=F5EC1FEFFC2FC08B -Dtests.locale=en-GB -Dtests.timezone=SystemV/PST8PDT -Druntime.java=20

Does it reproduce?

Yes

Applicable branches

main

Failure history

No response

Failure excerpt

The pki integ test began failing today. Looking at the certs the test uses, they are all expired:

❯ openssl x509 -enddate -noout -in testClient.crt
notAfter=Jul 18 13:33:41 2023 GMT
❯ openssl x509 -enddate -noout -in testIntermediateCA.crt
notAfter=Jul 18 13:32:34 2023 GMT
❯ openssl x509 -enddate -noout -in testRootCA.crt
notAfter=Jul 18 13:32:20 2023 GMT
@rjernst rjernst added >test-failure Triaged test failures from CI :Security/Security Security issues without another label labels Jul 18, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Security Meta label for security team label Jul 18, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@mark-vieira
Copy link
Contributor

@mark-vieira
Copy link
Contributor

FYI, I cherry-picked the test mute to 8.8 and 8.9 branches as well.

@jakelandis
Copy link
Contributor

jakelandis commented Jul 18, 2023

Not sure if this test is using the same certs but I hit a similar error on 7.17

It is likely the same root cause but failing on a test suite that no longer exists in 8.x. I will backport the fix to 7.x as well.

jakelandis added a commit that referenced this issue Jul 26, 2023
The certs for the PKI tests expired and the test was muted.
This commit follows the instructions in the read to update the certs and unmutes the test.
The certs will now expire 20 years from now.

fixes: #97756
jakelandis added a commit to jakelandis/elasticsearch that referenced this issue Jul 26, 2023
The certs for the PKI tests expired and the test was muted.
This commit follows the instructions in the read to update the certs and unmutes the test.
The certs will now expire 20 years from now.

fixes: elastic#97756
jakelandis added a commit to jakelandis/elasticsearch that referenced this issue Jul 26, 2023
The certs for the PKI tests expired and the test was muted.
This commit follows the instructions in the read to update the certs and unmutes the test.
The certs will now expire 20 years from now.

fixes: elastic#97756
jakelandis added a commit that referenced this issue Jul 27, 2023
The certs for the PKI tests expired and the test was muted.
This commit follows the instructions in the read to update the certs and unmutes the test.
The certs will now expire 20 years from now.

fixes: #97756
elasticsearchmachine pushed a commit that referenced this issue Jul 27, 2023
* Update certs for PKI tests and re-enable tests (#97766)

The certs for the PKI tests expired and the test was muted.
This commit follows the instructions in the read to update the certs and unmutes the test.
The certs will now expire 20 years from now.

fixes: #97756

* precommit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants