From 6cbffb4d9d820620a49ebc2111f6ecc1709bd713 Mon Sep 17 00:00:00 2001 From: haseeb Date: Tue, 1 Dec 2026 21:41:41 +0530 Subject: [PATCH] Support verified HTTPS diagnostics uploads with additive trust provisioning --- components/understack-diagnostics/README.md | 9 ++- .../templates/nginx-config.yaml.tpl | 2 +- containers/ironic/Dockerfile | 6 +- docs/deploy-guide/components/diagnostics.md | 45 ++++++++++---- docs/operator-guide/diagnostics-archives.md | 3 + docs/operator-guide/hardware.md | 2 + .../supportassist-client-trust.md | 58 +++++++++++++++++++ properdocs.yml | 1 + 8 files changed, 108 insertions(+), 18 deletions(-) create mode 100644 docs/operator-guide/supportassist-client-trust.md diff --git a/components/understack-diagnostics/README.md b/components/understack-diagnostics/README.md index feb138a1e..0a560706a 100644 --- a/components/understack-diagnostics/README.md +++ b/components/understack-diagnostics/README.md @@ -1,16 +1,21 @@ # understack-diagnostics -NGINX that accepts diagnostic files uploaded by BMCs over HTTP PUT onto its own +NGINX that accepts diagnostic files uploaded by BMCs via the gateway onto its own volume, and serves them to NodeDash with basic auth. Each kind of file gets its own top-level directory; Dell SupportAssist collections use `supportassist`. | Port | Use | Access | |---|---|---| -| 8080 | `PUT /diagnostics///` | internal gateway only, no credentials | +| 8080 | `PUT /diagnostics///` | gateway only, no credentials | | 8081 | `GET /archives///` | HTTPS only, basic auth | Values: `storageClassName` and `storageSize`. Requires the Secret `diagnostics-download-auth` (key `htpasswd`) in the namespace. +TLS terminates at Envoy. Uploads use the diagnostics hostname, which each +iDRAC must resolve, with certificate verification enabled. The supplied gateway +listeners and routes require that hostname. Provision destination trust using +the [SupportAssist HTTPS trust procedure](../../docs/operator-guide/supportassist-client-trust.md). + Setup steps, routes and operations are in [docs/deploy-guide/components/diagnostics.md](../../docs/deploy-guide/components/diagnostics.md). diff --git a/components/understack-diagnostics/templates/nginx-config.yaml.tpl b/components/understack-diagnostics/templates/nginx-config.yaml.tpl index ced8b0df3..70fa49762 100644 --- a/components/understack-diagnostics/templates/nginx-config.yaml.tpl +++ b/components/understack-diagnostics/templates/nginx-config.yaml.tpl @@ -24,7 +24,7 @@ data: client_body_temp_path /data/.tmp; # Uploads: PUT /diagnostics/// -> /data//... - # Only the internal gateway route targets this listener. It has no + # Only the gateway upload route targets this listener. It has no # credentials: anything that can reach it can upload or overwrite. server { listen 8080; diff --git a/containers/ironic/Dockerfile b/containers/ironic/Dockerfile index 7f1e7e6bc..e2ba338fe 100644 --- a/containers/ironic/Dockerfile +++ b/containers/ironic/Dockerfile @@ -11,13 +11,13 @@ RUN apt-get update && \ && apt-get clean && rm -rf /var/lib/apt/lists/* # renovate: name=openstack/ironic repo=https://github.com/rackerlabs/ironic.git branch=understack/2026.2 -ARG IRONIC_GIT_REF=92c228dd439db107dc42c618b249a401c19a1b2a +ARG IRONIC_GIT_REF=984fe68bfdf1999a2e6e45e10a0c359bb2ac8021 ADD --keep-git-dir=true https://github.com/rackerlabs/ironic.git#${IRONIC_GIT_REF} /src/ironic RUN git -C /src/ironic fetch --unshallow --tags # renovate: name=openstack/sushy repo=https://github.com/rackerlabs/sushy.git branch=understack/2026.2 -ARG SUSHY_GIT_REF=3da92dc4026f2110377b83f4960140bf1abbd730 -ADD --keep-git-dir=true https://github.com/openstack/sushy.git#${SUSHY_GIT_REF} /src/sushy +ARG SUSHY_GIT_REF=0b85f54ce3d64282893e89778bfec59e1d90ef49 +ADD --keep-git-dir=true https://github.com/rackerlabs/sushy.git#${SUSHY_GIT_REF} /src/sushy RUN git -C /src/sushy fetch --unshallow --tags && \ sed -i '/sushy==.*/d' /upper-constraints.txt diff --git a/docs/deploy-guide/components/diagnostics.md b/docs/deploy-guide/components/diagnostics.md index b021be1e7..c86c6386d 100644 --- a/docs/deploy-guide/components/diagnostics.md +++ b/docs/deploy-guide/components/diagnostics.md @@ -11,13 +11,13 @@ deploy_overrides: --- # diagnostics -Receives diagnostic files that BMCs upload over HTTP and lets NodeDash read +Receives diagnostic files that BMCs upload through Envoy and lets NodeDash read them back. Each kind of file has its own top-level directory, named in the URL. Dell SupportAssist collections use `supportassist`. A new kind needs no chart change: the client uploads under a new name. ```text -iDRAC --PUT /diagnostics///--> internal gateway :80 +iDRAC --HTTPS PUT /diagnostics///--> gateway :443 --> Service diagnostics :8080 --> /data/// NodeDash --GET https://diagnostics./archives/// (basic auth) @@ -54,8 +54,9 @@ Set these up for each site: the Secret `diagnostics-download-auth` with one key, `htpasswd`, holding an NGINX password file. The pod does not start without it. 2. **Upload route.** In `$CLUSTER_NAME/envoy-configs/`, add an HTTPRoute on - the internal gateway that sends `PUT /diagnostics/` to Service - `diagnostics` port `8080`. Allow long requests (15 minutes on iad3-dev). + the diagnostics HTTPS listener that sends `PUT /diagnostics/` to Service + `diagnostics` port `8080`. TLS terminates at Envoy. Allow long requests + (15 minutes). ```yaml apiVersion: gateway.networking.k8s.io/v1 @@ -65,8 +66,11 @@ Set these up for each site: namespace: understack-diagnostics spec: parentRefs: - - name: internal-gateway + - name: external-gateway namespace: envoy-gateway + sectionName: diagnostics + hostnames: + - diagnostics..undercloud.rackspace.net rules: - matches: - path: {type: PathPrefix, value: /diagnostics/} @@ -76,8 +80,10 @@ Set these up for each site: timeouts: {request: 15m, backendRequest: 15m} ``` -3. **Read hostname.** In `$CLUSTER_NAME/envoy-configs/values.yaml`, add an - `fqdn` entry that publishes Service `diagnostics` port `8081`. +3. **Diagnostics hostname.** In `$CLUSTER_NAME/envoy-configs/values.yaml`, + add an `fqdn` entry that creates the HTTPS listener and publishes Service + `diagnostics` port `8081` for reads. The more specific PUT route above + sends uploads to port `8080` on the same hostname. ```yaml - fqdn: diagnostics..undercloud.rackspace.net @@ -89,8 +95,9 @@ Set these up for each site: 4. **Ironic share URL (SupportAssist).** In `$CLUSTER_NAME/ironic/values.yaml`, set `conf.ironic.drac.support_assist_share_url` to - `http:///diagnostics/supportassist/{node_uuid}/`. Use - the IP, not a hostname: many iDRACs have no DNS servers configured. + `https://diagnostics..undercloud.rackspace.net/diagnostics/supportassist/{node_uuid}/`. + Use the diagnostics certificate hostname. Each iDRAC must resolve that + hostname and reach the gateway on TCP 443. 5. **NodeDash (SupportAssist).** Set `SUPPORT_ASSIST_ARCHIVE_URL` to `https://diagnostics..undercloud.rackspace.net/archives/supportassist/` and give NodeDash the reader username and password. @@ -98,13 +105,27 @@ Set these up for each site: Optional: `$CLUSTER_NAME/understack-diagnostics/values.yaml` with `storageClassName` (default `openebs-lvm`) and `storageSize` (default `40Gi`). +### HTTPS trust + +Uploads use +`https://diagnostics..undercloud.rackspace.net/diagnostics/supportassist/{node_uuid}/` +with certificate verification enabled (`IgnoreCertWarning=Off`). Each iDRAC +must resolve the diagnostics hostname, reach the gateway on TCP 443, and trust +its certificate chain. The supplied gateway listeners and routes require the +diagnostics hostname; they do not support IP URLs. + +Before changing a site's Ironic share URL, follow the +[SupportAssist HTTPS trust procedure](../../operator-guide/supportassist-client-trust.md) +to provision and verify trust on each target iDRAC. + ## Behavior - **Uploads** need no credentials. A NetworkPolicy lets only the `envoy-gateway` namespace reach the pods, so anything that can reach the - internal route can upload or overwrite a file of any kind. Never expose that - route externally. Only `PUT` under `/diagnostics/` is accepted. It needs a - `Content-Length`, rejects query strings and allows up to 2 GiB. + upload route can upload or overwrite a file of any kind. HTTPS encrypts + uploads; it does not authenticate the uploader. Only `PUT` under + `/diagnostics/` is accepted. It + needs a `Content-Length`, rejects query strings and allows up to 2 GiB. - **Reads** need the reader password and allow only GET and HEAD. One credential reads every file of every kind, so keep it in NodeDash and away from browsers. diff --git a/docs/operator-guide/diagnostics-archives.md b/docs/operator-guide/diagnostics-archives.md index e49f46a43..481d770e3 100644 --- a/docs/operator-guide/diagnostics-archives.md +++ b/docs/operator-guide/diagnostics-archives.md @@ -13,6 +13,9 @@ is full. ![NodeDash SupportAssist tab with the node's archive list](images/diagnostics-archives.png) +For HTTPS uploads, provision the node's destination CA trust using the +[SupportAssist HTTPS trust procedure](supportassist-client-trust.md). + ## Setup ```bash diff --git a/docs/operator-guide/hardware.md b/docs/operator-guide/hardware.md index 28a39dcbd..62d81ae89 100644 --- a/docs/operator-guide/hardware.md +++ b/docs/operator-guide/hardware.md @@ -19,6 +19,8 @@ individual physical machine. Start with the task you need to perform: console. - [Server Firmware Updates](server-firmware-update.md) — update firmware from the operator side. +- [SupportAssist HTTPS Trust](supportassist-client-trust.md) — provision CA trust + for diagnostic uploads while preserving existing certificates. - [BMC Password](bmc-password.md) — retrieve the generated password for a server's management controller. diff --git a/docs/operator-guide/supportassist-client-trust.md b/docs/operator-guide/supportassist-client-trust.md new file mode 100644 index 000000000..b1170b790 --- /dev/null +++ b/docs/operator-guide/supportassist-client-trust.md @@ -0,0 +1,58 @@ +# SupportAssist HTTPS trust + +SupportAssist uploads use the site's diagnostics hostname with certificate +verification enabled. Provision and verify trust on each target iDRAC before +changing the site's upload URL to HTTPS. +OIDC is independent and uses its provider-specific HTTPS certificate; its +configuration is not an input to SupportAssist provisioning. + +## Provisioning a node + +Use an Ironic image containing the `management.add_client_trust_certificate` +clean/service step and Sushy's Dell certificate export/import operations. The +step retains every existing outbound trust entry, adds missing certificates, +and verifies readback. It does not modify other certificate types, client +identity certificates/private keys, or OIDC attributes. Collection never +installs certificates. + +Export and retain the existing outbound bundle before using a firmware version +that has not been tested for multi-PEM retention. A failed update attempts to +restore the original populated bundle; a reported restoration failure requires +operator recovery before continuing. + +Identify the trust root for the diagnostics certificate chain from the site's +Gateway TLS certificate configuration and the issuing CA's chain documentation. +Check that the served leaf certificate matches the diagnostics hostname and +that the Gateway serves the required intermediates. Obtain the root CA's public +PEM from the CA's authenticated distribution endpoint. The example below applies +to a Let's Encrypt chain rooted at ISRG Root X1; use the appropriate root for +the site's actual chain. + +With the selected site's OpenStack cloud credentials: + +```sh +curl --fail --show-error --location \ + https://letsencrypt.org/certs/isrgrootx1.pem -o diagnostics-ca.pem +jq -n --rawfile certificate diagnostics-ca.pem \ + '[{"interface":"management","step":"add_client_trust_certificate", + "args":{"certificate":$certificate}}]' > trust-steps.json +openstack baremetal node service --disable-ramdisk \ + --service-steps trust-steps.json NODE +``` + +Use the root CA appropriate for the site's served certificate chain; do not +import the Gateway's leaf certificate or private key. Service steps require an +active node. For a manageable node, use +`openstack baremetal node clean --disable-ramdisk --clean-steps trust-steps.json NODE`. +Wait for the step to finish successfully, then collect through NodeDash and +check the terminal job status and downloaded archive. An untrusted destination +fails the upload; do not disable verification to proceed. + +## Certificate updates + +Gateway leaf certificates can renew under the same trusted CA without changing +iDRAC trust. Before switching to a chain that requires a different root, add the +new CA with the same explicit step and verify an upload on the installed +firmware. Repeated installation is a no-op, and existing entries are retained +for other outbound HTTPS consumers. OIDC's provider-specific trust is managed +separately. Keep certificate verification and hostname matching enabled. diff --git a/properdocs.yml b/properdocs.yml index 15cd244c3..8c62f3347 100644 --- a/properdocs.yml +++ b/properdocs.yml @@ -198,6 +198,7 @@ nav: - operator-guide/flavors.md - operator-guide/server-firmware-update.md - operator-guide/diagnostics-archives.md + - operator-guide/supportassist-client-trust.md - operator-guide/bmc-password.md - 'Platform Services': - operator-guide/argocd-helm-chart.md