From 11f34051de80d175be2f974b5e71f456c7485c7c Mon Sep 17 00:00:00 2001 From: Simon Scatton Date: Fri, 20 Nov 2026 10:31:21 +0100 Subject: [PATCH 1/3] chore(images): default released images to quay.io/ai-openshell Released gateway, supervisor and sandbox images move from ghcr.io/nvidia/openshell to quay.io/ai-openshell with the repository transfer. Point the gateway's built-in image defaults and the Helm chart's image values at Quay. The chart now splits the reference as registry quay.io and repository ai-openshell/, so a path-preserving mirror only needs global.image.registry. The chart helpers that mirror the gateway's built-in defaults change in the same commit as the Rust constants, so Helm keeps omitting sandbox_runtime_image only when it matches what the gateway would pick on its own. Refs #4554 Signed-off-by: Simon Scatton --- crates/openshell-core/src/config.rs | 8 ++++---- crates/openshell-driver-docker/src/tests.rs | 14 +++++++------- crates/openshell-driver-podman/src/driver.rs | 12 +++++------- crates/openshell-server/src/config_file.rs | 6 +++--- deploy/helm/openshell/README.md | 8 ++++---- deploy/helm/openshell/templates/_helpers.tpl | 4 ++-- .../helm/openshell/tests/gateway_config_test.yaml | 10 +++++----- .../helm/openshell/tests/version_labels_test.yaml | 8 ++++---- deploy/helm/openshell/values.yaml | 8 ++++---- 9 files changed, 38 insertions(+), 40 deletions(-) diff --git a/crates/openshell-core/src/config.rs b/crates/openshell-core/src/config.rs index d1d1d87ccb..d6c7f9e57d 100644 --- a/crates/openshell-core/src/config.rs +++ b/crates/openshell-core/src/config.rs @@ -156,10 +156,10 @@ impl FromStr for PolicyValidationFailureMode { } /// Default OCI repository for the supervisor image (no tag). -pub const DEFAULT_SUPERVISOR_IMAGE_REPO: &str = "ghcr.io/nvidia/openshell/supervisor"; +pub const DEFAULT_SUPERVISOR_IMAGE_REPO: &str = "quay.io/ai-openshell/supervisor"; /// Default OCI repository for the sandbox runtime image (no tag). -pub const DEFAULT_SANDBOX_RUNTIME_IMAGE_REPO: &str = "ghcr.io/nvidia/openshell/sandbox"; +pub const DEFAULT_SANDBOX_RUNTIME_IMAGE_REPO: &str = "quay.io/ai-openshell/sandbox"; /// Process-level default for the trusted sandbox runtime image. pub const SANDBOX_RUNTIME_IMAGE_ENV: &str = "OPENSHELL_SANDBOX_RUNTIME_IMAGE"; @@ -2207,12 +2207,12 @@ mod tests { fn default_supervisor_image_is_version_pinned() { use super::{compiled_sandbox_runtime_image, compiled_supervisor_image}; let image = compiled_supervisor_image(); - assert!(image.starts_with("ghcr.io/nvidia/openshell/supervisor:")); + assert!(image.starts_with("quay.io/ai-openshell/supervisor:")); let tag = image.rsplit_once(':').unwrap().1; assert!(!tag.is_empty()); let sandbox_image = compiled_sandbox_runtime_image(); - assert!(sandbox_image.starts_with("ghcr.io/nvidia/openshell/sandbox:")); + assert!(sandbox_image.starts_with("quay.io/ai-openshell/sandbox:")); let sandbox_tag = sandbox_image.rsplit_once(':').unwrap().1; assert!(!sandbox_tag.is_empty()); } diff --git a/crates/openshell-driver-docker/src/tests.rs b/crates/openshell-driver-docker/src/tests.rs index 40972a0c79..629390e769 100644 --- a/crates/openshell-driver-docker/src/tests.rs +++ b/crates/openshell-driver-docker/src/tests.rs @@ -4264,10 +4264,10 @@ fn docker_guest_tls_paths_allows_plain_http_without_tls_flags() { } #[test] -fn default_docker_supervisor_image_uses_nvidia_ghcr_repo() { +fn default_docker_supervisor_image_uses_quay_repo() { let image = openshell_core::config::default_supervisor_image(); assert!( - image.starts_with("ghcr.io/nvidia/openshell/supervisor:"), + image.starts_with("quay.io/ai-openshell/supervisor:"), "unexpected default image reference: {image}", ); } @@ -4300,19 +4300,19 @@ fn docker_supervisor_image_tag_sanitizes_build_metadata_for_docker() { #[test] fn docker_supervisor_image_refreshes_mutable_tags_only() { assert!(supervisor_image_should_refresh( - "ghcr.io/nvidia/openshell/supervisor:dev" + "quay.io/ai-openshell/supervisor:dev" )); assert!(supervisor_image_should_refresh( - "ghcr.io/nvidia/openshell/supervisor:latest" + "quay.io/ai-openshell/supervisor:latest" )); assert!(supervisor_image_should_refresh( - "ghcr.io/nvidia/openshell/supervisor" + "quay.io/ai-openshell/supervisor" )); assert!(!supervisor_image_should_refresh( - "ghcr.io/nvidia/openshell/supervisor:0.0.47-dev.13-g57b71c68f" + "quay.io/ai-openshell/supervisor:0.0.47-dev.13-g57b71c68f" )); assert!(!supervisor_image_should_refresh( - "ghcr.io/nvidia/openshell/supervisor@sha256:abc123" + "quay.io/ai-openshell/supervisor@sha256:abc123" )); } diff --git a/crates/openshell-driver-podman/src/driver.rs b/crates/openshell-driver-podman/src/driver.rs index 6bea5b7f16..284ef2c913 100644 --- a/crates/openshell-driver-podman/src/driver.rs +++ b/crates/openshell-driver-podman/src/driver.rs @@ -3871,25 +3871,23 @@ mod tests { #[test] fn supervisor_pull_policy_refreshes_mutable_tags_only() { assert_eq!( - runtime_image_pull_policy("ghcr.io/nvidia/openshell/supervisor:dev"), + runtime_image_pull_policy("quay.io/ai-openshell/supervisor:dev"), "newer" ); assert_eq!( - runtime_image_pull_policy("ghcr.io/nvidia/openshell/supervisor:latest"), + runtime_image_pull_policy("quay.io/ai-openshell/supervisor:latest"), "newer" ); assert_eq!( - runtime_image_pull_policy("ghcr.io/nvidia/openshell/supervisor"), + runtime_image_pull_policy("quay.io/ai-openshell/supervisor"), "newer" ); assert_eq!( - runtime_image_pull_policy( - "ghcr.io/nvidia/openshell/supervisor:0.0.47-dev.13-g57b71c68f" - ), + runtime_image_pull_policy("quay.io/ai-openshell/supervisor:0.0.47-dev.13-g57b71c68f"), "missing" ); assert_eq!( - runtime_image_pull_policy("ghcr.io/nvidia/openshell/supervisor@sha256:abc123"), + runtime_image_pull_policy("quay.io/ai-openshell/supervisor@sha256:abc123"), "missing" ); } diff --git a/crates/openshell-server/src/config_file.rs b/crates/openshell-server/src/config_file.rs index 68e3207ba5..b43f22231e 100644 --- a/crates/openshell-server/src/config_file.rs +++ b/crates/openshell-server/src/config_file.rs @@ -2102,8 +2102,8 @@ dangerously_allow_insecure_http = false [openshell.drivers.kubernetes] namespace = "agents" -default_image = "ghcr.io/nvidia/openshell/sandbox:latest" -supervisor_image = "ghcr.io/nvidia/openshell/supervisor:latest" +default_image = "quay.io/ai-openshell/sandbox:latest" +supervisor_image = "quay.io/ai-openshell/supervisor:latest" client_tls_secret_name = "openshell-sandbox-tls" service_account_name = "openshell-sandbox" grpc_endpoint = "https://openshell-gateway.agents.svc:8080" @@ -2153,7 +2153,7 @@ namespace = "agents" kubernetes .get("default_image") .and_then(toml::Value::as_str), - Some("ghcr.io/nvidia/openshell/sandbox:latest") + Some("quay.io/ai-openshell/sandbox:latest") ); assert!( file.openshell diff --git a/deploy/helm/openshell/README.md b/deploy/helm/openshell/README.md index 92fc803b1d..cf02aed8f4 100644 --- a/deploy/helm/openshell/README.md +++ b/deploy/helm/openshell/README.md @@ -635,13 +635,13 @@ for peer identity policies, multi-node registrations, and authorization. | gateway.image.digest | string | `""` | Gateway image digest. When set, this takes precedence over tag. | | gateway.image.pullPolicy | string | `nil` | Gateway image pull policy. Empty uses global.image.pullPolicy. | | gateway.image.registry | string | `""` | Gateway image registry. Empty uses global.image.registry. | -| gateway.image.repository | string | `"openshell/gateway"` | Gateway image repository. | +| gateway.image.repository | string | `"ai-openshell/gateway"` | Gateway image repository. | | gateway.image.tag | string | `""` | Gateway image tag. Defaults to the chart appVersion when empty. | | gateway.listenAddress | string | `"0.0.0.0"` | Gateway listener IP. Use `::` for IPv6. | | gatewayConfig | object | `{"openshell":{"version":2},"openshell.gateway":{"enable_gateway_service_routing":false}}` | Non-secret gateway application configuration. Top-level keys name TOML tables and are rendered into the mounted gateway.toml file. Kubernetes resource inputs remain outside this map; template expressions derive the corresponding runtime values from their resource owner. | | gatewayConfig."openshell.gateway".enable_gateway_service_routing | bool | `false` | Opt in to gateway-mediated sandbox service URLs and forwarding. Disabled for Kubernetes; configure application-listener ingress or explicitly enable this path. | | global.image.pullPolicy | string | `"IfNotPresent"` | Shared OpenShell image pull policy. Individual image pull policies take precedence. | -| global.image.registry | string | `"ghcr.io/nvidia"` | Shared OpenShell image registry. Individual image registries take precedence. | +| global.image.registry | string | `"quay.io"` | Shared OpenShell image registry. Individual image registries take precedence. | | global.image.tag | string | `""` | Shared OpenShell image tag. Defaults to the chart appVersion when empty. | | grpcRoute.backendTLSPolicy.caCertificateConfigMapName | string | `""` | Name of the ConfigMap containing the CA certificate (key: ca.crt) used to validate the gateway pod's TLS certificate. Defaults to `-backend-ca` when empty. The certgen hook auto-creates this: with pkiInitJob (default), immediately on install/upgrade; with cert-manager, the hook polls for pkiInitJob.timeoutSeconds seconds waiting for cert-manager to issue the server certificate, then creates the ConfigMap. A single install usually succeeds; if cert-manager takes longer, increase pkiInitJob.timeoutSeconds. By default (pkiInitJob.failOnTimeout=true), the install fails if the timeout is reached; set failOnTimeout=false to allow the install to succeed and run `helm upgrade` after the certificate is issued. | | grpcRoute.backendTLSPolicy.enabled | bool | `false` | Create a BackendTLSPolicy resource for end-to-end TLS between the Gateway proxy and the OpenShell gateway pod. The traffic flow is: client → HTTPS → Gateway (terminate) → TLS (re-encrypt) → gateway pod. Requires server.disableTls=false and server.tls.enableMtls=false. The certgen hook auto-creates the backend CA ConfigMap. | @@ -710,7 +710,7 @@ for peer identity policies, multi-node registrations, and authorization. | sandboxRuntime.image.digest | string | `""` | Sandbox runtime image digest. When set, this takes precedence over tag. | | sandboxRuntime.image.pullPolicy | string | `nil` | Sandbox runtime image pull policy. Empty uses global.image.pullPolicy. | | sandboxRuntime.image.registry | string | `""` | Sandbox runtime image registry. Empty uses global.image.registry. | -| sandboxRuntime.image.repository | string | `"openshell/sandbox"` | Sandbox runtime image repository. | +| sandboxRuntime.image.repository | string | `"ai-openshell/sandbox"` | Sandbox runtime image repository. | | sandboxRuntime.image.tag | string | `""` | Sandbox runtime image tag. Defaults to the chart appVersion when empty. | | sandboxServiceAccount.annotations | object | `{}` | Annotations to add to the generated sandbox service account. | | sandboxServiceAccount.create | bool | `true` | Create a service account for sandbox pods. | @@ -816,7 +816,7 @@ for peer identity policies, multi-node registrations, and authorization. | supervisor.image.digest | string | `""` | Supervisor image digest. When set, this takes precedence over tag. | | supervisor.image.pullPolicy | string | `nil` | Supervisor image pull policy. Empty uses global.image.pullPolicy. Prefer always, if_not_present, or never; the chart also accepts legacy Kubernetes spellings Always, IfNotPresent, and Never. | | supervisor.image.registry | string | `""` | Supervisor image registry. Empty uses global.image.registry. | -| supervisor.image.repository | string | `"openshell/supervisor"` | Supervisor image repository. | +| supervisor.image.repository | string | `"ai-openshell/supervisor"` | Supervisor image repository. | | supervisor.image.tag | string | `""` | Supervisor image tag. Defaults to the chart appVersion when empty. | | supervisor.listenAddress | string | `"0.0.0.0"` | Shared supervisor listener IP. Use `::` for IPv6. | | supervisor.network.additionalCaConfigMapName | string | `""` | Name of an operator-owned ConfigMap with a `ca.crt` key containing additional destination CA certificates for sandbox supervisors. Empty disables additional destination trust. | diff --git a/deploy/helm/openshell/templates/_helpers.tpl b/deploy/helm/openshell/templates/_helpers.tpl index 975213633b..d174315813 100644 --- a/deploy/helm/openshell/templates/_helpers.tpl +++ b/deploy/helm/openshell/templates/_helpers.tpl @@ -191,7 +191,7 @@ Name of the gateway ClusterRoleBinding. {{/* Official sandbox runtime repository used by the gateway's built-in default. */}} {{- define "openshell.defaultSandboxRuntimeRepository" -}} -ghcr.io/nvidia/openshell/sandbox +quay.io/ai-openshell/sandbox {{- end }} {{/* Whether Helm must propagate a sandbox runtime image override. */}} @@ -744,7 +744,7 @@ absent fields so every chart consumer observes the same configuration. {{- end -}} {{- $legacySupervisor := .Values.supervisor.image | default dict -}} {{- $legacySupervisorImage := include "openshell.supervisorImage" . -}} -{{- $defaultSupervisorImage := printf "ghcr.io/nvidia/openshell/supervisor:%s" .Chart.AppVersion -}} +{{- $defaultSupervisorImage := printf "quay.io/ai-openshell/supervisor:%s" .Chart.AppVersion -}} {{- if and (ne $legacySupervisorImage $defaultSupervisorImage) (not (hasKey $kubernetes "supervisor_image")) -}} {{- $_ := set $kubernetes "supervisor_image" $legacySupervisorImage -}} {{- end -}} diff --git a/deploy/helm/openshell/tests/gateway_config_test.yaml b/deploy/helm/openshell/tests/gateway_config_test.yaml index de4ea98448..99538a7ffb 100644 --- a/deploy/helm/openshell/tests/gateway_config_test.yaml +++ b/deploy/helm/openshell/tests/gateway_config_test.yaml @@ -340,10 +340,10 @@ tests: asserts: - matchRegex: path: data["gateway.toml"] - pattern: 'supervisor_image\s*=\s*"registry\.example\.com/openshell/supervisor:v0\.1\.0"' + pattern: 'supervisor_image\s*=\s*"registry\.example\.com/ai-openshell/supervisor:v0\.1\.0"' - matchRegex: path: data["gateway.toml"] - pattern: 'sandbox_runtime_image\s*=\s*"registry\.example\.com/openshell/sandbox:v0\.1\.0"' + pattern: 'sandbox_runtime_image\s*=\s*"registry\.example\.com/ai-openshell/sandbox:v0\.1\.0"' - it: lets an individual registry override the global registry template: templates/statefulset.yaml @@ -365,7 +365,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: registry.example.com/openshell/gateway:v0.1.0 + value: registry.example.com/ai-openshell/gateway:v0.1.0 - it: defaults a repository-only sandbox image to latest template: templates/gateway-config.yaml @@ -946,7 +946,7 @@ tests: asserts: - matchRegex: path: data["gateway.toml"] - pattern: 'supervisor_image\s*=\s*"ghcr\.io/nvidia/openshell/supervisor:0\.0\.0"' + pattern: 'supervisor_image\s*=\s*"quay\.io/ai-openshell/supervisor:0\.0\.0"' - it: uses the gateway built-in sandbox runtime image by default template: templates/gateway-config.yaml @@ -995,7 +995,7 @@ tests: asserts: - matchRegex: path: data["gateway.toml"] - pattern: 'supervisor_image\s*=\s*"ghcr\.io/nvidia/openshell/supervisor:1\.2\.3"' + pattern: 'supervisor_image\s*=\s*"quay\.io/ai-openshell/supervisor:1\.2\.3"' - it: renders a supervisor repository override with the default chart tag template: templates/gateway-config.yaml diff --git a/deploy/helm/openshell/tests/version_labels_test.yaml b/deploy/helm/openshell/tests/version_labels_test.yaml index 57ff5d469a..5cc8d41f2a 100644 --- a/deploy/helm/openshell/tests/version_labels_test.yaml +++ b/deploy/helm/openshell/tests/version_labels_test.yaml @@ -95,7 +95,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: ghcr.io/nvidia/openshell/gateway:release-test + value: quay.io/ai-openshell/gateway:release-test - it: preserves digest precedence over a gateway tag for the workload template: templates/statefulset.yaml @@ -105,7 +105,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: ghcr.io/nvidia/openshell/gateway@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + value: quay.io/ai-openshell/gateway@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - it: preserves digest precedence over a gateway tag for the certgen Job template: templates/certgen.yaml @@ -116,11 +116,11 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: ghcr.io/nvidia/openshell/gateway@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + value: quay.io/ai-openshell/gateway@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - it: leaves the appVersion image fallback unchanged template: templates/statefulset.yaml asserts: - equal: path: spec.template.spec.containers[0].image - value: ghcr.io/nvidia/openshell/gateway:0.1.9+build.1 + value: quay.io/ai-openshell/gateway:0.1.9+build.1 diff --git a/deploy/helm/openshell/values.yaml b/deploy/helm/openshell/values.yaml index 5cfd50f99e..05aab6f705 100644 --- a/deploy/helm/openshell/values.yaml +++ b/deploy/helm/openshell/values.yaml @@ -10,7 +10,7 @@ replicaCount: 1 global: image: # -- Shared OpenShell image registry. Individual image registries take precedence. - registry: ghcr.io/nvidia + registry: quay.io # -- Shared OpenShell image tag. Defaults to the chart appVersion when empty. tag: "" # -- Shared OpenShell image pull policy. Individual image pull policies take precedence. @@ -32,7 +32,7 @@ gateway: # -- Gateway image registry. Empty uses global.image.registry. registry: "" # -- Gateway image repository. - repository: openshell/gateway + repository: ai-openshell/gateway # -- Gateway image pull policy. Empty uses global.image.pullPolicy. pullPolicy: null # -- Gateway image tag. Defaults to the chart appVersion when empty. @@ -48,7 +48,7 @@ sandboxRuntime: # -- Sandbox runtime image registry. Empty uses global.image.registry. registry: "" # -- Sandbox runtime image repository. - repository: openshell/sandbox + repository: ai-openshell/sandbox # -- Sandbox runtime image pull policy. Empty uses global.image.pullPolicy. pullPolicy: null # -- Sandbox runtime image tag. Defaults to the chart appVersion when empty. @@ -62,7 +62,7 @@ supervisor: # -- Supervisor image registry. Empty uses global.image.registry. registry: "" # -- Supervisor image repository. - repository: openshell/supervisor + repository: ai-openshell/supervisor # -- Supervisor image pull policy. Empty uses global.image.pullPolicy. # Prefer always, if_not_present, or never; the chart also accepts legacy # Kubernetes spellings Always, IfNotPresent, and Never. From b052ad6fdc6f6d65991c7e8492e49b998206f1cd Mon Sep 17 00:00:00 2001 From: Simon Scatton Date: Fri, 20 Nov 2026 10:32:02 +0100 Subject: [PATCH 2/3] chore(helm): rename the gateway chart to openshell The chart is published to oci://quay.io/ai-openshell/charts/openshell after the repository transfer, and Helm derives the OCI artifact name from the chart name. Rename the chart from helm-chart to openshell and point the install instructions at the new location. values.yaml sets nameOverride to openshell, so resource names and selectors do not depend on the chart name. Only the helm.sh/chart label changes, which rolls the gateway pods once through the config checksum. Refs #4554 Signed-off-by: Simon Scatton --- deploy/helm/openshell/Chart.yaml | 4 ++-- deploy/helm/openshell/README.md | 16 ++++++++-------- deploy/helm/openshell/README.md.gotmpl | 16 ++++++++-------- .../openshell/ci/values-namespace-admin.yaml | 2 +- tasks/scripts/trivy-scan-test.sh | 9 +++++++++ tasks/scripts/trivy-scan.sh | 17 ++++++++++++----- tests/tmachine/config.nix | 2 +- 7 files changed, 41 insertions(+), 25 deletions(-) diff --git a/deploy/helm/openshell/Chart.yaml b/deploy/helm/openshell/Chart.yaml index 7b3a5c60d5..04d94655c5 100644 --- a/deploy/helm/openshell/Chart.yaml +++ b/deploy/helm/openshell/Chart.yaml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: Apache-2.0 apiVersion: v2 -# Chart name determines the OCI image name: ghcr.io/nvidia/openshell/helm-chart: -name: helm-chart +# Chart name determines the OCI artifact name: quay.io/ai-openshell/charts/openshell: +name: openshell description: runtime environment for autonomous agents type: application # version and appVersion are patched to the release semver by CI before helm package. diff --git a/deploy/helm/openshell/README.md b/deploy/helm/openshell/README.md index cf02aed8f4..6bb58c1e76 100644 --- a/deploy/helm/openshell/README.md +++ b/deploy/helm/openshell/README.md @@ -7,7 +7,7 @@ Edit README.md.gotmpl and values.yaml, then run `mise run helm:docs`. > **Experimental** - the Kubernetes deployment path is under active development. Expect rough edges and breaking changes. -This chart deploys the OpenShell gateway into a Kubernetes cluster. It is published as an OCI artifact to GHCR at `oci://ghcr.io/nvidia/openshell/helm-chart`. +This chart deploys the OpenShell gateway into a Kubernetes cluster. It is published as an OCI artifact to Quay at `oci://quay.io/ai-openshell/charts/openshell`. By default, this chart also creates the namespace-scoped resources needed by sandboxes. For a shared-gateway deployment, install it with @@ -52,7 +52,7 @@ A cluster-admin applies the cluster-scoped objects once per gateway ServiceAccount, rendered from the same values the release uses: ```shell -helm template openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm template openshell oci://quay.io/ai-openshell/charts/openshell --version \ --namespace openshell -f my-values.yaml \ --set rbac.create=true \ --set rbac.clusterScoped.create=true \ @@ -66,7 +66,7 @@ objects omitted, using [`ci/values-namespace-admin.yaml`](ci/values-namespace-ad or the equivalent `--set`: ```shell -helm upgrade --install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm upgrade --install openshell oci://quay.io/ai-openshell/charts/openshell --version \ --namespace openshell -f my-values.yaml \ --set rbac.clusterScoped.create=false ``` @@ -99,7 +99,7 @@ With `rbac.create=false` the cluster-admin applies the namespaced RBAC too, adding it to the same render: ```shell -helm template openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm template openshell oci://quay.io/ai-openshell/charts/openshell --version \ --namespace openshell -f my-values.yaml \ --set rbac.create=true \ --set rbac.clusterScoped.create=true \ @@ -166,7 +166,7 @@ where Helm cannot discover cluster APIs. ## Install on Kubernetes ```shell -helm install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version +helm install openshell oci://quay.io/ai-openshell/charts/openshell --version ``` ## Install on OpenShift @@ -178,7 +178,7 @@ See the full [OpenShift install guide](https://docs.nvidia.com/openshell/latest/ oc create ns openshell # Deploy openshell with overrides to allow SCC assignment of fsGroup and runAsUser for the gateway -helm install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version -n openshell \ +helm install openshell oci://quay.io/ai-openshell/charts/openshell --version -n openshell \ --set server.disableTls=true \ --set podSecurityContext.fsGroup=null \ --set securityContext.runAsUser=null @@ -364,7 +364,7 @@ recreate the StatefulSet so its template matches: kubectl -n openshell patch pvc openshell-data-openshell-0 \ -p '{"spec":{"resources":{"requests":{"storage":"20Gi"}}}}' kubectl -n openshell delete statefulset openshell --cascade=orphan -helm upgrade openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm upgrade openshell oci://quay.io/ai-openshell/charts/openshell --version \ --reuse-values -n openshell --set server.dataStorageSize=20Gi ``` @@ -389,7 +389,7 @@ kubectl create secret generic my-pg-credentials -n openshell \ Then install the chart pointing at that Secret: ```bash -helm install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm install openshell oci://quay.io/ai-openshell/charts/openshell --version \ -n openshell \ --set workload.kind=deployment \ --set server.externalDbSecret=my-pg-credentials diff --git a/deploy/helm/openshell/README.md.gotmpl b/deploy/helm/openshell/README.md.gotmpl index 24f531a74a..d0a9441811 100644 --- a/deploy/helm/openshell/README.md.gotmpl +++ b/deploy/helm/openshell/README.md.gotmpl @@ -7,7 +7,7 @@ Edit README.md.gotmpl and values.yaml, then run `mise run helm:docs`. > **Experimental** - the Kubernetes deployment path is under active development. Expect rough edges and breaking changes. -This chart deploys the OpenShell gateway into a Kubernetes cluster. It is published as an OCI artifact to GHCR at `oci://ghcr.io/nvidia/openshell/helm-chart`. +This chart deploys the OpenShell gateway into a Kubernetes cluster. It is published as an OCI artifact to Quay at `oci://quay.io/ai-openshell/charts/openshell`. By default, this chart also creates the namespace-scoped resources needed by sandboxes. For a shared-gateway deployment, install it with @@ -52,7 +52,7 @@ A cluster-admin applies the cluster-scoped objects once per gateway ServiceAccount, rendered from the same values the release uses: ```shell -helm template openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm template openshell oci://quay.io/ai-openshell/charts/openshell --version \ --namespace openshell -f my-values.yaml \ --set rbac.create=true \ --set rbac.clusterScoped.create=true \ @@ -66,7 +66,7 @@ objects omitted, using [`ci/values-namespace-admin.yaml`](ci/values-namespace-ad or the equivalent `--set`: ```shell -helm upgrade --install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm upgrade --install openshell oci://quay.io/ai-openshell/charts/openshell --version \ --namespace openshell -f my-values.yaml \ --set rbac.clusterScoped.create=false ``` @@ -99,7 +99,7 @@ With `rbac.create=false` the cluster-admin applies the namespaced RBAC too, adding it to the same render: ```shell -helm template openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm template openshell oci://quay.io/ai-openshell/charts/openshell --version \ --namespace openshell -f my-values.yaml \ --set rbac.create=true \ --set rbac.clusterScoped.create=true \ @@ -167,7 +167,7 @@ where Helm cannot discover cluster APIs. ## Install on Kubernetes ```shell -helm install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version +helm install openshell oci://quay.io/ai-openshell/charts/openshell --version ``` ## Install on OpenShift @@ -179,7 +179,7 @@ See the full [OpenShift install guide](https://docs.nvidia.com/openshell/latest/ oc create ns openshell # Deploy openshell with overrides to allow SCC assignment of fsGroup and runAsUser for the gateway -helm install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version -n openshell \ +helm install openshell oci://quay.io/ai-openshell/charts/openshell --version -n openshell \ --set server.disableTls=true \ --set podSecurityContext.fsGroup=null \ --set securityContext.runAsUser=null @@ -365,7 +365,7 @@ recreate the StatefulSet so its template matches: kubectl -n openshell patch pvc openshell-data-openshell-0 \ -p '{"spec":{"resources":{"requests":{"storage":"20Gi"}}}}' kubectl -n openshell delete statefulset openshell --cascade=orphan -helm upgrade openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm upgrade openshell oci://quay.io/ai-openshell/charts/openshell --version \ --reuse-values -n openshell --set server.dataStorageSize=20Gi ``` @@ -390,7 +390,7 @@ kubectl create secret generic my-pg-credentials -n openshell \ Then install the chart pointing at that Secret: ```bash -helm install openshell oci://ghcr.io/nvidia/openshell/helm-chart --version \ +helm install openshell oci://quay.io/ai-openshell/charts/openshell --version \ -n openshell \ --set workload.kind=deployment \ --set server.externalDbSecret=my-pg-credentials diff --git a/deploy/helm/openshell/ci/values-namespace-admin.yaml b/deploy/helm/openshell/ci/values-namespace-admin.yaml index 7326be7328..3ca4963ead 100644 --- a/deploy/helm/openshell/ci/values-namespace-admin.yaml +++ b/deploy/helm/openshell/ci/values-namespace-admin.yaml @@ -9,7 +9,7 @@ # # Generate the cluster-scoped objects for the cluster-admin step from the same # release values, then apply them as cluster-admin: -# helm template openshell oci://ghcr.io/nvidia/openshell/helm-chart \ +# helm template openshell oci://quay.io/ai-openshell/charts/openshell \ # --version --namespace openshell -f my-values.yaml \ # --set rbac.create=true \ # --set rbac.clusterScoped.create=true \ diff --git a/tasks/scripts/trivy-scan-test.sh b/tasks/scripts/trivy-scan-test.sh index 6fe7f94c7d..7cfccd516b 100755 --- a/tasks/scripts/trivy-scan-test.sh +++ b/tasks/scripts/trivy-scan-test.sh @@ -222,6 +222,15 @@ jq -se ' jq -se 'length == 3' "${TMP_DIR}/scan-reports/"config-packaged-*.json >/dev/null test -z "$(find "${TMP_DIR}/scan-reports" -name '*.sarif' -print -quit)" +expect_status 0 "scan a chart published under its current name" \ + env TRIVY_REPORT_DIR="${TMP_DIR}/renamed-chart" "${SCANNER}" config \ + --chart-ref oci://registry-a.example/charts/openshell:1.2.0 +jq -se 'length == 1' "${TMP_DIR}/renamed-chart/"config-packaged-*.json >/dev/null + +expect_status 2 "reject a chart with no local source" \ + env TRIVY_REPORT_DIR="${TMP_DIR}/unknown-chart" "${SCANNER}" config \ + --chart-ref oci://registry-a.example/charts/not-a-chart:1.0.0 + expect_status 0 "retain image registry, path and platform identity" \ env TRIVY_REPORT_DIR="${TMP_DIR}/images" "${SCANNER}" images \ registry-a.example/ns/image:dev registry-b.example/ns/image:dev \ diff --git a/tasks/scripts/trivy-scan.sh b/tasks/scripts/trivy-scan.sh index fbfe6d47c1..aa9ad58b97 100755 --- a/tasks/scripts/trivy-scan.sh +++ b/tasks/scripts/trivy-scan.sh @@ -18,8 +18,13 @@ REPORT_DIR="${TRIVY_REPORT_DIR:-reports/trivy}" IGNORE_UNFIXED="${TRIVY_IGNORE_UNFIXED:-true}" PLATFORMS="${TRIVY_PLATFORMS:-linux/amd64 linux/arm64}" -# Disable cluster discovery while rendering charts offline. -PREFLIGHT_OFF=(--helm-set agentSandbox.preflight.enabled=false) +# Disable cluster discovery while rendering charts offline. Trivy uses the +# chart name as the release name, so pin resource names: findings name the +# rendered resources, and a chart rename must not make old findings look new. +HELM_SCAN_SETS=( + --helm-set agentSandbox.preflight.enabled=false + --helm-set fullnameOverride=openshell +) # These Dockerfiles do not produce release runtime images. SKIP_DOCKERFILES=( @@ -108,7 +113,7 @@ scan() { scan_config() { scan config config-static deploy/ "${SKIP_DOCKERFILES[@]}" \ --skip-dirs deploy/helm deploy - scan config config-defaults deploy/helm/ "${PREFLIGHT_OFF[@]}" deploy/helm + scan config config-defaults deploy/helm/ "${HELM_SCAN_SETS[@]}" deploy/helm local values fixture for fixture in "${HELM_PROFILES[@]}"; do @@ -121,7 +126,7 @@ scan_config() { return 2 fi scan config "config-fixture-${fixture}" deploy/helm/openshell/ \ - "${PREFLIGHT_OFF[@]}" --helm-values "${values}" deploy/helm/openshell + "${HELM_SCAN_SETS[@]}" --helm-values "${values}" deploy/helm/openshell done } @@ -143,6 +148,8 @@ scan_packaged_chart() { local repo chart_name chart_dir="" candidate dir repo="${ref%:*}" chart_name="${repo##*/}" + # Releases before the rename published the gateway chart as helm-chart. + [ "${chart_name}" = helm-chart ] && chart_name=openshell for candidate in deploy/helm/*/; do [ -f "${candidate}Chart.yaml" ] || continue [ "$(sed -n 's/^name:[[:space:]]*//p' "${candidate}Chart.yaml" | head -1)" \ @@ -160,7 +167,7 @@ scan_packaged_chart() { helm pull "${repo}" --version "${ref##*:}" --destination "${dir}" scan config "config-packaged-$(artifact_slug "${ref}")" "${chart_dir}" \ - "${PREFLIGHT_OFF[@]}" "$(find "${dir}" -name '*.tgz' -print -quit)" + "${HELM_SCAN_SETS[@]}" "$(find "${dir}" -name '*.tgz' -print -quit)" } scan_images() { diff --git a/tests/tmachine/config.nix b/tests/tmachine/config.nix index 6f3194cbe9..ed62c23eb6 100644 --- a/tests/tmachine/config.nix +++ b/tests/tmachine/config.nix @@ -30,7 +30,7 @@ let openshell_cli_binary = "../../artifacts/binaries/${muslTarget}/openshell"; openshell_e2e_python_image = e2ePythonImage; openshell_gateway_image = "../../artifacts/images/openshell-gateway-tmachine.tar"; - openshell_helm_chart = "../../artifacts/helm/helm-chart-0.0.0.tgz"; + openshell_helm_chart = "../../artifacts/helm/openshell-0.0.0.tgz"; openshell_sandbox_image = "../../artifacts/images/openshell-sandbox-tmachine.tar"; openshell_supervisor_image = "../../artifacts/images/openshell-supervisor-tmachine.tar"; }; From 80d33c31249575cbb06aa59188c8e5d96c67ba8b Mon Sep 17 00:00:00 2001 From: Simon Scatton Date: Fri, 20 Nov 2026 10:32:32 +0100 Subject: [PATCH 3/3] chore(deploy): pull released images from quay.io/ai-openshell Point the Docker Compose gateway image, the sample Docker gateway.toml and the k3s HelmChart manifest at quay.io/ai-openshell, where released images are published after the repository transfer. Refs #4554 Signed-off-by: Simon Scatton --- deploy/docker/docker-compose.yml | 2 +- deploy/docker/gateway.toml | 4 ++-- deploy/kube/manifests/openshell-helmchart.yaml | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index 6c5681c93a..1e5e766e9c 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -52,7 +52,7 @@ services: gateway: - image: &gateway-image ghcr.io/nvidia/openshell/gateway:${IMAGE_TAG:-latest} + image: &gateway-image quay.io/ai-openshell/gateway:${IMAGE_TAG:-latest} restart: unless-stopped depends_on: diff --git a/deploy/docker/gateway.toml b/deploy/docker/gateway.toml index eea0faa78d..d2dc51cea2 100644 --- a/deploy/docker/gateway.toml +++ b/deploy/docker/gateway.toml @@ -45,9 +45,9 @@ gateway_id = "openshell-docker" # Default image pulled for `openshell sandbox create` without --from. default_image = "nvcr.io/nvidia/base/ubuntu:24.04" # Sandbox runtime image from which the openshell-sandbox binary is extracted. -sandbox_runtime_image = "ghcr.io/nvidia/openshell/sandbox:latest" +sandbox_runtime_image = "quay.io/ai-openshell/sandbox:latest" # Image containing the external supervisor process. -supervisor_image = "ghcr.io/nvidia/openshell/supervisor:latest" +supervisor_image = "quay.io/ai-openshell/supervisor:latest" # Only pull images that are not already cached locally. image_pull_policy = "if_not_present" # Value assigned to the openshell.sandbox_namespace label on sandbox containers. diff --git a/deploy/kube/manifests/openshell-helmchart.yaml b/deploy/kube/manifests/openshell-helmchart.yaml index 8ab9d90597..2ab16d5f19 100644 --- a/deploy/kube/manifests/openshell-helmchart.yaml +++ b/deploy/kube/manifests/openshell-helmchart.yaml @@ -8,7 +8,7 @@ # The chart tarball is served from the k3s static file server at: # https:///static/charts/openshell-0.1.0.tgz # -# Component images are pulled at runtime from ghcr.io. +# Component images are pulled at runtime from quay.io. # Authentication is configured via /etc/rancher/k3s/registries.yaml # (containerd-level) and a Kubernetes imagePullSecret (pod-level), # both generated by the bootstrap process. @@ -26,15 +26,15 @@ spec: chartChecksum: __CHART_CHECKSUM__ global: image: - registry: ghcr.io/nvidia + registry: quay.io gateway: image: - repository: openshell/gateway + repository: ai-openshell/gateway tag: latest pullPolicy: __IMAGE_PULL_POLICY__ supervisor: image: - repository: openshell/supervisor + repository: ai-openshell/supervisor tag: latest sandbox: image: