Repository navigation
Commit 7fa8426
committed
Trust OpenShift service CA via combined-ca-bundle, not a per-assistant copy
The assistant must trust its Lightspeed backend, whose in-cluster service
is secured by an OpenShift service-serving certificate signed by the
OpenShift service CA. Previously the assistant controller built its own
combined bundle (source CA plus the injected service CA) in a dedicated
Secret and watched the service-CA ConfigMap to keep it fresh.
Fold the OpenShift service CA into the control plane's shared
combined-ca-bundle in ReconcileCAs instead. Consumers that already mount
combined-ca-bundle, including the assistant, then trust service-serving
endpoints with no per-assistant bundle. The ConfigMap is namespace-injected
by OpenShift and absent on plain Kubernetes, so a NotFound is a no-op, and
it is added to the full bundle only, not the internal-issuer-only bundle.
Remove the now-unused assistant-owned bundle: delete ca_bundle.go and its
test, and drop reconcileCABundle and the service-CA ConfigMap watch from the
assistant controller.1 parent b6576da commit 7fa8426
4 files changed
Lines changed: 40 additions & 358 deletions
File tree
- internal
- controller/assistant
- openstack
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 247 | + | |
252 | 248 | | |
253 | 249 | | |
254 | 250 | | |
| |||
849 | 845 | | |
850 | 846 | | |
851 | 847 | | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | 848 | | |
870 | 849 | | |
871 | 850 | | |
| |||
0 commit comments