Use CA in cloudprofile for STACKIT clients#150
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
2677cbd to
ec54626
Compare
ec54626 to
3afb9c7
Compare
cffc406 to
6431448
Compare
|
/retest |
|
/test post-gardener-extension-provider-stackit-dev-artifacts |
|
@nschad: The specified target(s) for Use DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
breuerfelix
left a comment
There was a problem hiding this comment.
Add tests for as much as possible. E.g. webhook, factory and maybe valuesprovider
| "podNetwork": strings.Join(extensionscontroller.GetPodNetwork(cluster), ","), | ||
| "podAnnotations": map[string]any{ | ||
| "checksum/secret-" + v1beta1constants.SecretNameCloudProvider: checksums[v1beta1constants.SecretNameCloudProvider], | ||
| "checksum/secret-" + openstack.CloudProviderConfigName: checksums[openstack.CloudProviderConfigName], |
There was a problem hiding this comment.
We also need to add a checksum of the new stackit-ca here, we also need to make sure that the other pods that use the secret has the corresponding checksum in order for ca rotation to work properly
There was a problem hiding this comment.
CA rotation? That's not really a thing to be honest, atleast in this case
2ef9925 to
38ef61c
Compare
| func newHTTPClientWithCustomCA(caBundle []byte) (*http.Client, error) { | ||
| caCertPool, err := x509.SystemCertPool() | ||
| if err != nil { | ||
| // we could also fall back here and use an empty pool via x509.NewCertPool() |
There was a problem hiding this comment.
I think erroring is fine but we should customize the error to state what is broken and where does it come from.
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: stackit-ca-bundle |
There was a problem hiding this comment.
As the CloudProfile.Spec.CABundle field is no STACKIT exclusive I am not sure if we should name it differently (like cloudprofile-ca-bundle), WDYT?
There was a problem hiding this comment.
I've renamed this. Do you also want me to rename the "internal-path". For example it's called stackit-ca.crt everywhere. I thought its okay since this is the "stackit" extension. So 🤷
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
…ed Root CA's Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
…le instead Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
…lm-chart Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
…ending everytime Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
…verted Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
38ef61c to
40db20c
Compare
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
How to categorize this PR?
/kind enhancement
What this PR does / why we need it:
Removes the custom-ca secret and instead uses the CA from the
Cloudprofilefor all stackit components. OpenStack is unaffected.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Breaking changes: