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
e2e318a to
68adead
Compare
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>
cffc406 to
6431448
Compare
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
|
/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. |
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>
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
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>
| // CABundle is the CA certificate bundle for API endpoints. | ||
| // This field is currently ignored and reserved for future use. | ||
| // +optional | ||
| CABundle *string `json:"caBundle,omitempty"` |
There was a problem hiding this comment.
I don't know if we can just remove this field. We need to deprecate it first.
Since CloudProfile decoding is strict, this will fail for shoots that still have the CA set.
I remember that i wanted to add the DNSEndpoint to the cloudProfile but then the yawol extension was crashlooping since it didn't expect this field to be present.
That means that if the CABundle is still present, this controller would fail decoding it.
I think we should:
- deprecate that field
- make sure no cloudprofile has the cabundle set
- remove the cabundle field
There was a problem hiding this comment.
Or we could just mark this as breaking and then inform everybody that the CABundle needs to be removed. That has happen anyway, why not now?
| "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
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: