Skip to content

feat(kubernetes): let OpenShift assign the managed gateway's UID - #14014

Merged
cv merged 4 commits into
v1from
fix/13828-openshift-chart-nulls
Nov 10, 2026
Merged

cv merged 4 commits into
v1from
fix/13828-openshift-chart-nulls

Conversation

@gaveezy

@gaveezy gaveezy commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

With runtime.provider: openshift, a managed gateway's chart values now set securityContext.runAsUser and podSecurityContext.fsGroup to null, as the chart's OpenShift install does, so OpenShift's restricted-v2 constraint assigns the gateway the namespace's first UID and group. NemoClaw no longer waits for, records, or checks the namespace's UID range.

Problem

On OpenShift, a managed gateway computed its own UID instead of leaving it to OpenShift (#13828):

  • After creating the namespace, authentication waited up to 30 seconds for openshift.io/sa.scc.uid-range. If it didn't appear, apply stopped with "OpenShift did not assign the namespace a UID range".
  • It took the range's first UID and supplemental group, recorded them in the receipt, and passed them to the chart through the auth resource's computed gateway_values output, which the Helm release waited for.
  • Every later refresh refused a namespace whose range had changed.

This repeats what restricted-v2 already does: it assigns those IDs to a pod that sets neither. The pinned chart (OpenShell 0.1.7) sets both to 1000, and its OpenShift install clears both with null so OpenShift can assign them. cv's review of #13080 puts this choice in the chart, not in NemoClaw.

Part of #13828, which stays open for the OpenShell request and the removal of openshift. Part of #13837.

Change

  • Chart values: with openshift, the gateway's literal chart values set securityContext.runAsUser and podSecurityContext.fsGroup to null. runAsNonRoot, the dropped capabilities, and seccomp stay. Kubernetes values don't change.
  • Removed:
    • the namespace annotation wait and its error
    • the receipt's namespaceIdentity and the range-change refusal
    • the gateway_values attribute of openshell_kubernetes_auth, so helm_release.gateway no longer depends on a computed value
  • Saved state: nothing migrates, since internal-docs/design/scope.md doesn't require compatibility with earlier state formats. An OpenShift receipt that holds namespaceIdentity no longer loads. OpenTofu state that still holds gateway_values should load: when a resource's schema version is unchanged, OpenTofu 1.12.12 removes attributes the schema no longer has before decoding (internal/tofu/upgrade_resource_state.go). No run loaded such state.
  • Sandboxes: unchanged. OpenShell's driver still runs each sandbox as the range's first UID.
  • Live cases: a managed openshift gateway can't run on kind. It gets its fsGroup only from OpenShift, and without one it can't read its signing key, which the chart mounts with mode 0400. So the kind OpenShift case splits in two:
    • kind-openshift-oidc becomes kind-kubernetes-oidc, which keeps OIDC, the pull Secret and the namespace's UID range on kind with kubernetes. The kind module takes that range as a variable instead of reading the runtime provider.
    • The new openshift-oidc deploys the same agents with openshift, and its test file supplies no UID range, since OpenShift writes it. A case with an openshift gateway now gets an openshift placement that no CI job runs, instead of kind; the live test guide says how to run it by hand.
  • Contract test: the chart module's OpenShift scenario renders the pinned chart with the OpenShift values through the bundled Helm provider; the manifest has no runAsUser or fsGroup and keeps runAsNonRoot: true.
  • Not changed: runtime.provider: openshift stays the switch, and NemoClaw doesn't detect OpenShift. A new limits row says the switch is needed until the chart leaves these IDs to OpenShift by itself. Removing the value belongs to [OpenShift] Remove the null gateway UID and fsGroup override when the pinned OpenShell chart includes NVIDIA/OpenShell#5483 #13828's last step and to Select the gateway backend with one tagged target #13829.
  • Docs: the Kubernetes guide, limits, provider reference, architecture, and the integration, live test and testing guides follow.

Beyond CI

  • OpenShift Local: openshift-oidc passed by hand at 702fd76 on one OpenShift Local 4.22.14 node (CRC 2.64.0, linux/amd64), with Agent Sandbox 1.0.3: apply, a reply from each agent, an unchanged plan, and a destroy that kept only the gateway's storage, in 127 s.
    • OpenShift wrote the namespace's range, 1000680000/10000, and admitted every pod under restricted-v2.
    • The gateway, whose chart values set no UID or fsGroup, ran as UID 1000680000 with fsGroup 1000680000 and didn't restart. Both sandboxes and their supervisors ran as the same UID.
    • Only this one amd64 node has run it, and no CI job runs openshift-oidc.

With runtime.provider: openshift, the gateway's chart values now set
securityContext.runAsUser and podSecurityContext.fsGroup to null, as the
chart's OpenShift install does, so restricted-v2 assigns the namespace's
first UID and group. NemoClaw no longer waits for the namespace's UID
range, records it in the receipt, refuses a changed range, or passes it
through the auth resource's computed gateway_values output.

kind assigns no fsGroup, so a managed openshift gateway can't read its
0400 signing key there; the kind three-agent test now deploys with
kubernetes and still checks the UIDs OpenShell assigns from the range.

Part of #13828.
@copy-pr-bot

copy-pr-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown
Contributor

@wscurran wscurran added area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Oct 30, 2026
Resolve the conflicts with v1's moved tests and docs, and carry the
change into what v1 added since the last merge:

- The chart render test is now the openshell-provider contract module
  chart: its OpenShift scenario renders the nulls and expects no
  runAsUser or fsGroup, keeping runAsNonRoot.
- The kind three-agent test is now the kind-openshift-oidc HCL case. It
  deploys with kubernetes, and the kind module annotates the namespace
  with the UID range its test file passes instead of keying on the
  runtime provider.
- Drop gateway_values and openshift_wait from code v1 added: a provider
  unit test and hcl_live's Kubernetes operations.
- Follow the moved docs, link the chart README at the pinned OpenShell
  revision, and fix the limits link from the Kubernetes guide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@gaveezy
gaveezy marked this pull request as ready for review November 10, 2026 03:38
@gaveezy gaveezy self-assigned this Nov 10, 2026
kind can't run a managed openshift gateway: the gateway gets its fsGroup
only from OpenShift, and without one it can't read its signing key. So
split the kind OpenShift case:

- kind-openshift-oidc becomes kind-kubernetes-oidc. It keeps OIDC, the
  pull Secret and the namespace's UID range on kind, with the kubernetes
  profile.
- openshift-oidc deploys the same agents with the openshift profile, and
  its test file supplies no UID range, since OpenShift writes it.
- A case with an openshift gateway now gets the openshift placement, which
  no CI job runs, instead of kind; it runs by hand on OpenShift.
- The live test guide says how to run it, the placement table gains the
  openshift row, and the Kubernetes guide and limits record that it ran
  by hand on one OpenShift Local 4.22.14 node (linux/amd64).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Hai Nguyen <[email protected]>
@gaveezy

gaveezy commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author
Authoring session — opening
Field Status Value Evidence or limit
Harness unavailable - Not reported at the author's request.
Skills unavailable - Not reported at the author's request.
Instruction files unavailable - Not reported at the author's request.
Tool calls unavailable - Not reported at the author's request.
Session window unavailable - Not reported at the author's request.
Compactions unavailable - Not reported at the author's request.
Models unavailable - Not reported at the author's request.
Reasoning levels unavailable - Not reported at the author's request.

@gaveezy
gaveezy requested review from cv and sandl99 November 10, 2026 08:29
@cv
cv merged commit 02e69d1 into v1 Nov 10, 2026
118 of 122 checks passed
@cv
cv deleted the fix/13828-openshift-chart-nulls branch November 10, 2026 09:04
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants