ROX-27394: Sensor offline mode support in TLS issuer#13596
ROX-27394: Sensor offline mode support in TLS issuer#13596vladbologa merged 7 commits intomasterfrom
Conversation
|
Skipping CI for Draft Pull Request. |
|
Images are ready for the commit at 949d12a. To use with deploy scripts, first |
dbece3b to
d2a3e4c
Compare
0c5f579 to
74476fc
Compare
vikin91
left a comment
There was a problem hiding this comment.
Vlad, I just quickly browsed the code and have two impressions:
- The changes required to handle offline mode look pretty complex. This is not typical. Are you sure that we cannot simplify somewhere?
- I read the PR description (it is great and all points make sense) and I think you still need to add the integration tests. They are pretty important for testing offline mode as they typically uncover many problems. Please make sure to add them.
I will go over the code properly soon (I hope).
Most changes are in the tests (and I also extracted some common test functions). But otherwise I wouldn't say that the changes are complex, it's mostly moving some code from the
I did add tests for cycling between offline and online for both components here: and here: EDIT: The above refers to an older version of this PR. The code has changed significantly since then, and now there are no distinct |
e88e47f to
f7d07e3
Compare
3539f93 to
82d798b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13596 +/- ##
==========================================
- Coverage 49.07% 49.04% -0.04%
==========================================
Files 2514 2524 +10
Lines 182769 183446 +677
==========================================
+ Hits 89691 89963 +272
- Misses 85956 86363 +407
+ Partials 7122 7120 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
82d798b to
d25f9c3
Compare
|
Sorry @vladbologa , I didn't make it with the review before my PTO. Do you maybe want to ping others from Maple for a review? |
lvalerom
left a comment
There was a problem hiding this comment.
I need to have a closer look a the tests but here's some early feedback to the production logic.
8331dd0 to
656a37f
Compare
|
/retest |
lvalerom
left a comment
There was a problem hiding this comment.
I think the handling of the cancel function should be protected with a mutex but other than that looks really good.
lvalerom
left a comment
There was a problem hiding this comment.
LGTM! Thank you for making the changes!
Description
This PR adds explicit handling for Sensor offline mode in the TLS issuer components. As these components cannot do anything useful in offline mode, the certificate refresh logic is now only active when Sensor is online.
(note: the TLS issuer was already resilient to Sensor being offline due to its retry mechanism)
Main changes:
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Manual smoke test that shows that the Secured Cluster cert refresher works:
Sensor logs: