ROX-25949: gRPC endpoint to return Secured Cluster TLS certificates#12740
ROX-25949: gRPC endpoint to return Secured Cluster TLS certificates#12740vladbologa merged 14 commits intomasterfrom
Conversation
|
Skipping CI for Draft Pull Request. |
c5c8c96 to
121e860
Compare
|
Images are ready for the commit at 1b383d0. To use with deploy scripts, first |
121e860 to
77f553c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #12740 +/- ##
==========================================
+ Coverage 48.14% 48.15% +0.01%
==========================================
Files 2439 2439
Lines 174988 175033 +45
==========================================
+ Hits 84252 84293 +41
- Misses 83937 83941 +4
Partials 6799 6799
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
/retest |
|
/test ocp-4-12-scanner-v4-tests |
SimonBaeumer
left a comment
There was a problem hiding this comment.
Could you explain how the cert generation extends the local scanner cert generation?
A description of the flow of the code would be good and which changes are most notably. Happy to jump on a call.
77f553c to
f9b9286
Compare
|
/retest |
e2f3c77 to
68caa07
Compare
|
/retest |
19ddf14 to
d0955ba
Compare
|
/retest |
Co-authored-by: Moritz Clasmeier <111092021+mclasmeier@users.noreply.github.com>
028fcbf to
1b383d0
Compare
|
/retest |
|
/retest |
1 similar comment
|
/retest |
Description
This PR adds a new gRPC API that allows Sensor to request fresh Secured Cluster certificates from Central.
The implementation reuses the code that was generating local scanner certificates for Sensor (see #219)
Prior to this PR, we had a gRPC call
IssueLocalScannerCertsRequestthat returns all the certificates needed for scanner to run (scanner v2 certs + optionally scanner v4 certs, if it's enabled).This introduces a similar API for the other Secured Cluster certs (sensor, collector, admission-controller), called
IssueSecuredClusterCertsRequestthat returns all these certs + the CA cert bundled together. To reuse the existing code, I did the following:central/localscanner/certificates.gotocentral/securedclustercertgen/certificates.gobecause now the functionality is more genericIssueLocalScannerCertsRequestIssueSecuredClusterCertsRequestthat reuses the common code extracted aboveSo before we had:
IssueLocalScannerCertsRequestincentral/localscanner/(1)Now we have:
IssueLocalScannerCertsRequestincentral/securedclustercertgen(renamed from 1)IssueSecuredClusterCertsRequestincentral/securedclustercertgen(added in this PR)Easier reviewed commit by commit.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Added unit & integration tests for the new API, CI should check regressions. The bulk of the testing will be done as part of ROX-25948.