Commit 4528acc
committed
Add podLevel TLS between OpenStackAssistant and MCP server sidecar
Adds TLS encryption for the Streamable HTTP connection between the
OpenStackAssistant pod (Goose) and the rhos-ls-mcps MCP server sidecar
running in the OpenStackClient pod. TLS is conditional: enabled when
CaBundleSecretName is set on the OpenStackClient (indicating TLS is
active in the cluster via the OpenStackControlPlane).
When enabled, the OpenStackClient controller creates a cert-manager
Certificate using the existing rootca-internal issuer for the MCP
service endpoint. The resulting TLS cert/key are mounted into the
MCP sidecar container and referenced in the rhos-mcps config.yaml
via the new tls.ssl_certfile/ssl_keyfile fields. The assistant
controller switches resolved MCP URLs from http:// to https:// when
the referenced OpenStackClient has TLS enabled, and the existing
combined-ca-bundle mount provides the internal CA for verification.
The existing TLS between the MCP server sidecar and OpenStack services
(Keystone etc. via OS_CACERT/REQUESTS_CA_BUNDLE) is unchanged.
Also fixes the mcp-ca-bundle SubPath in the assistant pod from
"ca-bundle.crt" to "tls-ca-bundle.pem" to match the actual key
in the combined-ca-bundle secret.
Files changed:
- internal/controller/client/openstackclient_controller.go
- internal/openstackclient/funcs.go
- internal/controller/assistant/openstackassistant_controller.go
- internal/openstackassistant/funcs.go
- internal/openstackassistant/funcs_test.go1 parent d74b21e commit 4528acc
5 files changed
Lines changed: 122 additions & 12 deletions
File tree
- internal
- controller
- assistant
- client
- openstackassistant
- openstackclient
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
331 | 335 | | |
332 | 336 | | |
333 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 53 | | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
| |||
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
329 | 373 | | |
330 | 374 | | |
331 | 375 | | |
| |||
342 | 386 | | |
343 | 387 | | |
344 | 388 | | |
345 | | - | |
| 389 | + | |
346 | 390 | | |
347 | 391 | | |
348 | 392 | | |
349 | 393 | | |
350 | 394 | | |
351 | 395 | | |
352 | 396 | | |
353 | | - | |
| 397 | + | |
354 | 398 | | |
355 | 399 | | |
356 | 400 | | |
| |||
403 | 447 | | |
404 | 448 | | |
405 | 449 | | |
406 | | - | |
| 450 | + | |
407 | 451 | | |
408 | 452 | | |
409 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | | - | |
| 244 | + | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
336 | 355 | | |
337 | 356 | | |
338 | 357 | | |
| |||
358 | 377 | | |
359 | 378 | | |
360 | 379 | | |
361 | | - | |
| 380 | + | |
362 | 381 | | |
363 | 382 | | |
364 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
140 | 158 | | |
141 | 159 | | |
142 | 160 | | |
| |||
148 | 166 | | |
149 | 167 | | |
150 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
151 | 181 | | |
152 | 182 | | |
153 | 183 | | |
| |||
190 | 220 | | |
191 | 221 | | |
192 | 222 | | |
193 | | - | |
| 223 | + | |
194 | 224 | | |
195 | 225 | | |
196 | 226 | | |
197 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
198 | 240 | | |
199 | 241 | | |
200 | 242 | | |
| |||
206 | 248 | | |
207 | 249 | | |
208 | 250 | | |
209 | | - | |
210 | | - | |
| 251 | + | |
| 252 | + | |
211 | 253 | | |
212 | 254 | | |
213 | 255 | | |
| |||
0 commit comments