-
Notifications
You must be signed in to change notification settings - Fork 95
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
improvement(tls-certs): collect and keep TLS/SSL artifacts #9219
base: master
Are you sure you want to change the base?
Conversation
@@ -2986,6 +2991,7 @@ def tearDown(self): | |||
time.sleep(1) # Sleep is needed to let final event being saved into files | |||
self.save_email_data() | |||
self.argus_collect_gemini_results() | |||
self.collect_certs() |
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.
Shouldn't it be called before the line 2988
(self.clean_resources()
)?
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.
Certs are collected from SCT runner, so cleaning cluster resources doesn't affect collecting certs.
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.
we might also consider collecting from nodes, to validate we didn't mess-up transferring them to the correct nodes ?
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.
Gathering certs from nodes is also interesting, IMHO.
But it can be done later.
c456e69
to
107b77f
Compare
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
Collect SSL configuration from SCT runner (node certificates/keys; CA certificate/key; etc.) and node specific certificates from DB/loader nodes. Keep them after a test is finished, similarly to how logs are collected and published. This will facilitate root cause analysis of SCT failures caused by certificate related issues. Closes: scylladb#9133
107b77f
to
a3870ab
Compare
Collect TLS/SSL artifacts (server, client certificates; CA certificate; etc.) and keep them after a test is finished, similarly to how logs are collected and published.
This will facilitate root cause analysis of SCT failures caused by certificate related issues (e.g. "Unknown Subject Alternative name in X.509 certificate" kind of errors, etc.).
Closes: #9133
Testing
PR pre-checks (self review)
backport
labelsReminders
sdcm/sct_config.py
)unit-test/
folder)