Commit Graph
97 Commits
Author SHA1 Message Date
Ben Kero 294b54f31f docs: list the limits of the Mokka demo (#2527)
* docs: list the limits of the Mokka demo

Add what the demo does not cover: NVSentinel's fault cycle, a node pool that reports Provisioned before its nodes join, and the lack of an AWS provider.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* docs: note the Mokka demo's CI scope and link the UUID issue

State that CI runs the Mokka checks only in pull-request runs on the Docker backend, and link the upstream issue for duplicate GPU UUIDs.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

---------

Signed-off-by: Benjamin Kero <bkero@nvidia.com>
2026-12-01 16:01:29 -07:00
Nathan Hensley 1a46559dd6 docs: say which published NVKE artifacts are private (#2531)
Signed-off-by: Nathan Hensley <nhensley@nvidia.com>
2026-12-01 13:25:20 -08:00
Terry Howe 47c3dc894c docs: stop scheduling compat-window removal for v0.25.0 (#2452)
* docs: stop scheduling compat-window removal for v0.25.0

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-11-24 09:30:51 -05:00
Dan Budris 3ec540d72a ci(labels): keep the repository's labels in .github/labels.yml (#2313)
* ci(labels): keep the repository's labels in .github/labels.yml

.github/labels.yml lists every label with its colour and description.
label-sync.yml makes the repository match it: on main, and on a manual
run, it creates a listed label that is missing and updates one whose
colour or description differs. It never deletes or renames a label; a
label that exists only in the UI is logged and left alone.

On a pull request it validates the file (unique names, six-digit hex
colours, descriptions of at most 100 characters) and logs what a merge
would change, without writing.

The file matches today's labels, plus descriptions for the area/*
labels, which had none. area/security and nvidia-runners keep empty
descriptions until their purpose is written down.

Signed-off-by: dbudris <dbudris@nvidia.com>

* ci(labels): validate pull requests read-only, and apply main in order

The pull request run held issues: write, and only the script's own event
check stopped it writing. Split the workflow into two jobs: validate runs
on a pull request with read-only permissions, and apply runs on main or a
manual run with write access.

apply uses one concurrency group that is never cancelled, so two quick
merges cannot finish out of order: the newer pending run replaces the
older one, and each run applies the whole file.

The shared logic moves to hack/label-sync.js, which both jobs load.

Signed-off-by: dbudris <dbudris@nvidia.com>

* ci(labels): add area/management-engine and label its pull requests

management-engine/ has CODEOWNERS owners but no area label, so its pull
requests and issues land unrouted. Add area/management-engine to
labels.yml, and a labeler rule for management-engine/** and its
workflow files, matching the paths CODEOWNERS gives the team.

Signed-off-by: dbudris <dbudris@nvidia.com>

* ci(labels): apply the current main's labels.yml, not the triggering commit's

A re-run of an older push kept that push's GITHUB_SHA, so apply checked
out and restored the older labels.yml over a newer one. apply now checks
out the default branch, so every run applies the latest file.

Signed-off-by: dbudris <dbudris@nvidia.com>

* ci(labels): drop the removed nktp/ paths from label descriptions

Signed-off-by: dbudris <dbudris@nvidia.com>

---------

Signed-off-by: dbudris <dbudris@nvidia.com>
2026-11-19 10:13:03 -07:00
Abhay Krishna 51dc0c4dae feat!: make apiAuth the only API authentication source (#1938)
apiAuth in nvke-controller-config becomes the only place the
controller reads its API authentication configuration from. This is
the breaking second step of phase 2.

- The controller refuses to start when AUTH_CONFIG_PATH is set, naming
  apiAuth as the replacement, and passes authn.Setup only the apiAuth
  section. authn.Load and Options.ConfigPath stay for
  management-engine's --auth-config.
- The chart no longer renders or mounts nvke-auth-config. It refuses
  apiAuth.configMap and an AUTH_CONFIG_PATH env entry by name, and a
  caBundlePath into the old mount, pointing at jwks.caBundle.
- apiAuth.permissive requires apiAuth.enabled, in the chart and at
  startup. Tilt passes it only with authentication on.
- controllerconfig, which decodes the apiAuth section, gets the
  decoder-strictness tests.
- nvkectl and the token scripts keep their fallback to the
  authentication ConfigMap for controllers from before this change.
- The e2e suite reads the enforcement mode from apiAuth alone.
- The pod template carries a checksum of nvke-controller-config, so an
  upgrade that changes apiAuth rolls the controller without Reloader,
  which the NVKE stack does not install.
- API authorization (#2125) counts authentication as on exactly when
  apiAuth.enabled is.

BREAKING CHANGE: AUTH_CONFIG_PATH and apiAuth.configMap are removed.
A site that managed its own authentication ConfigMap moves audiences
and issuers into apiAuth.config, CA bundles into jwks.caBundle, and
sets apiAuth.enabled. apiAuth.permissive without apiAuth.enabled is
refused. nvkectl older than the previous step gets 401.

Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com>
2026-11-17 13:25:25 -08:00
Ben Kero 998768c928 test(e2e): check mixed simulated GPU models across node pools (#2109)
* test(mokka-demo): add a mixed simulated GPU model scenario

hack/mokka-demo/mixed-gpus/run.sh runs demo.sh once per Mokka GPU
profile, each with its own node pool, node label and Mokka release, then
checks that each pool's nodes advertise their own GPU model and count and
that a pod selecting a model through nvidia.com/gpu.product lands on that
model's pool.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): check mixed simulated GPU models on CAPD core

CAPD core's two workers now present different Mokka profiles, gb300 and
h100, named by the value of the Mokka node label. The suite installs one
Mokka release per profile, checks each node advertises its profile's GPU
model and count, and runs a pod per model, selected by
nvidia.com/gpu.product, that must land on that model's nodes.

The mixed-gpus README states that no other node may present the same
models, and the demo README links it from its CI section.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): pass only Mokka nodes to the model check

mokkaModelProblems now takes the labeled nodes from mokkaNodes, as the
other Mokka helpers do, instead of filtering every node itself; connect
reads its profiles in a positive if.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): treat the gb300 and h100 pools alike

CAPD core's gb300 pool was the default-named worker while h100 got its own
name. Name both after their profile, mokka-gb300 and mokka-h100, and have
the unit tests' Mokka nodes carry either profile.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): compare GPU models the way GPU Feature Discovery names them

Both the e2e check and mixed-gpus/run.sh compared the selected model with
nvidia-smi's output by turning the label's dashes into spaces, which fails
for a model whose name has dashes, such as NVIDIA A100-SXM4-40GB. Turn
nvidia-smi's name into the label form instead.

run.sh's pod no longer pins namespace default, so it lands in the namespace
the kubectl commands that wait for, read and delete it use.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

---------

Signed-off-by: Benjamin Kero <bkero@nvidia.com>
2026-11-17 13:01:32 -07:00
Miancheng Lin 2f31480b36 refactor(management-engine): own its CRDs in the service.nvke.nvidia.com group (#2306)
* refactor(management-engine): generate and install its own release CRDs

management-engine keeps the MachineImage, ClusterRelease and NodePoolRelease
CRDs it generates in config/crd/bases and installs all six from its own
kustomization, instead of copying them into the nvke-crds chart directory that
the NVKE controller now owns. Its tests, envtest suites and public-gen read
only config/crd/bases, and chart-crds-check verifies each generator against
its own committed files, so the two sets are free to diverge.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* refactor(management-engine): ship the release CRDs in its own Helm chart

The management-engine chart carries the three release CRDs itself and drops its
dependency on the NVKE controller's nvke-crds chart, along with Chart.lock and
the chart-deps target.

The release CRDs stay opt-in, as nvke-crds.enabled was, because a cluster can
have only one Helm owner per CRD name. Set state.crds.releases.install=true to
install them; state.crds.install=false still delegates every CRD to another
installer.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* refactor(management-engine): move its API group to service.nvke.nvidia.com

management-engine's kinds move from internal.nvke.nvidia.com to
service.nvke.nvidia.com, so its CRDs are distinct from the NVKE controller's
MachineImage, ClusterRelease and NodePoolRelease, which keep the internal
group. CRDs, RBAC, registrations, samples and fixtures are regenerated for the
new group. Existing objects under the old group are not migrated.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* refactor(management-engine): drop state.crds.releases.install

The release CRDs no longer share names with the NVKE controller chart's, so
the two charts can be installed on one cluster. state.crds.install controls all
six CRDs again, as it did before the release CRDs became opt-in. The chart
tests and helm-installation docs follow.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

---------

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
2026-11-13 15:02:48 -08:00
Miancheng Lin d03bd02584 refactor(controller): own the release CRDs in controller/k8s-apis (#2305)
The NVKE controller and nvkectl no longer import MachineImage, ClusterRelease
and NodePoolRelease from management-engine. They are defined in a new module,
controller/k8s-apis/v1, which generates their CRDs, tests them, and ships them
through the nvke-crds chart, so the controller owns its release APIs end to
end and no longer depends on management-engine's Go types.

The API group is unchanged, so stored objects, RBAC and fixtures keep working.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
2026-11-13 12:19:29 -08:00
Vineeth Bandi c65ced3dca chore: remove the in-tree NKTP chart (#2300)
Signed-off-by: Vineeth Bandi <vbandi@nvidia.com>
2026-11-13 12:33:42 -06:00
Ben Kero 88081bc8b9 test(e2e): check GPU Operator on Mokka's simulated GPUs (#2106)
* test(mokka-demo): add a demo of simulated GPU nodes with Mokka

hack/mokka-demo/demo.sh gives an NVKE workload cluster GPU nodes without
GPUs and checks the GPU stack on them: a node pool whose nodeLabels
select Mokka (nvml-mock), Mokka on that pool only, GPU Operator with
values that let Mokka stand in for the driver, and a pod that requests
a GPU. It copies an existing worker pool's provider settings, reads the
workload cluster's kubeconfig through nvkectl, and prints PASS or FAIL
per check.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(mokka-demo): let the demo name its Mokka release

MOKKA_RELEASE sets the Helm release name for Mokka, so two runs with
different GPU profiles and node labels can share a cluster.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(mokka-demo): wait for the GPU Operator validator to finish

The validator's last step can still be running when a node first
advertises its GPUs, which failed the check on a node that passed
moments later.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(mokka-demo): tighten the validator check and the clean-up steps

The validator wait gets its own deadline instead of what the GPU wait
left, and passes only when every validator step exits 0: a termination
reason such as ContainerStatusUnknown is not success. The README's
clean-up now points kubectl and Helm at the workload cluster and uses
the configured Mokka release name.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* ci(mokka-demo): run the demo on a CPU runner

A new lane, mokka-demo-e2e.yml, runs hack/mokka-demo/demo.sh on a
linux-amd64-cpu16 runner, without GPUs. It brings up the CAPD stack with
the local entrypoint, which LOCAL_NKE_E2E_DEPLOY_ONLY now stops before
its suite, then hack/mokka-demo/ci.sh forwards the NVKE API, points
nvkectl at it, creates a CAPD workload cluster from
cli/examples/capd-cluster.yaml and runs the demo.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): run the Mokka checks as a CAPD entry

Replace the standalone Mokka lane (mokka-demo-e2e.yml, ci.sh and the
local entrypoint's LOCAL_NKE_E2E_DEPLOY_ONLY) with a "CAPD Mokka" entry
in the tenant table, so the checks run through the existing E2E
entrypoints and label filters.

The entry has one control-plane node and one worker pool whose node
labels select Mokka (nvml-mock). Its mokkaGPU validation installs Mokka
and GPU Operator with helm, then asserts the ClusterPolicy is ready,
exactly the labeled nodes advertise nvidia.com/gpu, the GPU Operator
validator's steps all exit 0 on each, and a pod limited to one GPU
lists one.

The entry carries the capd label, so full CAPD runs select it, and a
mokka label, which the pull-request mirror filter now adds: it costs
about six minutes on a CPU runner.

CAPD pools can now carry node labels. The GPU Operator values move into
the e2e module's testdata so the suite embeds them and demo.sh keeps
using the same file. The local entrypoint copies the host's helm into
its runner, as the CI entrypoint already does.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): run the Mokka checks on the CAPD core cluster

Drop the separate CAPD Mokka entry, which added a second cluster and about
six minutes to the pull-request lane. CAPD core's worker now carries the
Mokka label, so the checks add only their own two minutes and the lane's
label filter is unchanged.

Reuse gpuPod and sitePoll, wait at most five minutes per check, fix a
double count of the expected nodes after a failed connect, and turn off
dcgm-exporter, which nothing reads.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(e2e): ignore a validator pod being deleted; keep GPU Operator for other Mokka releases

A validator pod that is being deleted could pass the check while its
replacement is still running. The demo's clean-up removed GPU Operator
first, which takes GPUs away from any other Mokka release on the cluster;
it now goes last, with a note to keep it while another release remains.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

* test(mokka-demo): ignore a validator pod being deleted

As in the e2e check: a validator pod being deleted could pass the demo
while its replacement is still running.

Signed-off-by: Benjamin Kero <bkero@nvidia.com>

---------

Signed-off-by: Benjamin Kero <bkero@nvidia.com>
2026-11-13 08:49:48 -05:00
Mohamed Abrar S A 328bcc4696 ci: refresh CAPNICo CRD fixtures and declare darwin test in coverage waiver (#2224)
- Refresh CAPNICo CRD fixtures to match pinned v0.1.0 in controller/go.mod, resolving gofail-e2e fixture verification failures.
- Declare controller/nico-sim/internal/config in untested_packages in hack/coverage.sh for darwin-specific tests excluded from Linux default build.

Signed-off-by: ab-rar-6024 <samohamedabrar2005@gmail.com>
2026-11-12 15:03:36 -05:00
Alex Pelavin b594eaf4b7 ci: deprecate GitHub releases for subcomponents (#2112)
* ci: stop creating GitHub releases and remove the changelog

Publishing to GHCR, NVCR, S3 and the apt intake is unchanged. release.yml
now only builds nvkectl for the cli publishers. The agent, NKTP and os-image
release-page jobs, their checksums and attestations, verify-release-assets,
malware-backfill.yml, CHANGELOG.md and cliff.toml are removed, and the docs
no longer point at release downloads.

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>

* ci: remove what the GitHub release removal orphaned

ORAS_SHA256_AMD64 was read only by malware-backfill.yml, and os-image's
agent_version step output only fed the release body. Two comments still
described release-page behavior.

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>

* ci: rename release.yml to tag-publish.yml

It no longer creates releases. It gates every tag on the license checks,
builds nvkectl for the cli publishers and records which workflow
publishes each component tag.

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>

* ci: drop the CHANGELOG.md exclusion from removed-settings-check

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>

#2114 added the check while CHANGELOG.md still existed. It no longer does.

* docs: correct publication destinations, fork-tag behavior and stale download notes

- os-image tags put only the qcow2s on NVCR; the SBOMs, checksums and the
  checker go to S3.
- A fork tag publishes nothing: every publisher checks the repository ID.
- The custom-base-os cloud-init example does not install nvkectl.
- SECURITY.md and plan-installation.md still described GitHub release
  checksums and release pages.

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>

---------

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
2026-11-05 09:02:56 -08:00
Aaron Patten 55b2a0029a refactor(dev)!: remove the deprecated CWE_* and NKE_CONTROLLER_* setting names (#2114)
* refactor(dev)!: remove the deprecated CWE_* and NKE_CONTROLLER_* setting names

The controller's development, test and build settings read only their
NVKE_CONTROLLER_* names now. The CWE_* and NKE_CONTROLLER_* aliases,
deprecated since v0.23.0, are gone from the Makefiles, Tiltfiles, hack and
CI scripts, the e2e framework and tests, and the docs. So are CWE_IMAGE
(use CONTROLLER_IMAGE), the cwe_image key in tilt_config.json (use
nvke_controller_image), --cwe-api in get-kubeconfig.sh (use
--controller-api) and the cwe-name input of qualify-e2e.yml (use
controller-name). local-backend-e2e.sh reads LOCAL_NVKE_CONTROLLER_IMAGE
instead of LOCAL_CWE_IMAGE.

BREAKING CHANGE: a value set under an old name, in .env, .env.tilt,
tilt_config.json, a shell profile or a repository variable, is now ignored
without a warning. Rename CWE_X and NKE_CONTROLLER_X to NVKE_CONTROLLER_X,
except CWE_API (use NVKE_CONTROLLER_API_URL) and CWE_IMAGE in
make -C cli images (use CONTROLLER_IMAGE). Rename LOCAL_CWE_IMAGE to
LOCAL_NVKE_CONTROLLER_IMAGE and the cwe_image key to nvke_controller_image.
get-kubeconfig.sh rejects --cwe-api (use --controller-api), and
qualify-e2e.yml has no cwe-name input (use controller-name).

Signed-off-by: Aaron Patten <apatten@nvidia.com>

* ci: fail when a removed controller setting name comes back

make name-check, which the merge gate runs, now also runs
hack/removed-settings-check.py. It fails on any removed CWE_* or
NKE_CONTROLLER_* setting name, LOCAL_CWE_IMAGE, cwe_image, --cwe-api or
cwe-name in a tracked file, so a branch cut before the removal cannot bring
a reader of an old name back. CHANGELOG.md is not scanned, and two
look-alikes that are not controller settings are allowed by file.

Signed-off-by: Aaron Patten <apatten@nvidia.com>

---------

Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-11-04 12:29:02 -05:00
Terry Howe 64de058d13 ci: drop the dead nke-controller ghcr fallbacks and wait for the promoted image (#2066)
* ci: drop the dead nke-controller ghcr fallbacks and wait for the promoted image

The nke-controller, controller and pre-rename chart packages no longer exist on GHCR, so every fallback that probed them could only fail. chart-publish.yml raced image-nvcr.yml on the same tag push and failed when it looked for the image before Promote to GHCR had created it; it now waits up to 30 minutes for the image instead.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Warn instead of failing the backfill when a pre-rename chart version is absent from GHCR, and correct the chart-publish header that still said the cloud-workflow-engine and controller charts stay published.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Tolerate a missing controller image or chart in the malware backfill only for tags older than controller/v0.3.0-rc.1, the first release on GHCR under nvke-controller. For a current tag a miss is an outage or permission error and fails the scan instead of passing without it.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* docs: correct the nico overlay note on the pre-rename controller images

The nke/controller and nke-controller GHCR repositories no longer exist; the note said they stay in place.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

* chore: name the nvcr image manifest key in the allowlist note

image-nvcr.yml records the published digest under component
nke-controller. That key is read outside this repository, so it stays,
exactly as nke-controller-chart does. The allowlist comment covering the
token named only the docs record and the local build tags, which left a
reader unable to tell the kept key apart from an oversight.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-11-03 08:08:18 -07:00
nbhoomakkanavar fc47b612f5 ci(release): tag a given commit, bump only on feat or fix, and cut an RC after a beta qualifies (NKX-18675) (#1962)
* ci(release): tag a given commit, bump only on feat or fix, and cut an RC after a beta qualifies (NKX-18675)

nightly-beta-tag.yml takes a commit input on workflow_dispatch. The commit
is tagged as the next beta without checking its publishers, but it must be
on main, carry the beta publishers, and not already have a beta tag.

hack/next-tag.sh reads the version from the commit subjects since the
latest GA tag: a feat or a breaking change bumps the minor, a fix bumps the
patch. With neither it prints nothing and exits 3. The nightly then
succeeds with a "nothing releasable" message, and a commit given by hand
fails. It also no longer fails on bash 3.2, which cannot add to a quoted
number.

A new rc job runs when a Qualify e2e run completes. If the run was started
by a beta tag push, succeeded, was not a dry run, and qualified scope
golden-path at stage full, it tags the beta's commit as the next
vX.Y.Z-rc.N of the beta's version, which release.yml publishes as a
pre-release. It skips a commit that already has an RC and a version that
already has a GA tag. It pushes only while the NVKE_AUTO_RC repository
variable is true, and otherwise says what it would tag.

hack/test_next_tag.py tests the bump rules against fixture repositories,
and runs in the shellcheck job as make next-tag-test.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci(release): count BREAKING CHANGE footers when choosing the version bump

next-tag.sh read only the subjects, so a breaking change marked by a
BREAKING CHANGE footer alone, as 59936c13d is, counted as nothing
releasable. It now also reads the bodies for a BREAKING CHANGE or
BREAKING-CHANGE footer, which bumps the minor like a ! after the type.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* docs(release): say the automatic RC is an unsigned lightweight tag

RELEASE.md asks for a signed annotated tag and `git verify-tag`, and the
publication guide says to push an RC "the same way" as a release. The RC
that nightly-beta-tag.yml cuts from a qualified beta is a plain `git tag`,
like the betas, because the workflow has no key to sign with.

Both documents now say so: the automatic RC and the betas mark candidates
for qualification, not releases, and the signed annotated tag is for the
approved release the release owner creates.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci(release): ignore BREAKING CHANGE examples inside fenced code blocks

A commit that shows a BREAKING CHANGE footer in a fenced example, a docs
change for instance, was read as a breaking change: the next version bumped
the minor, or became releasable when nothing else was.

Lines inside a fenced code block no longer count, and each commit starts
outside a fence, so one left open cannot hide the next commit's footer. The
footer is still looked for on any line of the body rather than only in its
last paragraph. Git does not read BREAKING CHANGE as a trailer, so commit -s
puts the sign-off in a paragraph after it, and a squash merge joins every
commit's message into one body; none of the six most recent breaking-change
footers on main is in the last paragraph.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci(release): move RC promotion into its own workflow

The job that tags a qualified beta as a release candidate moves from
nightly-beta-tag.yml to rc-promotion.yml, so promotion and its gating can
grow on their own. The nightly workflow goes back to tagging betas, with
one concurrency group and no workflow_run trigger.

The job's steps are unchanged. Its condition drops the event-name check,
which the single trigger makes redundant, and gains a tag-name prefilter,
so no write token is minted for a run that is not a beta's. The check
step's pattern still decides. The publication guide names the new
workflow and says which runs never promote.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci(release): close a fenced block only on a matching fence

A fenced block ended on any line starting with three backticks or tildes,
so an example of a fence inside it, a four-backtick block quoting a
three-backtick one, a ~~~ line in a backtick block, or a ```text line,
ended it early. A BREAKING CHANGE line later in the example then counted.

As in CommonMark, a fence now closes only on the opener's character, at
least as many of it, with nothing after them.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci(release): do not read four-space indented code as a fence

A line indented four spaces or more is indented code in CommonMark, not a
fence. Read as one, an indented example of a fence opened a block that
nothing closed, and hid a real BREAKING CHANGE footer after it. A fence
line may now be indented at most three spaces.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* chore(release): move next-tag.sh and its tests to release/hack

release/ holds the tooling for release tagging, qualification and
promotion, and next-tag.sh decides the version every beta and release
candidate tag gets. Move it there with test_next_tag.py, point the
nightly, the RC promotion, the shellcheck job and make next-tag-test at
the new path, and list it in the release/README.md layout table.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

---------

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>
2026-10-30 17:51:28 +05:30
Terry Howe 3545d67a57 chore: name the release that removes the rename compat windows (#2034)
* chore: name the release that removes the rename compat windows

The launch rename said "for one release" three times and named no release,
so the four dual-accept windows had no removal date and were becoming
permanent by default.

All four windows landed on the v0.23.0 line, which is still in beta. None of
their fleet gates can be met yet: the release they provide compatibility for
has not shipped. So each window takes the comment path the issue allows,
naming v0.25.0 and the gate it waits on, rather than being removed now:

- node-agent JWT audience: gated on a fleet agent_version sweep
- reserved "nke:" OIDC prefix: gated on pruneLegacyRBAC across all 41 sites
- auth-config apiVersion: gated on an nke-auth-config ConfigMap sweep
- legacy metric series: gated on Mimir retention aging the series out

Only two allowlist entries die with their code, ^nke_controller_|^nke_auth_
and ^oidcPrefixNKE$; both now name v0.25.0. The audience and "nke:" entries
cover further live names (the NVKR artifact, the pruned nke:cwe objects) and
survive their windows, so their comments say which half is dated.

Also folds in the two cosmetic items from the close-out audit: a note on
NamespaceNVKESystem explaining why its value lags its name, and a separate
section for nke-stack and the Keycloak dev scaffolding, which are not names
an installed site persists and were never in the rename's scope.

No behaviour change.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Correct the stated reason the "nke:" reserved prefix waits on
pruneLegacyRBAC. ReservedIdentityPrefixes bounds OIDC usernamePrefix and
groupsPrefix and compiles into the tenant apiserver's CEL user-validation
rules; it does not reserve Role or ClusterRole names, so the claimed
ClusterRole collision with the pruned nke:cwe objects was not a real
mechanism. The two share a spelling, nothing more.

The gate itself stands, on the narrower ground that no platform-owned RBAC
should still carry the nke: name once a fleet-wide provider may mint nke:
usernames and groups. Also names the generated-config fixture that moves
with the removal.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

The node-agent audience window was gated on the wrong thing. The agent picks
its audience with --controller-audience, which defaults to the legacy value
and falls back to it when empty, and nodeAgentBootstrapFiles never passes the
flag. Nothing else in the tree sets it. So every TLS/JWT agent requests the
legacy audience whatever version it reports, and agent_version does not gate
this window at all. Removing it in v0.25.0 on the old reading would have
failed every TLS/JWT node closed.

State the real precondition instead: something has to select the renamed
audience, by the controller passing the flag or by the default flipping,
before the fleet can roll onto it and the window can close.

Also drop the hardcoded site count from the "nke:" gate; it goes stale and
this repository is public.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* docs: point the audience gate at its tracking issue

The gate described a precondition with nothing tracking it. Name #2039, which
covers having the controller select the renamed audience per node, and record
why flipping the agent default is not the alternative.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-29 16:48:58 -06:00
patelpayal 6209112477 fix(ci): drop the coverage waiver for the removed management-engine integration suite (#2033)
Signed-off-by: Payal Patel <payapatel@nvidia.com>
2026-10-29 11:44:05 -07:00
Terry Howe 8eed5173c8 feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller (#1889)
* feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller

This moves them, and with them the persisted identifiers a site carries:
the Helm release and its namespace, the database, and the Temporal
namespace and task queue.

In the three greenfield stacks: nameOverride, fullnameOverride,
namespaceOverride, serviceAccount.name, serviceMonitor.name,
appDb.dbName, the Temporal namespace and queue, the field managers and
the managed-by values, tracing.serviceName, and the objects the stacks
render around them -- the Namespace manifest, the Postgres CREATE
DATABASE, the SPIRE admin ID and ClusterSPIFFEID namespace selectors,
the auth-dev ConfigMap's namespace, the CAPD RBAC ClusterRole and its
subject, and the spire-client probe URL.

Consumers that move with it: controller/Tiltfile (release name,
namespace, SPIRE admin path and the string-matched resource names),
deploy/check-site.sh, the e2e site helpers and their collect script,
cli/internal/bootstrap/controllerdeploy (including the NodePort Service
nvke-controller-external), cli/internal/deploypath's admin path,
management-engine/hack/nvke-controller.sh, and the CI lane scripts.

The discovery paths search the new name first and keep the old one:
nvkectl's authConfigNamespaces, nvke-token.sh, nvke-auth-demo.sh and
dev-env-spire.sh now try nvke-controller, then nke-controller, then
cloud-workflow-engine. The reference health dashboard matches all three
workload names, and Tilt's preflight refuses to take over a cluster
that still runs the nke-controller release rather than failing later.

The published image keeps its name per #1554 decision 2, as do the
nke-controller-config ConfigMap and the nke-controller-chart release
artifact; hack/name-check-allowlist.txt now carries one entry per
reason rather than one blanket token.

Refs #1861, #1554, #1496, #1818

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Name nke-controller as the intermediate namespace in the authentication
docs, matching authConfigNamespaces, and restore the legacy node-agent
audience in the exchange mock's test.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(e2e): point the nico bootstrap lane at the nvke-controller namespace

The nico lane still asserted the tenant credentials Secret landed in
nke-controller, so both e2e (nico) jobs failed after the rename.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(deploy): carry the nvke-controller rename into the rebased files

The rebase onto main replayed the rename over two files that gained
nke-controller references after the branch was cut: the management-engine
dev overlay, which succeeds the hack script this branch had edited and
was removed in #1918, and an API-authentication example added in #1935.

Refs #1861

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Continue namespace discovery past a Forbidden lookup in nvke-token.sh and
nvke-auth-demo.sh. --ignore-not-found suppresses absence, not denial, so a
kubeconfig scoped to nke-controller alone died on the nvke-controller probe
before reaching the namespace it can read -- the migration case this branch
adds. Keep the first denial, try the remaining candidates, and fail with it
only when none was readable, since falling back to cloud-workflow-engine
needs a confirmed absence.

Refs #1861

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-29 08:17:40 -06:00
Terry Howe 589d922c83 feat(chart): make the tenant RBAC ConfigMap name a value and move it to nvke (#1891)
* feat(chart): make the tenant RBAC ConfigMap name a value and move it to nvke

The nke-rbac ConfigMap name was a literal in two templates and a compiled
constant in controller/internal/nvkerbac, so a site could not keep it while the
chart's defaults moved. rbacConfigMap.name now drives the ConfigMap, the Role
and RoleBinding that grant get on it, and that Role's resourceNames, and the
controller reads it from rbacConfigMapName in nvke-controller-config rather
than from the constant. The default is nvke-rbac; a site installed before the
value pins nke-rbac, which is also what the Go fallback resolves to, so a
binary upgrade alone never moves a site that has not pinned.

The Role's resourceNames is the entry that matters: a ConfigMap the Role does
not name renders clean, installs clean, and is then denied at reconcile time,
leaving tenant RBAC unapplied. check_pinnable_names now asserts all four
consumers plus the rendered config key follow the value together.

nvkerbac.Source carries the namespace and the name as one value, because a name
resolved against the wrong namespace silently reads nothing — and a missing
read degrades the reserved-subject control that stops a fleet-wide OIDC
provider claiming an NVKE identity.

Closes #1862

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(chart): follow rbacConfigMap.name in the RBAC and identity assertions

chart-rbac-check looked up a literal nke-rbac ConfigMap and failed once the
default moved. It asserts what the manifest grants, not what it is called, so
it now renders with rbacConfigMap.name set and resolves the ConfigMap by that;
moving the default again cannot break it.

chart-identity-assertions.py had the same literal in two scenario-scoped
places. Both passed only because the legacy scenario pins the old name and the
default scenario renders no RBAC ConfigMap at all, so the namespace and SPIFFE
subject checks silently skipped a default render. Both now read the scenario's
own name, and each scenario asserts rbacConfigMapName in its rendered config.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(chart): quote the rendered RBAC ConfigMap name

rbacConfigMap.name is operator-supplied, and a DNS-1123-valid name YAML 1.1
reads as another scalar type (n, y, true, off) rendered as a bare scalar: the
ConfigMap metadata.name and the Role resourceNames entry both became booleans
and the install failed. Quote both. The Role and RoleBinding names interpolate
after controller.fullname and a dash, so they are already strings.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-28 16:54:03 -04:00
Terry Howe a5f919dbc8 feat(ci): publish the controller image to GHCR as nvke-controller (#1950)
* feat(ci): publish the controller image to GHCR as nvke-controller

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-28 15:34:20 -04:00
Tjark Rasche 62d22e7dbb feat(qualification): add credential rotation evidence collector (#1380)
* feat(qualification): add credential rotation demo and evidence collector

Redistribute the reviewed five-scenario collector and all evidence fixes from cff67ff5, 2bc9fd9c, 65a1b2d1, 568b1104, 2fafa32c and d9542b83 onto the finished native guides layer. Preserve fresh matching metrics, scheduled due-subset outcomes, required check aggregation, the bounded in-flight observer join and single-operation manual audit contract.

Reference the separate immutable #1050 runbook rather than resubmitting it. Document inherited qualified-build, Kubernetes 1.34+, loaded-config/process-start and external-writer prerequisites. Offline validation does not qualify a deployment.

Closes #1348

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): accept an alert resolution received after the mutation started

The alert lane required the resolved receipt at or after the
collector-observed completion. RenewK8sCertsV2 renews control planes one
at a time, so when the alert node renews before the last node, its
inspection can resolve the alert while later nodes are still renewing.
Alertmanager then delivers the single resolved notification before
completion, nothing re-fires, and the lane failed with
notification_delivery_incomplete after the forced renewal had consumed
the warning-window precondition.

Accept a resolved receipt at or after mutation_at, keep the receipt-ID
pairing, require no firing receipt between that resolution and
completion, and keep the final not-firing check. A test covers a
resolution between mutation and completion and a re-fire after it.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): accept per-step T1 operation IDs and reject duplicate events

The manual-T1 collector required every row to carry the single configured
manual_operation, which removed the only way to keep repeated identical
steps distinct: event_id hashes every field except the timestamp, so a
repeated failed renew on one node collapsed into one row on export, and
the collector also accepted duplicate event_ids.

Accept manual_operation itself or with a per-step suffix
/<action>-<n>, as the audit guide recommends, and reject a duplicate
event_id with audit_event_duplicate. Revert the doc waivers in the audit
guide and the credential lifecycle page that told operators to drop the
suffix. Both pages and the demo README now also state that --cluster
must be the exact kube-system namespace UID, which the collector already
required. Links from those navigated pages to the demo README are
absolute, like the other links to files outside the navigation. A test
covers a repeated identical step, a duplicate event and a foreign run.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): report the collector's reason code and release a rejected output

main reserved --output with O_EXCL and then reported every escaped error
as one generic line. A config rejected before run's own error handling,
or an aggregate error, lost its fixed reason code, and the empty 0600
file blocked a rerun to the same path with the same message.

Print the CheckError code (or collector_input_or_protocol_error for other
exceptions) to stderr, and remove the reserved file when nothing was
serialized. A file that already existed is still never touched. A test
reuses the path after a rejected config.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): fail when two control planes report the same node leaf

T1 attributes whatever the configured ssh destination returns to that
node, and validation only checks that ssh is non-empty. A copy-pasted
destination recorded cp-2's certificates as cp-3's and could pass. Every
certificate inventory now fails with node_certificate_attribution_ambiguous
when two control planes report the same apiserver, etcd-server or
etcd-peer fingerprint; shared CAs are unaffected. The existing manual
inventory test now gives each node its own leaves, and new tests cover a
duplicated leaf and a duplicated ssh destination.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): require the scheduled cycle to start after traffic started

The scheduled lane read the prior cycle ID before the baseline metrics
wait, and traffic started only afterwards, while scheduled() accepted any
new scheduler cycle. A cycle accepted in that window was credited with
continuous API traffic it never observed. Require the selected cycle's
certificateRenewal.startedAt to be at or after traffic start, and stop at
once with cycle_started_before_traffic otherwise. A test covers a cycle
that appears during the baseline phase.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): keep polling a partially written T1 completion marker

The documented cat > t1-completed.json <<'EOF' creates the marker before
writing it, so a two-second poll could read an empty or partial file.
read_json then raised ValueError, which wait_for does not retry, and the
run failed after the manual maintenance had finished. Map empty or
unparseable marker content to manual_completion_not_observed while
waiting, so polling continues until the deadline. A test starts with an
empty marker that becomes partial and then valid.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): validate kubelet serving inputs before any T2 mutation

T2 config validation never checked kubelet_ca_file or each node's
kubelet_address. Both are first read in serving_certificates, after the
production renewal or rotation, so a missing key failed as
collector_input_or_protocol_error only after the mutation ran. Require an
existing kubelet_ca_file and a kubelet_address for every node in T2
scenarios during validation; manual T1 still needs neither. The offline
config points kubelet_ca_file at an existing fixture file, and a test
covers each missing input without contacting the cluster.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): require one deployed build across passed T2 reports

The release index bound T2 reports only by checkout revision, cluster,
kube-system UID and profile, and never compared the observed
deployed_versions_before hashes. If the controller or agents were
redeployed between lanes and expected_versions was updated as the README
instructs, aggregate still passed scenarios that ran against different
builds. Require identical deployed-version sets across passed T2 reports;
manual T1 runs on another cluster and is excluded. A regression changes
only one version hash.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): require the firing alert receipt before the alert lane mutates

The collector accepts only the bundled receiver's nke.alert-receipt.v1
records and read them only after the forced renewal. Using the site's own
receiver, or starting the helper after the last firing notification,
failed the lane after the renewal had already consumed the warning-window
precondition. Before starting the renewal, require a matching firing
receipt in alert_receipts_file and fail with
firing_notification_not_received otherwise. A test with only a resolved
receipt fails before any mutation.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(qualification): state lane order, receiver, timeouts and T1 steps in the demo README

Review corrections to hack/rotation-demo/README.md:

- State the required T2 lane order (scheduled renewal before the forced
  and alert lanes) and the alert lane's staggered-expiry precondition
  before the first T2 command.
- The bundled alert receiver is required, and a matching firing receipt
  must already exist before the alert lane starts; describe the resolved
  receipt window after the collector change.
- Start the scheduled lane only when nextCertRenewalDue plus renewal and
  the next inspection fit inside timeout_seconds (at most eight hours).
- List openssl and base64 as node prerequisites and describe the
  kubectl config view --raw read of kubeconfigs under sudo.
- Show the one-time build before starting manual-t1 and the verify call
  separately, with a per-step operation ID.
- Add timeout_seconds, sized for the whole T1 runbook and post-checks, to
  the T1 configuration list.
- Link the in-tree site certificate renewal runbook instead of the pinned
  e76ea3db blob.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(operations): name the audit tool as the self-reported operator subject

The rotation-demo exception inserted before "Its operator subject is
self-reported" made "Its" read as the collector's. The exception now
follows that sentence, and the sentence says "The audit tool's operator
subject" explicitly.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* chore(qualification): ignore Python bytecode caches

Running the rotation demo's tests or the other hack/ Python scripts
outside the Makefile, which sets PYTHONDONTWRITEBYTECODE, leaves
__pycache__ directories behind. That bytecode is build output, and some
of it was nearly committed with the demo. Ignore it next to the other
per-checkout scratch and tool caches.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): stop waiting on a duplicate audit event

The T1 audit check runs inside wait_for, which retries every reason
outside its fatal set until the deadline. A duplicate event_id cannot
clear by waiting, because the guide forbids deleting ledger rows, so a
run with a duplicate polled for up to timeout_seconds, as long as eight
hours, before reporting audit_event_duplicate.

Add the reason to the fatal set. The new test fails with must not retry
when the reason is removed again.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(qualification): warn about an early scheduled cycle and redeploys in the demo README

The scheduled-renewal lane fails with cycle_started_before_traffic when
the scheduler accepts the cycle while the lane is still in its baseline
checks. That cycle has already renewed the due node, so the next one is
a no-op and the cluster cannot qualify until its certificates approach
expiry again. Tell operators to start the lane early enough that the
baseline checks finish before nextCertRenewalDue.

The release-index section also did not mention that passed T2 reports
must share the observed deployed versions, which aggregate enforces
with release_deployed_versions_mismatch.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(qualification): describe the rotation demo as a collector and name the NVKE controller

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): record an interrupted demo run as failed evidence

Ctrl-C raised KeyboardInterrupt past run and main, leaving an empty reserved
output file and losing the record that a workflow had started. run now
returns a failed report with reason interrupted, mutation_started and the
workflow hash.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(rotation-demo): require provenance and pin traffic to the approved cluster

Release aggregation now rejects reports without Boolean source cleanliness and passed reports without well-formed hashed deployed versions. Continuous API traffic pins the approved API server and checks the kube-system UID on every sample, so target drift fails independently of the outage budget.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(rotation-demo): accept zero audit counters at baseline

The controller creates every credential audit result series at zero and a
restart resets them, so a quiet site has no stored writes before the
mutation. The baseline now requires the stored series and no failure
increase only; positive stored evidence is required after the mutation. A
zero-series fixture covers both checks.

The README now shows the lanes in run order, keeps the alert node's leaves
between thresholdDays and warningDays with a different scheduled
candidate, and gates the scheduled lane on nextCertRenewalDue. The three
guides state the exact /<action>-<n> suffix form and its 1-99 bound.

Addresses review threads r4335395773, r4335396217, r4335396675,
r4335397034 and r4335397446.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(qualification): address rotation demo review findings

- N1: document that cwe_authorization_file holds "Bearer <token>" for the
  controller audience, is reread per request, and must stay valid until
  the lane ends.
- F3: release the reserved output only before writing starts, so an
  fsync failure keeps the written evidence.
- F4: time out a stalled alert webhook body.
- F5: compare deployed builds independent of node order.
- F11: require the node name as --node for demo-observed T1 rows in both
  guides.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(rotation-demo): address review comments on audit and metric checks

Compare the audit-write failure counter, including rate_limited, between
the baseline and the final sample instead of a trailing 10m window. Report
an absent CSR age series as csr_metric_missing, require cluster_name for
T2 lanes, drop the unreachable worker branch and the unrun PromQL sample
file, and run the offline tests from name-check so the merge gate runs them.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(rotation-demo): stop on past notification failures and pick receipts deterministically

Applies review suggestions: notification_order_invalid and notification_refired_before_completion describe past events that polling cannot clear, so wait_for stops on them; alert_receipts checks receipts in sorted order and keeps the first specific reason, so one invalid receipt no longer hides a valid one depending on set order; public-certificates.sh accepts only the control-plane role, the only one demo.py sends.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(rotation-demo): address review findings on receipts, audit resets and docs

Report a specific receipt failure only once no fired receipt still awaits
its resolution, fail the lane on any audit failure counter reset since the
baseline, document that a controller restart during a lane fails it, require
Temporal CLI 1.1.1, anchor the recovery link, and label the name-check job as
also running the rotation-demo tests.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

---------

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>
2026-10-27 18:29:08 +01:00
Aaron Patten d31f15e302 fix(ci): run e2e lanes only for pull requests that change their inputs (#1867)
A mirror push to pull-request/<n> carries the base branch's new commits,
so each lane's push paths matched files the pull request never changed and
docs-only pull requests started self-hosted e2e.

The shared filter now matches the pull request's files against the calling
lane's own on.push.paths, with GitHub's path-filter rules, after dropping
docs, Markdown and unit-test files outside e2e/ and test/ directories.
nvkectl-bootstrap, kubeadm-bringup, os-image-efi and nktp are gated on it
too. make lint-workflows runs the rules' tests and fails when a self-hosted
mirror lane with push paths is not gated on the filter.

Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-10-27 11:12:12 -06:00
Pat Christopher c521a57310 fix: local site setup repairs (#1843)
* fix: cleanups from 1725

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: code review comments from original site-bootstrap work

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: coderabbit repairs

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: back out colima auto upgrade

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: image variable passing

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: check nerdctl image version

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

---------

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
2026-10-27 09:17:52 -05:00
Tjark Rasche adeb0c3e1e feat(controller): monitor credential expiry and lifecycle health (#1377)
* feat(controller): monitor credential expiry and lifecycle health

Port the reviewed NKX-15682 inspection RPC, persisted inventory/exporter, direct-API CSR observation and optional alert rules onto the completed rotation layer. Keep monitoring independent of renewal and preserve last-success freshness on failed probes.

Retain ParseConfigFromEnv startup and the unmounted current-main config map; render monitoring fields in both surfaces with parity regressions. Regenerate proto and chart documentation using exact pinned tools.

Sources: c903c3ca2b24b52d3e4dc563e6e6f81ce0e77af3, 12e425e01dcb7a229ab1bf7caf507fdb44e8ff18 and 00a82a9bb8b4d81e98332a2270f04f991cf20188. Inherit rotation safety and deterministic notices without duplicating their changes.

Closes #1345

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(controller): keep certificate observations available across a failed probe

certificate_observation_available used observation.Available, which
reflects only the latest attempt. A failed probe keeps the last good
ObservedAt and certificates, but every per-credential series dropped to
zero, so a firing NVKECertificateExpiring resolved on any transient
failure and agent rollouts made it flap fleet-wide.

Derive certificate_observation_available from the age of the last
successful observation (ObservedAt within observationMaxAge) and keep
certificate_inspection_available tied to the latest attempt. A collector
test covers a failed attempt within and after observationMaxAge, and a
promtool fixture shows the expiry alert staying firing while inspection
is unavailable. The monitoring guide describes both series.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(controller): inspect certificates with a bounded worker pool

The certificate-inspection controller registered with default options, so
it ran one reconcile at a time, each with a 30s probe deadline.
Unreachable agents are re-probed every 1-32 minutes and held the only
worker, so healthy nodes queued behind them and could age past
observationMaxAge.

Register through dbreconcile.AddController with eight workers, the
agent-readiness controller's default for the same probe pattern. A
manager-level test blocks one node's probe and requires another node to
be inspected meanwhile.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* ci(chart): assert the credential PrometheusRule is absent when disabled

The default-off and global.monitoring.enabled=false renders were asserted
only by a Go test that skips without helm, and the charts unit lane
installs no helm, so the gate never checked either contract. The
assertions script that chart-check runs with the pinned helm now renders
the whole chart in both cases and fails if a PrometheusRule appears. The
monitoring guide lists the new assertions.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* ci(chart): pin the PrometheusRule schema and trigger the chart job on its inputs

chart-check validated the rendered PrometheusRule against a schema fetched
from the mutable main branch of datreeio/CRDs-catalog with no digest, so
an upstream change could turn the gate red, or change its result, for an
unchanged commit. Fetch the schema from catalog commit 501527ab and verify
it against a sha256 committed in make/tool-versions.mk, as the promtool
download already is.

The script's pin() helper printed an empty string for a missing or
renamed name, which surfaced only after minutes of 404 retries. Read
promtool and schema pins through hack/read-tool-version.sh, which fails
at once on an unknown name.

The chart.yml push filter did not cover the inputs chart-check now reads,
so a main commit touching only them ran no Chart job. Add
controller/deploy/monitoring/**, make/tool-versions.mk,
hack/check-tool-version.sh and hack/read-tool-version.sh.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* test(controller): allow repeated certificate-inspection manager setup in tests

controller-runtime keeps a process-wide registry of controller names, so
the manager-level inspection test failed under go test -count=N with
"controller with name certificate-inspection already exists". Keep the
registered name in an unexported field, unchanged in production, and give
the test a unique one.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(controller): fire credential availability alerts only when monitoring is enabled

All credential rules ship as one PrometheusRule, so the availability rules
cannot be disabled individually. With credentialMonitoring.enabled=false
and alerts enabled, the collector still exports unavailable inspection and
CSR series while the inspector and observer are off, so
NVKECertificateInspectionUnavailable and
NVKEKubeletServingCSRObservationUnavailable fired for every node and
cluster.

Gate both rules on nvke_controller_credential_monitoring_enabled == 1.
Promtool fixtures cover the disabled case and keep the existing firing
cases enabled. The monitoring guide and the credentialMonitoring.enabled
value description state the coupling; the chart README row follows the
value comment.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(controller): correct credential monitoring schema, CA and threshold notes

- Every run of the alert assertions fetches the pinned PrometheusRule
  schema, so the check is never fully offline; the guide now says so.
- "use manual CA procedure for a CA" pointed nowhere. NVKE ships no CA
  rotation procedure and does not rotate CAs, so the response is to
  escalate, linking the renewal guide that says so.
- thresholdDays was documented as 7 through 90, but with monitoring
  enabled warningDays must exceed it by two renewal intervals, which
  limits it to 44 with the defaults. The values comment, the chart README
  row and the guide's table state the coupling.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* refactor(controller): append the credential observation fields to their structs

CertificateInspection was inserted before ID in db.Node, and
CredentialCSRs before the existing ClusterConditions fields. Contributor
guidance asks for new fields after existing ones, so move both to the end
of their structs. The JSON and bun column names are unchanged and the tree
has no positional literals of either struct.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* ci(chart): fail the credential alert absence check when helm fails

The disabled-rule check piped helm template into grep inside an if
condition. set -e does not apply there and pipefail turns a failed render
into a false condition, so a template error in either disabled render
read as "no PrometheusRule" and the check passed.

Render each case to a file under set -e first, then grep the file. With a
helm wrapper that fails only the global.monitoring.enabled=false render,
the script now exits 1; before this change it exited 0.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(controller): say expiry alerts stop only after observationMaxAge

With monitoring disabled the collector keeps exporting the last
successful observation until it is older than observationMaxAge, so the
expiry and missing-certificate alerts can keep firing for up to that age
(3h by default). The guide said no rule reports them once monitoring is
disabled.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* test(controller): require concurrent certificate probes regardless of node order

The worker-pool test blocked one named node and required the other to be
inspected meanwhile. With a single worker it failed only when the blocked
node was dequeued first, which depended on ListNodes returning rows in
insertion order, and ListNodes has no ORDER BY.

Block every probe instead and require two probes to be in flight at the
same time. That needs a second worker whichever node comes first. With
inspectionWorkers set to 1 the test fails after 10s.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(controller): gate stale and failed CSR alerts on credential monitoring

With credentialMonitoring.enabled=false the CSR observer is not registered,
but the collector keeps exporting the last stored CSR inventory and its
pending age keeps growing, so NVKEKubeletServingCSRStale and
NVKEKubeletServingCSRFailed kept firing on a frozen snapshot. Gate both on
nvke_controller_credential_monitoring_enabled like the availability alerts,
and cover the disabled case with a promtool test.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* build: run chart-check in preflight for credential alert fixtures

controller/deploy/monitoring/credential-alerts-test.yaml is only consumed by
promtool inside chart-check, but preflight did not route that directory to
chart-check, so a fixture-only change skipped it locally.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(controller): state renewal setting limits in the renewal guide

certRenewal.interval and thresholdDays now have enforced ranges, and with
credential monitoring enabled warningDays must exceed thresholdDays by two
renewal intervals, so installs with thresholdDays above 44 fail to upgrade.
Say so where operators configure renewal and link the monitoring rule.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(controller): mark the gated CSR alerts in the response table

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(controller): name the credential monitoring ConfigMap as main now does

Main renamed the chart's default controller ConfigMap to
nvke-controller-config, so the guide's lookup for these settings found
nothing on a default install. The guide now names controllerConfig.name
with its default, and the new comments use the current name.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(credential-monitoring): give kubelet certificates their own expiry alert

The kubelet rotates its client and serving certificates itself at 70-90%
of their lifetime, so NVKECertificateExpiring's warningDays window fired on
healthy rotations. NVKECertificateExpiring now excludes kubelet-client and
kubelet-serving, and the new NVKEKubeletCertificateExpiring rule warns when
either has fewer than a fixed seven days left, which only happens when
kubelet rotation has stopped working. Promtool fixtures cover 40 and 6 days
for both kubelet certificates and a kubeadm leaf inside warningDays.

The monitoring guide also names the metrics NetworkPolicy namespace
requirement and says inspection availability keeps its stored value until
observationMaxAge when monitoring is disabled.

Addresses review threads r4335329332 (seven-day kubelet threshold),
r4335329829 and r4335330237.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(credential-monitoring): match controller duration bounds and env inventory

Fixes PR #1377 review findings F1 and F2.

F1: the chart compared duration bounds in whole seconds, dropping any
fractional second, while the controller compares exact time.Duration values.
Compare in nanoseconds so the chart refuses exactly what Validate refuses,
and add the sub-second refusals and accept render to the assertions script.

F2: the CREDENTIAL_MONITORING_ENABLED, CERTIFICATE_INSPECTION_INTERVAL,
CERTIFICATE_OBSERVATION_MAX_AGE and CERTIFICATE_WARNING_DAYS variables never
existed, so drop them from controller-config-env.yaml and list their keys in
configMapOnly. The drift test now refuses a key in both. The guide limits the
"no longer reads" sentence to the former CERT_RENEWAL_* variables.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(credential-monitoring): escalate stuck accepted renewals from alerts

The renewal Stuck and Overdue alerts told operators to confirm termination
and then release ownership or retry. Certificate renewal now treats an
accepted cycle whose Temporal execution has closed as stop-and-escalate:
the lock must not be released, the cycle ID not restarted and no forced
cycle started.

The Stuck alert now asks whether the workflow is still running and, if it
has closed while the cycle is accepted, to stop maintenance and escalate.
The Overdue alert defers to that response when a cycle is still accepted.
The alert table matches, and the Failed row states the full automatic
retry condition. The promtool fixtures carry the new descriptions.

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* docs(credential-monitoring): correct renewal margin, retry and two-voter notes

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

* fix(credential-monitoring): write certificate inspection column-only and reject zero observed time

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>

---------

Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>
2026-10-26 17:08:13 +00:00
Terry Howe 789a42d745 feat(deploy): issue the OIDC upstream CA with the NVKE subject on new sites only (#1890)
* feat(deploy): issue the OIDC upstream CA with the NVKE subject on new sites only

The CA's subject still said NKE. Changing it re-issues the CA with a new
private key, which invalidates the trust anchor every tenant of an existing
site has embedded, and nothing distinguished a first install from a re-run
of `nvkectl ... install`.

Add a create-if-absent directive to the manifest-item contract: a .yaml file
naming `<kind>:<name>:<namespace>` is applied only when that object is not in
the cluster. The probe is a read, so it runs under --dry-run too and a dry run
still describes the install that would happen; a probe that fails for any
reason other than NotFound stops a real install rather than read an unanswered
API server as "absent", which is the direction that re-creates the object.

Split the Certificate out of oidc-upstream-ca.yaml so the two Issuers beside
it, which carry no key material, keep being applied every install, and gate
the Certificate on its CA Secret -- the Secret holds the key material tenants
trust. Then move the subject to NVKE.

Closes #1863

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Name the CA certificate, not its private key, as the trust anchor tenants
embed, and say what the leaf losing its chain means.

Say that the gate belongs to the executor: a tool that does not read the
directive applies the Certificate and re-issues the CA. Add it as step 5 of
what another executor has to do, with the GitOps shape of it.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-23 14:33:41 -04:00
Dan Budris a3cabe2db2 refactor(auth): move the authN library to auth/authn (#1903)
Move controller/internal/auth to auth/authn as package authn, in a new
module, github.com/dsx-ai-factory/nvke/auth. This is a pure move with no
behavior change: only the package name, import paths, the qualifier and
path references change. The new module is wired the way controller/api
is: go.work use, a require and replace in controller/go.mod, a replace
to ../controller/api in auth/go.mod, the root Makefile module lists,
the lint and unit-test CI matrices, the e2e path filters, the coverage
registry, the notices and licence ignore lists, CODEOWNERS and the
labeler.

Signed-off-by: dbudris <dbudris@nvidia.com>
2026-10-23 11:40:55 -06:00
Abhay Krishna 0e41205a98 feat(controller): build the image on distroless static (#1883)
The runtime stage was Alpine plus bash, curl, util-linux and nine more
packages kept for in-container debugging. Build it on
gcr.io/distroless/static-debian12:debug-nonroot instead: the controller
and the SPIFFE exec-auth plugin are static binaries, and the debug
variant still gives `kubectl exec` a busybox shell with wget, grep, sed
and find. It has no bash, no curl and no package database.

The image drops about 39 MB uncompressed on arm64, the OS packages go
from 77 to none, and the curl High finding goes with them.

The base's entrypoint is /busybox/sh, so the image clears it and keeps
CMD ["controller"], which starts exactly as before. The empty /profiles
mount point is made in the builder, since the runtime stage has no
shell to run mkdir. The metrics examples in the API authentication docs
use wget instead of curl.

The troubleshooting page gains a section on what an exec session in
the pod has, and on attaching a debug container with kubectl debug
--profile=restricted for the tools it does not.

Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com>
2026-10-22 15:36:22 -07:00
Terry Howe 6f84d0e01b feat(chart)!: move the remaining chart names, mount paths and filenames to nvke (#1818)
* refactor(controller): move the controller pod's mount paths to /etc/nvke

The controller pod mounts its authentication ConfigMap, its controller-config
ConfigMap and its node-agent client identity under /etc/nke. Nothing outside
the pod observes any of them: the chart owns both the mount and the path it
joins into AUTH_CONFIG_PATH and CONTROLLER_CONFIG_PATH, and the client
identity paths are compiled constants the chart's volumeMounts match. So the
three move together with no values key and nothing for an existing site to
pin -- an upgraded pod simply mounts them one directory over.

Moved: /etc/nvke/auth, /etc/nvke/controller-config,
/etc/nvke/node-agent-client-tls and the e2e mock's /etc/nvke/dsx-identity.

Not moved: the node-side paths (/etc/nke/spire.env, /etc/nke/trust-bundle.pem,
/etc/nke/controller-ca.crt, /etc/default/nke-agent). Those are the node
contract, they are chosen per node from the agent's version, and they belong
to #1497.

While here, chart-node-agent-auth-assertions.sh asserted the absence of
`mountPath: /etc/nke/node-agent-tls`, a path the chart never rendered under
either name, so the check could not fail. It now names the real mount.

Related: #1554, #1496
Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(chart)!: default the authentication ConfigMap to nvke-auth-config

apiAuth.configMap.name was already a value an install can pin, so this moves
only the default. A new install mounts nvke-auth-config; an install that
predates the rename keeps nke-auth-config by pinning the key, which
chart-legacy-pinned-values.yaml now carries and chart-auth-assertions.sh now
proves.

The consumer moved first. nvkectl discovers the API audience by reading this
ConfigMap, and the name was a compiled constant, so flipping the default alone
would have left one nvkectl unable to talk to the other kind of site.
cli/internal/auth now searches both names in every controller namespace --
greenfield name first, pinned legacy name second -- in the same shape it
already searched the two namespaces, because a site that pinned one of the two
need not have pinned the other.

Also moved with it, all of them internally consistent and none observable
outside this repository: the e2e authtoken constant and the nvke-auth-dev
scaffolding that creates the ConfigMap the suite reads, the two e2e copies of
it, and the pod-internal volume names (nke-auth-config, nke-controller-config)
in deployment.yaml.

nvke-token.sh and nvke-auth-demo.sh take NKE_AUTH_CONFIGMAP, defaulting to the
new name, alongside the NKE_CONTROLLER_CONFIGMAP that #1769 added.

The chart's two env-refusal messages named nke-controller-config literally and
so went stale whenever the value moved. They now interpolate
controller.controllerConfig.name and say whatever the install configured.

Related: #1554, #1496
Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(chart)!: name the chart nvke-controller

Chart.yaml's name is the last path segment of the OCI repository helm pushes
to, so this moves the published GHCR chart from
ghcr.io/dsx-ai-factory/nvke/charts/nke-controller to .../charts/nvke-controller
and the packaged tarball with it. It is an artifact-location change: what an
install renders comes from nameOverride, not from here.

chart-publish-nvcr.yml rewrites this line with an anchored sed before pushing,
so its anchor moves too -- left behind, the rename would silently not apply and
the chart would push to NVCR under whatever name Chart.yaml happened to carry.
NVCR already publishes as nvke-controller-chart and is otherwise unaffected.

malware-backfill.yml pulls the chart by path to scan published tags, including
tags that predate this rename. It already chained fallbacks for the two earlier
chart renames; the new name goes at the front of that chain.

Not moved, deliberately:

- image.repository. #1554 decision 2 settled that the chart moves and the image
  does not, so ghcr.io/dsx-ai-factory/nvke/nke-controller and the sed in
  chart-publish.yml that pins it stay as they are.
- `component: nke-controller-chart` in the record-digest step. That is a key in
  the release manifest, read outside this repository, and nothing in #1554
  calls for moving it.

Related: #1554, #1496
Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(deploy)!: rename the OIDC upstream CA Issuer to nvke-oidc-upstream-ca

The cert-manager Issuer that signs the OIDC discovery provider's leaf serving
certificate. #1554 lists it as a Secret; it is an Issuer -- the Secret it reads
is oidc-provider-upstream-ca and carries no nke.

Renaming the Issuer is safe: spec.ca.secretName is unchanged, so the renamed
Issuer signs with the same CA key, and nothing a tenant holds is derived from
the Issuer's name. All ten references move together (deploy/nico, both e2e
stacks, helm-values/spire.yaml, deploy/k8s, the Tiltfile and the identity
exchange mock), so the issuerRef never dangles.

NOT changed, and it needs a decision before anyone does: the CA subject
(commonName "NKE OIDC Upstream CA", OU "NKE") on the Certificate in the same
file. #1554 wants it moved "for new sites only", but these items are what
`nvkectl ... install` applies, and the file's own comment says any subject
change forces a re-issue with a new private key, which invalidates every
tenant's embedded trust anchor. Nothing here distinguishes a new site from an
existing one re-running install, so moving the subject would re-key the CA
under an existing site. That gate has to exist first.

Related: #1554, #1496
Signed-off-by: Terry Howe <thowe@nvidia.com>

* refactor: rename the nke-prefixed chart templates and deploy manifests

Filenames only. Nothing these files render changes: Helm takes no object name
from a template's filename, and the two renamed Go files keep package
nvkerbac and every identifier in it.

  templates/nke-rbac.yaml             -> templates/nvke-rbac.yaml
  templates/rbac-nke-system.yaml      -> templates/rbac-nvke-system.yaml
  deploy/k8s/nke-auth-dev.yaml        -> deploy/k8s/nvke-auth-dev.yaml
  deploy/k8s/nke-spire-client.yaml    -> deploy/k8s/nvke-spire-client.yaml
  deploy/k8s/spire-nke-services-spiffe-id.yaml
                                      -> spire-nvke-services-spiffe-id.yaml
  internal/nvkerbac/nkerbac{,_test}.go -> internal/nvkerbac/nvkerbac{,_test}.go

and the e2e stacks' copies of the first three, whose directories were already
named nvke-*.

rbac-nke-system.yaml was named for the management namespace, which moved to
nvke-system in #1698, so its filename was already one rename behind.

Every reference moves with them, including the two Tilt resource names derived
from the filenames (nke-auth-dev and spire-nke-services-spiffe-id), the
_controller_resource_deps list that names both, and the resource_deps of two
opt-in providers -- the dsx-identity-exchange mock and dsx-imds-attestation --
that wait on nvke-auth-dev.

Those two matter more than they look. Tilt matches resource_deps by string and
SILENTLY DROPS a name it does not know: with the stale name, the Tiltfile still
loads and `tilt alpha tiltfile-result` still reports no error, but
dsx-identity-exchange-ca comes out depending on ["oidc-upstream-ca-ready"]
alone, having lost its wait on the scaffolding that creates the namespace it
writes a ConfigMap into. That is a race, not a failure, and no lane would have
caught it -- both providers are off by default. Verified by loading the
Tiltfile against a kind cluster with the provider enabled, before and after.

The allowlist entry for this group loses its `nkerbac` alternative, which now
matches nothing, and its comment says why `nke-rbac` is still there: the
ConfigMap's name is a compiled constant in that package, so it needs to become
a chart value before the name itself can move.

Related: #1554, #1496
Signed-off-by: Terry Howe <thowe@nvidia.com>

* docs(chart): document the pins an existing site needs before upgrading

Addresses both CodeRabbit findings on #1769, which are the same finding twice:
the legacy pins existed in the test fixture and in the pull request body, but
not where an operator planning an upgrade would read them.

- nameOverride's doc comment was a plain `#` comment, so helm-docs never
  rendered it and the README's row for the one value that FAILS an upgrade was
  empty. It is now a `# --` comment and reaches the README.
- controllerConfig.name said an install that predates nvke-controller-config
  pins "nvke-controller-config". It pins "nke-controller-config"; a rename in
  #1769 caught the legacy value too. This is the key sentence on the key the
  finding is about, and it was telling operators to pin the new name.
- apiAuth.configMap.name, whose default moved earlier in this branch, gains the
  same note.
- A new "Upgrading an existing site: names and identity" section collects every
  pin in one block, beside the management-namespace section that already
  existed, and says which failure mode each one has: nameOverride is rejected
  by the API server, the rest succeed and quietly leave something behind.
- The README title was still nke-controller after this branch renamed the
  chart.

The section states what the second finding asks for and what the fixture
cannot: chart-identity-assertions.py proves the chart still honours the pins,
not that any site supplies them, so the deployed values of all 41 sites have to
be checked before a chart carrying these defaults is published.

teleport.* is deliberately excluded from the pin block. Those defaults moved to
nvke-* in #1563, in a chart every existing site already runs, and no site ever
pinned them -- so pinning them now would be a behaviour change rather than a
preservation, whatever their own value descriptions say. The section says so.

Related: #1554, #1496, #1769, #1563
Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Three findings on the authentication ConfigMap search, all of them consequences
of this branch adding a second name to look for.

A denied read of the greenfield name no longer ends the search. RBAC scoped to
resourceNames denies every name it does not grant, so a site pinned to
nke-auth-config can deny nvke-auth-config while permitting the name it actually
runs -- and with one name that denial was correctly terminal, while with two it
stopped nvkectl before the readable one. Forbidden is now kept and the search
continues; it is returned only if nothing turns out to be readable, so a denied
read still never degrades into "authentication is off" and a bare request the
controller rejects with a confusing 401. Any other error stays terminal.

The regression test reproduces the reviewer's case and fails without the fix.
A second test covers the other half: when no candidate is readable, the
Forbidden is surfaced rather than reported as authentication being off.

The e2e helper searched one name too. On a pinned site RawConfig found nothing,
which does not fail a run -- it quietly turns the authn specs into assertions
about an unauthenticated NVKE and skips the SPIRE one. It now searches both
names, and ConfigMapName stays the name the suite's diagnostics quote.

cli/README.md and cli/docs/user-flow.md named only nvke-auth-config. Both now
name each ConfigMap the CLI looks for and state the narrower condition for
sending no token: neither name found in either namespace. Both also say that an
unreadable ConfigMap is not that condition.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* style(cli): gofumpt the forbidden-reactor helper

golangci-lint's gofumpt wants the closing paren of a split call on its own
line. I checked the new test with gofmt, which accepts it; the gate is
golangci-lint fmt (gci + gofumpt), which does not.

Kept as its own commit rather than squashed into fd51855ea: the review replies
on this pull request cite that SHA, and rewriting it would strand them.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* docs: name the chart nvke-controller in the publication reference

Two rows in artifact-publication.md still said the controller's chart is
nke-controller. This branch moved the published chart to
charts/nvke-controller while deliberately leaving the image at nke-controller,
so a row naming both artifacts with one name is now wrong about the chart.

- the NVKE_GITHUB_PUBLISH table listed "`nke-controller` image and chart"
- the SBOM section listed the chart among "`nke-controller` and `nktp`"

Every other nke-controller in the file is the image and stays.

Reported on the chart-publish row; the SBOM row is the same defect one section
further down.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(e2e): make the legacy auth ConfigMap name a constant

gochecknoglobals is on in controller/test/e2e and rejected the package-level
slice the two-name search was reading:

  internal/authtoken/token.go:41:5: ConfigMapNames is a global variable

LegacyConfigMapName joins ConfigMapName as a const and RawConfig ranges over an
array literal of the two, so there is no package-level variable. Nothing else
referenced the slice.

I had run `make lint` for cli and not for controller/test/e2e, which is a
separate module with its own lint job. Both now pass, as does controller --
the three modules this branch touches Go files in.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Keeps the authentication mount at /etc/nke/auth, and fixes the same
Forbidden-stops-the-search bug in the e2e helper that was already fixed in the
CLI.

The mount path move was wrong, and my own commit message argued it was safe on
a premise that does not hold. It claimed "nothing outside the pod observes
either" path. An operator's auth.yaml does: jwks.caBundlePath is an absolute
path into that mount, written by whoever configured the issuer, and it lives in
their values or in a ConfigMap they supply. Pinning apiAuth.configMap.name
preserves the ConfigMap's name but not where it is mounted.

Confirmed by rendering the chart with a pre-rename configuration
(caBundlePath: /etc/nke/auth/spire-ca.crt plus the matching extraFiles): the
render SUCCEEDS and emits auth.yaml naming /etc/nke/auth/spire-ca.crt while
mounting the file at /etc/nvke/auth/spire-ca.crt. The guard does not catch it
either -- it only rejects an unlisted file under the current mount, so a
legacy path reads as "a CA outside the mount" and is left alone. An enforcing
controller then cannot load that issuer's CA, which is an authentication outage
on upgrade, arriving silently.

So /etc/nke/auth stays. The other three mounts this branch moved are kept at
/etc/nvke: controller-config, node-agent-client-tls and the e2e mock's
dsx-identity. Those are chart-owned or compiled constants -- checked that
nothing outside the chart names them, and that the only values an operator can
point into a mount are caBundlePath, which names the auth mount, and
profilesDir/runbooksPath, which name a different one this branch never touched.

authtoken.RawConfig had the same defect as cli/internal/auth did: it returned
on a Forbidden read of the greenfield name and never tried the pinned one. It
now keeps the denial, continues, and returns it only when no candidate is
readable -- so a denied read is never reported as authentication being absent.

Docs, all four of them saying something that is no longer true:

- cli/docs/user-flow.md and cli/README.md said the first name that *exists* is
  used; it is the first *readable* one, and they now say why that differs.
- controller/docs/configuring-api-authentication.md said nvke-auth-config is
  the single name fixed in the CLI, and that any read error stops the command.
- controller/test/e2e/README.md said the suite sends no token when
  nvke-auth-config is missing; it sends none only when neither name exists.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-20 11:46:56 -04:00
Aaron Patten deb3f8826a feat(nvkectl): name the controller image flag and settings nvke-controller (#1776)
* feat(nvkectl): name the controller image flag and settings nvke-controller

nvkectl bootstrap site reads the NVKE controller image from
--nvke-controller-image and its deploy settings from
NVKECTL_NVKE_CONTROLLER_{IMAGE,PORT,HELM_TIMEOUT,READY_TIMEOUT,TEMPORAL_CHART,
SPIRE_CHART,SPIRE_CRDS_CHART}. The earlier names (NVKECTL_CONTROLLER_* and
NKECTL_CONTROLLER_* from the cli/v0.2.0 release candidates, NKECTL_CWE_* from
cli/v0.1.x) are never read: one set without its replacement stops the command
and names the replacement; one set beside it logs a warning.
--controller-image is no longer a flag.

Signed-off-by: Aaron Patten <apatten@nvidia.com>

* docs(site-bootstrap): require cli/v0.2.0 for the custom base OS bootstrap example

Signed-off-by: Aaron Patten <apatten@nvidia.com>

* fix(nvkectl): drop the check for earlier controller setting names

bootstrap site reads only NVKECTL_NVKE_CONTROLLER_* and --nvke-controller-image. The earlier NKECTL_CWE_*, NKECTL_CONTROLLER_* and NVKECTL_CONTROLLER_* names were only ever used inside NVIDIA, so they are ignored rather than stopping the command or drawing a warning.

Signed-off-by: Aaron Patten <apatten@nvidia.com>

* docs(cli): regenerate the bootstrap site reference for --nvke-controller-image

Signed-off-by: Aaron Patten <apatten@nvidia.com>

---------

Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-10-20 09:33:04 -06:00
Lia df9890c530 feat: make local-site-setup prepares the local site for the operator flow (#1725)
hack/local-site.sh setup stands in for what a data center, a build and
the lab hand an operator: it starts a container node from the bootstrap
substrate and records its hosts.csv and SPIRE CA, builds the controller
image and the profile content image from the checkout and stages them
into the node's containerd, writes the stack config naming them, the API
NetworkPolicy with the lab's networks, the release set and a tenant
request for the machine's architecture, starts nico-sim with its
container backend and bridges the two container networks, and writes a
workspace with env.sh. The operator flow is then typed as on real
hardware: nvkectl generate sitespec, nvkectl bootstrap site, clusterctl
init, the install, the NetworkPolicy, set-site, the releases, a tenant.

deploy/nvke-deploy-local.sh install wraps the executor for that flow:
the lab StorageClass before, nvke-deploy.sh install on deploy/nico with
the inputs read from NVKE_SITESPEC, NVKE_STACK_CONFIG and
NVKE_KUBECONFIG, and the SPIRE exec-auth patch after. The local-site
page shows that sequence and links each step's operator page.

Co-developed-by: Claude <noreply@anthropic.com>

Signed-off-by: Lia Campbell <liac@nvidia.com>
2026-10-19 12:10:54 -04:00
Davanum Srinivas 2624fecd31 chore(hack): add a cleanup script for the binaries and images pushed to GitHub (#1731)
* chore(hack): add a cleanup script for the binaries and images pushed to GitHub

Dry run by default; on --apply it deletes release assets and records, the GHCR packages, Actions artifacts and caches, in that order. Tags and source stay.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* fix(hack): apply --keep before --only, keep releases with excluded assets, test tags singly

Review of #1731: exclusions now win on either name, a release stays when a filter excludes one of its assets, every tag of a version is tested on its own, untagged versions skip the name test, a fully selected package is deleted as a package, listings dedupe, rate limits throttle, and --apply checks the token scopes.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* fix(hack): wait a minute on a secondary rate limit, keep a failed scope probe non-fatal

CodeRabbit on #1731: GitHub asks for at least sixty seconds after a secondary rate limit, and a failed header probe should not abort the run before the first DELETE reports the real permission error.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

---------

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-10-17 12:31:13 -04:00
Terry Howe 46f04ce59e feat: write labels and annotations under nvke.nvidia.com and read both domains (#1713)
* feat(controller): add the keys package for the nvke.nvidia.com label domain

The labels, annotations, taints and node conditions this controller owns
move from nke.nvidia.com to nvke.nvidia.com. The rename is not atomic:
objects labelled by an earlier build keep the old keys until something
rewrites them, and a reboot or terminate request applied by hand arrives
under whichever domain the operator knows.

keys.Key holds the bare name and renders it under either domain. Callers
write Key.String(), always the new one, and read with Get/Value/Has/
Matches, which accept both. Key.All() is the delete form, because
removing only the new key leaves a legacy copy the next read would find.

Both domains are compiled in, as cluster-api-provider-nico did for its
own rename: there is no third domain anything could read, so there is
nothing to configure.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(controller): write object keys under nvke.nvidia.com and read both domains

Routes every label, annotation, taint and node-condition key the
controller owns through internal/keys, and deletes the string constants
that held them. Writes land on nvke.nvidia.com; reads accept either
domain, preferring the new one.

Three places need more than a mechanical swap:

- Node topology labels are rewritten on reconcile, which drops the
  legacy key rather than leaving a node carrying both.
- Taint removal strips both domains. A node joined before the rename
  carries the provisioning taint under the legacy key, and a workflow
  untainting it may now be asking for the new one; removing only the
  requested form would leave the node NoSchedule for good.
- Reboot and terminate completion clears both forms of the request
  label, which an operator or an external automation may have applied
  under either.

Secret ownership labels converge the same way: a rewrite drops the
legacy key so a Secret carries one domain, not two that could drift.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(nico): point the capnico reboot and repair annotations at nvke.nvidia.com

cluster-api-provider-nico watches exactly one Machine annotation for a
reboot and one for a repair, named by --reboot-annotation and
--repair-annotation, and silently ignores a request under any other key.
A mismatch is not an error anywhere: reboot and repair requests are
simply never actioned.

So the controller writes both annotations under both domains until every
deployment has moved, and these manifests move to the new one. Both keys
are owned by the same field manager, so clearing the annotation still
clears both. The dev capd-reboot-controller reads either form.

Sites that deploy capnico from their own manifests can move the flags on
their own schedule; see docs/operations/label-domain-migration.md.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(cli): write the etcd key cluster-name annotation under nvke.nvidia.com

nvkectl writes this annotation onto the etcd encryption key Secret it
saves to disk, and reads it back to match a file to a cluster. The
legacy key stays exported so a file written by an earlier nvkectl is
still readable.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* feat(capp): write the SPIRE agent path annotation under nvke.nvidia.com

The provider owns this Machine annotation, so it is the thing that moves
a Machine over: the write drops the legacy key rather than leaving two
for the controller to choose between.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* docs: describe the nvke.nvidia.com label and annotation domain

What an existing site has to do (check the capnico flags, and anything
outside NVKE that matches on these keys), what it does not (relabel
objects, coordinate the upgrade, change how reboots are requested), and
which nke.nvidia.com names are deliberately not part of this change.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* chore: link the capnico dual-write to the issue that removes it

The two Machine annotations written in both domains are scaffolding for
a rollout, not a design. FIXME them against #1718 so the next reader
knows what has to be true before they go, and say in the migration guide
that a stale --reboot-annotation or --repair-annotation becomes a silent
failure once the dual write is gone.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

- nodestatus: try the current domain before the legacy one when reading
  NeedsRecycle and NeedsRepair. Status.Conditions has no ordering
  guarantee, so matching either form took whichever came first: a stale
  legacy False left by an earlier build could mask a current True and
  drop the recycle or repair request it records.
- nico_spiffe_controller_test: assert absence against the rendered key.
  testify compares map keys without converting types, so a keys.Key
  needle made the NotContains pass even with the annotation present.
- capd-reboot-controller: honour a legacy reboot-complete timestamp.
  It already read a legacy reboot request but checked only the current
  completion key, so it replayed the simulated reboot and overwrote the
  completion it had already recorded.
- management-engine: reserve nvke.nvidia.com in the userParams.labels
  CEL rule, not just in the doc comment. The rule excluded the legacy
  domain only, so a label under the domain this controller now writes
  could pass CRD admission and collide with one NVKE owns. The REST API
  validator already rejected both domains; this aligns the two.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-16 15:51:06 -06:00
Aaron Patten 2795f344ef refactor(management-engine): use controller names for the controller connection and combined dev environment (#1661)
The combined dev environment now reaches the controller Tilt installs (nke-controller/nke-controller) and its Temporal namespace (nke-controller).

Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-10-16 14:36:47 -07:00
Guillermo Gaston 071b6ec139 refactor(agent)!: remove cluster RBAC update RPCs (#1693)
Remove UpdateNKERBAC and its UpdateNVKERBAC alias, which apply RBAC
manifests using the node-local admin kubeconfig. The controller already
reconciles tenant RBAC directly through the Kubernetes API, and no
repository consumers call either RPC.

Signed-off-by: Guillermo Gaston <ggastonloren@nvidia.com>
2026-10-16 14:43:16 +00:00
Ron Compos 2b5d8f9b82 fix(qualify): drop the nke-node OS image fallback (#1678)
#1582 brought a branch-only stop-gap to main: a dispatch or label run
with no OS image input or variable booted the v0.2.0-rc.1 Ubuntu 24.04
nke-node image on every stream, 26.04 included, and recorded it as the
plan's. Remove it and its name-check entry, so a run that names no
image fails verify artifacts until an nvke-node release exists.

Signed-off-by: Ron Compos <rcompos@nvidia.com>
2026-10-15 16:01:25 -07:00
Ron Compos f20fc20ba0 test(e2e): validate the site's software and distro after the stack deploys (#1582)
* test(e2e): validate the site's software and distro after the stack deploys

Adds eight site validation specs to the Forge site lane, run after the controller version check and before the tenant lifecycle: nodes Ready and schedulable, every workload available with each platform and deploy path namespace populated, no failing pods, every cert-manager Certificate issued, the controller API listing clusters, API server readiness and liveness with etcd, the Kubernetes version the site was built with, and cluster DNS from a pod.

A failing check skips the rest so a broken site cannot spend the lane's timeout, and a unit test keeps the required namespace list in step with deploy/nico.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* test(e2e): use a neutral build suffix in the version example

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* refactor(e2e): pass site.Cluster and site.Spec to site validation; poll the pod check every 2s

validateSitePostDeploy takes the site's Cluster and Spec directly instead of a two-field projection, so later checks can read any field or credential without widening an adapter. The pod stability window polls every 2s through its own siteStablePoll.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

---------

Signed-off-by: Ron Compos <rcompos@nvidia.com>
2026-10-15 15:35:21 -07:00
Jayson Du c4d3a6fe40 fix(e2e): install the renamed CNI packages (#1668)
The pre-kubeadm block now asks for nvke-cni-ovn-images and
nvke-cni-ovn-charts. #1560 is what publishes them; until it lands the suite
serves only nke-cni-ovn-*, and a name it does not serve is a "no candidate"
that terminates ProvisionCluster through InstallCNIPreconditionFailed, which
does not retry. So this fails on hardware until #1560 merges, deliberately.

The agent unit and its environment file are NOT renamed with them, and the
comments now say they never should be. nvke-agent.service declares
Alias=nke-agent.service and reads both /etc/default/nke-agent and
/etc/default/nvke-agent, and the installer runs `systemctl enable`, which is
what turns an Alias into a real unit name. The old spelling therefore resolves
on images built before and after #1565 while the new one resolves only after.
#1600 asks for both halves to be reverted; only this one should be.

No allowlist entry changes: each is still in use by the fleet's own
compatibility surface, which name-check confirms.

Signed-off-by: Jayson Du <jaydu@nvidia.com>
2026-10-15 14:35:40 -07:00
Miancheng Lin 3317737e1e refactor(api): rename the OS profile surface to releases (#1612)
* refactor(api): rename the OS profile surface to releases

/osProfiles becomes /releases and nico.osProfile becomes nico.release, so
the REST API uses the release vocabulary the rest of the management plane
already does. Internal db and workflow structs keep their field names.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* refactor(controller): rename the OS profile to the release

Nico payloads gain a release key. os_profile is still written alongside
it and still read as a fallback, so a CWE predating the rename keeps
reading and writing the value through a rolling upgrade or a rollback.
No stored data changes. A later release backfills release from
os_profile, then drops the mirror and the fallback.

The os_profile Prometheus label is deliberately unchanged.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* docs: follow the OS profile rename

The request YAML in the workload-cluster guides named a field the API no
longer accepts, and two troubleshooting entries quoted error text that no
longer appears. The dashboard panel descriptions in operate/observe.md
keep the old wording: the panels and the os_profile metric label they
read are unchanged.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* fix(scripts): read cluster NICo fields from .nico and allow an absent configProfile

The cluster-level orgID, siteID and vpcID live under .nico in the API
response, as the node pool fields already corrected do, so the script
exited before generating anything. configProfile is optional in the same
schema, and requiring it skipped a valid node pool.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

---------

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
2026-10-15 11:56:35 -07:00
Jayson Du bdb2a35742 feat(e2e): qualify a site controller on a DSX datahall (#1440)
* feat(e2e): describe DSX infrastructure in its own dialect

A DSX site runs its own site-local control plane rather than the hosted
Forge API, so this is a second dialect beside forge's rather than a
generalisation of it. What actually differs is in the declaration: a
datahall offers machines as well as instance types, exposes prefixes
rather than subnets, and carries its tenant.

The two placements are not interchangeable. A site controller is created
against a machineId, which a DSX create accepts and Forge's does not; a
tenant's node pools name an instance type and have no machine field. A
datahall declaring only one of the two fails validation, because either
half alone produces a run that cannot finish and says so a long way in.

The key a site is filed under is also its API host, so there is no
GET /site lookup. It is load-bearing for a second reason: two datahalls
at one site hold completely disjoint UUIDs for the same kinds of object,
and nothing in a response says which one an id came from.

az51-dev2-dh2 is declared with every identifier unset, so it is skipped
rather than fatal until the repository variables exist.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): mint DSX tokens from the datahall's own SSA client

The client is supplied, not discovered, and its variables are named after
the datahall: DSX_<DATAHALL>_SSA_CLIENT_ID and _SECRET, derived from the
key the site is filed under. Per datahall because the client is -- one
scoped to az51-dev2-dh2 means nothing at redstone-dev1-dh2 -- and
deriving the name means a second datahall needs no code and no new
convention to remember.

It also removes an overlap. ll-check-creds.sh takes a bare SSA_CLIENT_ID
for a LaunchLayer client, a different identity against a different API
and indistinguishable from this one by its value, since both are
nvssa-prd-* from the same issuer. A name no one else uses cannot be
picked up by accident, and a rejection names the issuer and the client id
so a credential meant for the other API reads as such.

A datahall also keeps a bootstrap client of its own in its cluster, which
is what both recorded manual runs borrowed. This does not reach for it:
that identity belongs to the site rather than to whoever is running, it
needs Kubernetes access to read, and it bypasses the org scoping a run is
supposed to stay inside. A lane asks for its own and fails without one.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(e2e): move node cloud-init rendering out of the forge package

The cloud-init a node runs `nkectl bootstrap site` on is the same
whatever created the machine: it installs the host tools the NKE image
deliberately does not ship, writes an authorized_keys for the account the
image bakes, and carries no phone_home block. None of that is Forge's.

Moved verbatim into infra/provision and exported where forge still calls
it. Forge's own tests pass unchanged, which is what says the move altered
nothing.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): provision a site-controller node on a DSX datahall

The sequence is the same one the Forge provider runs, because everything
after the create is: dial through the jump host until sshd answers, wait
for cloud-init to settle, release the machine on any failure after the
instance exists. That half now lives in infra/provision and is called
directly rather than through an interface, so reading this file still
tells you what it does.

What differs is the create and what reaches it. The site controller is
placed on a MACHINE named outright, not an instance type: a DSX create
takes a machineId, and an instance type at a datahall is an allowlist
built for tenants. alwaysBootWithCustomIpxe is false where Forge sets
true -- true makes the firmware re-run the custom iPXE on every boot
instead of booting the disk it just wrote. The tenant is declared rather
than read back from the API. Interfaces always attach by prefix, because
an FNN fabric exposes nothing else.

Readiness is not waited on, only an address. BootCompleted arrives about
three and a half minutes after create, before the host has finished
imaging, and the firmware then loops UEFI HTTP boot across every NIC
before falling through to disk -- ten, fifteen and twenty-seven minutes
were all measured. SSH answering is the real signal, which the shared
wait already gates on.

One SDK serves both: Servers carries the datahall's host, which its own
key names, and SetAPIName turns the generated carbide path into nico.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(e2e): take the node half of provisioning out of the forge package

Forge now calls infra/provision for the part that was never Forge's: the
dial retry, the cloud-init wait and its diagnostics, the per-run key, the
session that releases its machine, and the HTTP client copy. The forge
package keeps what is actually Forge -- its dialect, its NGC key
exchange, and the create and poll calls against its own API.

Nothing moved changed. Forge's own tests pass against the shared code,
which is what says so.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): select the DSX provider from the environment's dialect

Both factories gain a case beside forge's, which is the extension point
the switch was written as: the environment file names a provider, and
nothing above has to know who implements it.

NewNico now states its API name rather than defaulting it. The default
was right while Forge was the only substrate; a DSX site serves the same
API under "nico", and a default that is right for one of two is worse
than none, because the wrong one fails as a 404 against a URL nothing
printed.

The DSX factory takes no credential. A datahall keeps its own SSA client
in its cluster and the provider reads it, so the environment variables
are an override -- which is what lets this run on a workstation with
nothing set and on a runner with no Kubernetes access.

Known limitation, recorded where it will be read: the token written into
the CAPNICo Secret is static and a DSX one expires in fifteen minutes.
The install needs no live authentication and completes; a tenant create
afterwards fails until the Secret is patched. The fix is a credential
that outlives the run, which is a provisioning question rather than a
code one.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* test(e2e): cover what the DSX provider does differently

The fake serves /v2/org/ncx/nico, so reaching it at all is the assertion
that SetAPIName rewrote the segment the SDK generates. The rest covers
the four create-request differences -- machineId rather than an instance
type, alwaysBootWithCustomIpxe false, prefix-only interfaces, a declared
tenant the provider must never go asking for -- plus that an address on a
still-provisioning instance is enough to start dialling, which is the
point of not waiting for Ready here.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(qualify): run the DSX stream against the DSX environment

The environment was hardcoded to forge, so every run loaded Forge's file
whatever it was qualifying. It now follows the stream's own provider
capability, which the plan already carries.

Mapped rather than used as the filename directly. -e2e.environment names
a file, not a backend, and collapsing the two would rule out a second
environment for one provider -- a staging Forge beside the production
one. An unrecognised provider fails the job with the name in it rather
than loading something that happens to exist.

One stream, outside golden-path, so the weekly full scope covers it and
nothing else changes. No gpu: az51-dev2-dh2 offers one machine for the
site controller and one instance type for the tenant, both amd64 CPU.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): keep closeBody in each provider, and satisfy the linters

bodyclose is an SSA analyzer and cannot follow a close through a call
into another package, so sharing the five-line helper turned all seven
call sites into false positives -- four of them in forge, which had been
clean. Duplicating it is the correct answer here: the linter working is
worth more than the five lines.

The rest: the status switch lists every case the SDK defines, so a new
one surfaces here rather than falling into a default; the two gosec G101
hits are a variable name and a Secret's name rather than credentials;
the G704 hits are the issuer, which is declared configuration for the
run and not reached from a request; and misspell wants US spelling.

make lint: 0 issues, in both modules.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): size the DSX waits for what each one actually waits for

They were weighted as if either could be the slow one, which put 45 + 30
inside a provision spec whose NodeTimeout is 45 minutes for every
provider. The budgets said 75 and the spec would have cut every run at
45, so they described something that could not happen.

On this substrate the two waits are the other way round from Forge's. An
address arrives early -- BootCompleted is about three and a half minutes
after create, before the host has finished imaging -- so waitAddressed
needs little. SSH is the long one: after the imager writes the disk and
reboots, the firmware loops UEFI HTTP boot across every NIC before
falling through to disk, and ten, fifteen and twenty-seven minutes were
all measured. 15 + 35 now, totalling the same 50 as Forge's 30 + 20, with
the spec's NodeTimeout left as the single real governor.

No machine leaks either way: the release on failure is detached from the
canceled context. The failure this removes is a usable node reported as a
timeout.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(qualify): reach the node through the jump host its own site declares

Two places still assumed Forge's. The e2e-config step asserted
FORGE_JUMP_HOST on every run, which passes for the wrong reason on a DSX
stream and sends a reader to a setting that run never touches; it now
insists on the host belonging to the environment the stream selected.

And the redaction that withholds the jump host from the uploaded log
listed only the two Forge hosts. GitHub masks a secret in the job log but
not in an artifact, and the suite names the host in its own errors, so a
host missing from that list is one the artifact publishes.

The suite half already followed the site: the provider takes its jump
host from the environment file rather than a variable.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(qualify): add an L40S scope for proving the Forge path still works

golden-path takes two GB200 machines, and a site has six CPU machines
against a ceiling of three concurrent runs, so showing a change has not
broken the Forge path currently means queuing behind qualification work
or taking hardware from it. One L40S stream at az61 costs neither.

The selector names the series because that is the only axis the two L40S
streams differ on. Paired with `stage=provision` it exercises create,
dial, cloud-init and release without touching the deploy path, which is
what a change to the provisioning half needs and all it needs.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(qualify): add a smoke label that asks for one machine

A label run carries no inputs, and dispatch is refused from a branch by
the ref check -- the Teleport join token allows only refs/heads/main and
refs/pull/*/merge. So a label was the only way to run a branch on
hardware, and it took whatever QUALIFY_E2E_SCOPE and QUALIFY_E2E_STAGE
happened to say: golden-path and full, two GB200 machines and hours.

Asking for anything else meant editing a shared variable and remembering
to put it back, which lands someone else's label run on your settings if
they label in the window.

qualify-e2e-smoke is that request, named rather than borrowed: one L40S
stream at the provision stage, taking the node, reaching it and releasing
it. That is the whole of what a change to the provisioning half needs
proving, and it takes capacity nobody is waiting on.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): honour keep-on-failure when a node fails to provision

A node that fails to provision is the only thing that can say why a boot went
wrong -- whether cloud-init ran, what it wrote, what the console saw -- and both
providers released it unconditionally, which destroyed that at the moment it was
wanted.

They now consult the run's lifecycle settings through keepFailedNode(), which is
true for -e2e.keep-site, lifecycle.skipDelete or lifecycle.preserveOnFailure. A
kept node is reported rather than left to be discovered: the error names the
instance, says it outlives the run, and gives the address it reached or that it
reached none.

The default does not change. Nothing here sets preserveOnFailure, so a lane that
does not ask still releases its node, and a datahall with one usable machine is
not held by a red run. Asking is QUALIFY_E2E_KEEP_SITE or the keep-site input,
which already existed.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(qualify): add a dsx scope that selects the datahall alone

The dsx stream declares no gpu, so golden-path and l40s do not reach it,
and full would take four contended GB200 machines to exercise one CPU
substrate. A provider selector separates the two lanes, which is what
this scope is for.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(qualify): add a dsx label so the DSX stream can run from a branch

A workflow_dispatch from a branch cannot reach Teleport: the join token
allows only refs/heads/main and refs/pull/*/merge, so the viability check
refuses the run before anything is provisioned. A dry run passes because
it never joins Teleport, which is why this was not caught earlier.

So a label is the only way to run the DSX stream until this lands on
main, and the scope it selects has to be named by the label for the same
reason the smoke label names one: a label run carries no inputs.

It pins the stage too. The repository default QUALIFY_E2E_STAGE is full,
which would take two of the four slots in the datahall's /29 and run the
whole deploy path on a substrate that has never provisioned a node.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): stop the site suite calling every node a Forge node

The suite reports "Site controller on Forge provisions a node" on a DSX
run, which is wrong and reads as though the run went to the wrong
substrate. The provider has been a choice since the DSX environment
landed; the text did not follow.

The Describe cannot name the provider: the spec tree is built before
-e2e.environment is parsed, so it has no way to know which one the run
chose. Provider-neutral is the honest spelling rather than a guess.

Only user-facing text changes. The Forge names that remain -- the API key
variable, newForgeProvider, the nico-forge tenant -- are genuinely Forge's
and stay.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): let the DSX node user fall through to the image default

The DSX lane dialed dgxc-admin@ and was refused on publickey for its
whole 35-minute ReachTimeout. The node was fine: it booted, sshd
answered, and the bot reached it through the jump host. The account was
not. The lane boots the OSS os-image release, which bakes ubuntu
(os-image/packer/nke-node-non-fde.pkr.hcl), so cloud-init wrote
authorized_keys into a home directory for a user the image does not have.

Forge gets this right by having no opinion: it declares no nodeUser, so
the empty value falls through to DefaultNodeUser. The DSX environment
asserted dgxc-admin instead, which is correct for the manual az51
procedure -- that boots an internal-pipeline image -- and wrong for the
lane, which resolves its image from the release registry. Two images, two
baked accounts, one of them copied across without reconciling it.

So default it empty and fall through the same way. A datahall that really
does bake something else sets the variable, alongside the image that
bakes it.

The repository variable that carried dgxc-admin is removed, or it would
override this and nothing would change.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): let the datahall choose the DSX machine

The DSX provider pinned the site controller to one machine, because a DSX
create takes a machineId where Forge names an instance type. The API
takes either: instanceTypeId is the ordinary field, and machineId is the
special case needing the tenant's targetedInstanceCreation capability.

Pinning is what a hand bring-up wants, and the manual az51 procedure does
it for good reason -- a person standing up a datahall chooses the host. A
lane wants the opposite. On 2026-10-12 the pinned machine sat held by a
teardown that would not finish, and every run failed on

    409 ... is assigned to an Instance, cannot be used for new Instance

while six other machines in the datahall were free. The selector made it
worse: MatchMachine returned the first architecture match without looking
at status or whether it was already assigned, so it would have handed
back a machine it could see was in Error.

So place on an instance type by default and let the site pick a host that
is free and healthy, which is what Forge does. A site that declares
machines still pins, so the hand path keeps working, and machines becomes
the optional half of the schema rather than a required one.

Instance types were always required and still are: they place the tenant
nodes, which nothing else can.

Note the type at az51-dev2-dh2 has two machines bound, which covers a
provision run. A full run places three at once and needs more bound to it
first -- free machines in the datahall do not help if the type does not
name them.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): resolve a DSX site that declares no machines

Making machines optional missed the resolver. Resolve still required every
site to match one, so the suite failed in BeforeAll with

    no declared site offers a amd64 machine and a amd64 CPU shape

before any provider code ran, on an environment file that was correct. A
site now only has to match a machine when it pins one, and the error no
longer claims a machine was wanted.

Covered by a test, because nothing exercised Resolve with machines absent
-- which is why the gap reached a run. The provider gains the matching
case: a site declaring none sends instanceTypeId. Two test names that
asserted the old contract are corrected rather than left to mislead, and
the doc comment an earlier edit merged into MatchMachine's is restored.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* test(e2e): guard the shipped DSX environment against re-pinning

Two failures today were in environments/dsx.yaml rather than in Go, so
no provider test could have caught either, and each cost a bare-metal run
to find: nodeUser defaulted to the account the manual procedure's image
bakes rather than the one the lane boots, and machines pinned a single
host that a stuck teardown then held.

So read the checked-in file the way a run reads it, through LoadPath, and
assert the shape rather than any identifier -- unset variables expand to
empty, which is what a developer checkout has. Verified by reintroducing
each bug in turn and watching it fail with the right diagnosis.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): install from the nke-* apt suites the publisher serves

and the nvke-<codename> suites, ahead of the publisher that would serve
them. nke/packages/apt-publisher still pins APTLY_PREFIX=nke-apt and
APT_DISTRO_PREFIX=nke-, so the renamed objects do not exist: the bucket
denies ListBucket, a missing key reads as AccessDenied rather than 404,
and the curl 403s under set -e before apt ever runs. Every hardware lane
has died there since Oct 11 -- most recently the DSX run on az51-dev2-dh2,
whose node reached cloud-init and got no further.

Both #1504 and #1517 gated this change on the publisher moving first, and
serve. It did not. Point the coordinates back at what is published and
restore the two suite tokens the allowlist lost.

Verified against the live repository rather than assumed: the published
key carries a good signature over Release and InRelease, the Release file
declares suite nke-noble, component main, architectures amd64 and arm64,
and the index holds nke-kubeadm-distro-1.36.3, nke-cni-ovn-images-1.4.0
and nke-cni-ovn-charts-1.4.0 with their pool objects fetchable at the
sizes it states. Their only dependencies are iptables and iproute2 from
Ubuntu base, so nothing resolves outside the suite.

The package names are untouched and stay nke-*: the renamed packages carry
Provides for their old names, so the dependency runs one way only, and an
nvke-* package is published nowhere yet. The node agent and spire-agent
are unaffected either way -- the image bakes both, and this template
deliberately installs neither.

Moving the coordinates forward again needs the publisher to move first, or
to dual-publish. The repository cannot make that rename on its own.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): restart the agent unit the booted image actually bakes

The apt revert got the node through the install -- kubeadm-distro 1.36.3 and
both OVN packages fetched and unpacked, 1,579 MB in 66s -- and cloud-init then
died on the next line: "Failed to restart nvke-agent.service: Unit
nvke-agent.service not found".

brought that here. The image a run boots is an os-image release, and the
newest one is v0.2.0-rc.1, tagged 2026-10-11, a day before #1565 merged. It
bakes nke-agent.service, so the restart has nothing to act on and set -e takes
the block with it.

The environment file matters more quietly. The write to /etc/default/nvke-agent
succeeds whether or not anything reads it, so AgentArgs would have gone missing
in silence even with the restart removed -- the node would come up and behave
as though it had been given no arguments.

Same shape as the suites and the package names: a consumer renamed ahead of
the artifact it consumes. These move when an image carrying the renamed unit
is published.

Verified: go build, the nvke, dsx, forge, provision and teleport suites, and
name-check, which stays on this branch's own three hits.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): onboard redstone-dev1-dh2 as the arm64 DSX lane

A second datahall against the dsx provider, which is what the resolver's site
search was written for: it walks every declared site in name order and matches
on capabilities, so two datahalls need nothing shared to coexist.

Arch is what separates them, and it is not a style choice. Every machine
redstone-dev1-dh2 owns is aarch64 -- the VR NVL72 trays and both CPU boxes
alike -- where az51-dev2-dh2 is amd64 throughout, so each answers one of the
two dsx streams and they never compete for one.

The site is declared the way az51-dev2-dh2 is: every identifier a ${VAR:-},
no machine pinned, nodeUser empty so the OSS image's own account applies. The
seven repository variables and the jump-host secret are set; the lane stays
skipped anyway, because the one identifier that does not exist yet is the
instance type.

That gap is real and recorded in the file rather than left to be discovered.
As of 2026-10-13 this datahall has exactly one instance type and it binds
three VR NVL72 trays; both CPU machines -- a Super Server and an
ARS-221GL-FNB-NC24B, each Ready and unbound -- belong to no type at all.
Binding the trays instead would place a site controller on a GPU tray, which
is what the GB200 streams are for. Until someone creates a type over the CPU
machines, DSX_REDSTONE_DEV1_DH2_INSTANCE_TYPE_ID has nothing to hold, the
site resolves to nothing and dsx-arm64 plans to nothing.

The workflow's jump-host assertion stops being true with two datahalls:
`dsx) jump_host_var=DSX_AZ51_DEV2_DH2_JUMP_HOST` names one of them and would
pass for the wrong reason on a run against the other. It is now a candidate
list requiring at least one to be set -- requiring both would fail a run
against a configured datahall because the other one is not configured.

Everything else the lane needs was verified on hardware on 2026-10-13: the
VPC rel-eng-tests (routingProfile internal), its 10.71.141.56/29 prefix, the
SOL key group, and rel-eng-redstone-jump-host, enrolled in Teleport and
reached with tsh ssh.

Verified: actionlint clean; qualify plan resolves 2 streams at --scope dsx and
8 at --scope full where it resolved 7, with golden-path unchanged; go test
./internal/infra/dsx/... passes, including the shipped-environment test.

No hardware run on this datahall.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): name the packer file that exists in the node-user comment

The nke- pin is about published artifacts -- apt suites, package names, the
systemd unit -- not about paths in this repository. Replaying it over main
caught one comment that names a source file, and main's rename of that file is
real: os-image/packer/nvke-node-non-fde.pkr.hcl is what is on disk.

Comment only; no behaviour.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): clear the name-check gate without touching the nke- pin

Four hits, three of them older than this branch's rebase and one of my own
making.

The two qcow2 fixtures were mine. Replaying the apt pin over main caught the
image filename, which was never part of that pin: the allowlist says so
outright -- "the pattern stops there so a leftover nke-node-*.qcow2 is not
exempt. The qcow2, qemu source, checker, apt capture hook and material schema
now say nvke." They go back to nvke-, and the suite names beside them stay
nke-noble and nke-resolute, because those are what nke/packages/apt-publisher
actually serves. That split is the whole point of the pin.

The instance-type names were ours to choose and are not part of the pin, which
covers the apt suites, the package names and the agent unit --- things another
system publishes and we cannot rename. An instance type is a name we hand to a
datahall at create, so it follows the repository: az51-dev2-dh2-nvke-tenant and
redstone-dev1-dh2-nvke-tenant. The ids are unchanged and the variables hold
ids, so nothing CI reads moves. The live objects are renamed to match.

The bare NKE in a dsx.go comment named the product where the sentence did not
need to; it now says what it adds.

Verified: name-check clean, go build and go test ./internal/... in
controller/test/e2e.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(e2e): point the nke- allowlist exceptions at their tracking issue

Three entries carry the e2e lane's deliberate pin --- the apt suites, the
packages installed from them, and the agent unit and environment file --- and
each explained its own cause (#1518, #1496, the os-image release) without
naming where the removal is tracked.

They now cite #1600, so a grep for the issue finds the allowlist as well as the
cloud-init template, and closing it has a complete list of what to revert
rather than a reader rediscovering which entries were the pin and which were
always exceptions.

Comments only; no pattern changes, name-check still clean.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e)!: declare redstone-dev1-dh2 as the only DSX datahall

Drops az51-dev2-dh2 from the lane: its site entry, the dsx-amd64 stream it
answered, and its twelve repository variables and secrets. The dsx provider and
everything it learned on that datahall stay --- the comments that cite the az51
exercise are where the waits, the routing-profile trap and the machine-pinning
lesson came from, and they are still the reason the code is shaped as it is.

With one datahall the jump-host assertion goes back to naming one variable. It
had become a candidate list because two datahalls each have their own and the
run picks inside the suite; with one, the earlier form says more.

Two consequences worth stating rather than discovering:

The DSX lane loses amd64. redstone is Grace throughout, so `provider: dsx` now
implies arm64, and `qualify plan --scope dsx` resolves one stream where it
resolved two. Restoring amd64 coverage means a second datahall, not a flag.

It also loses the only DSX site that could run a full stage. redstone has two
CPU machines in total, one carrying the jump host and one bound to the instance
type, so it can place the single node `stage=provision` needs and not the three
a full run places at once. The qualify-e2e-dsx label pins provision, which is
what fits.

Verified: name-check clean, actionlint clean, go build and go test
./internal/... in controller/test/e2e, and the planner resolves 1 stream at
--scope dsx, 7 at --scope full and an unchanged golden-path.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): restart the agent unit the CONTAINER image bakes, not the bare-metal one

741db944 pinned the agent unit to nke- in two places at once. One of them was
right and the other has failed every CAPD run since.

The two paths bake different names, and which is correct depends on where the
image comes from:

  bare metal   boots a published os-image release, newest v0.2.0-rc.1 tagged
               before #1565, so the unit really is nke-agent.service
  containers   the node image is BUILT FROM THIS CHECKOUT at bake time, so it
               carries the renamed nvke-agent.service

containerCAPIReadyCommands() is the container path --- request.go:264 and :517
wire it into the CAPD and nico-container backends --- so pinning nke- there
restarts a unit that does not exist. Under sh -ec the failure takes the whole
block, cloud-init never reaches multi-user.target, and the control-plane machine
never gets a nodeRef. The run then fails as "timeout after 10m0s waiting for
cluster ... to be provisioned", three layers from the cause and naming no agent:

  BootstrapExecSucceeded: WaitingForMultiUserTarget
  ControlPlaneInitialized: False, "Waiting for the first control plane machine
                                   to have status.nodeRef set"

The branch's last green CAPD run was ef3bd722 and the first red one was
741db944 itself, which is the whole window.

So the container half goes back to nvke-, the bare-metal template keeps nke-,
and the reason sits in a comment beside the one that moved. Same rename, two
answers, decided by whether we publish the artifact or build it --- the same
split that decides the qcow2 filename.

#1600 removes the bare-metal pin when an os-image release carries the renamed
unit. This half is already correct and does not move with it.

Verified: go build, go test ./internal/... in controller/test/e2e, name-check
clean.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): install from the nvke suite, pinning only what it has not renamed yet

The rebase onto main left this block installing packages from a repository that
does not have them. Our pin owned the apt coordinates and #1548 owned the
package names, the two merged without conflicting, and the result was the nke-
repo plus nvke- package names: nke-noble carries no nvke-* package at all, so
the first apt-get install would have found no candidate. Nothing had run on
hardware since, so nothing said so.

Fixed by moving to the nvke suite rather than back to the old names, because
the suite is now a superset. apt-publisher mirrors into both, so nvke-noble
carries the renamed packages AND the ones still spelled the old way, while
nke-noble has only the old. Checked against the live Packages index rather than
inferred:

  nvke-apt-public.key, nvke-apt-noble/dists/nvke-noble   200
  nvke-kubeadm-distro-1.36.3                             present
  nke-cni-ovn-images-1.4.0, nke-cni-ovn-charts-1.4.0     present
  nvke-cni-ovn-images-1.4.0, nvke-cni-ovn-charts-1.4.0   absent

So the coordinates and kubeadm-distro take the new names and the two CNI
packages keep the old ones, which the same suite serves. Their builder MRs are
merged but the publishing tags are unpushed; asking for the new name today is a
"no candidate" that terminates ProvisionCluster through
InstallCNIPreconditionFailed, which does not retry.

The agent unit and /etc/default/nke-agent stay as they are: a run boots an
os-image release, and the newest, os-image/v0.2.0-rc.1, is tagged from a commit
that predates #1565 -- verified, not assumed: at that tag the package directory
is os-image/packages/nke-agent and the deb is named nke-agent. A tag cut from
current main bakes nvke-agent.service and moves this line with it.

The template now says which half is measured and why, so the next reader does
not re-derive it. #1600 tracks the remainder.

Verified: go build, go test ./internal/... in controller/test/e2e, name-check
clean.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* test(e2e): guard both spellings of the agent the image carries

TestBuildForgeNodePayloadsDoesNotInstallNvkeAgent checked only the nke- name.
The guard is about not installing the agent over the one the image already
carries, and that name moves with the image -- a post-#1565 image calls it
nvke-agent -- so a single spelling goes half-blind exactly when the rename
lands, which is the moment the mistake becomes possible.

Checks both. No behaviour change today; the template installs neither.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* revert(qualify): drop the l40s scope and the smoke label

Both were scaffolding for testing this branch, not something it needs to ship.
The l40s streams they selected are main's and stay; only the scope over them
and the label that asked for it were ours.

They came as a pair and go as one: the workflow pinned qualify-e2e-smoke to
SCOPE=l40s and STAGE=provision, so removing the scope alone would leave a label
that fails at plan time with no such scope.

The dsx scope's comment named l40s as one of the scopes that cannot reach the
DSX stream; it now names only golden-path, which is what remains true.

Verified: actionlint clean, name-check clean, go test ./internal/... in
controller/test/e2e, and the planner resolves golden-path 2, dsx 1, full 7 with
--scope l40s now an error rather than an empty plan.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(e2e): record the DSX inputs, and say what the provider's credential is

Two review findings, both about a description that stopped matching the code.

The provenance artifact listed Forge's identifiers and none of DSX's, so a DSX
run recorded which stream and which versions it used and nothing about which
datahall answered -- the one question the run log cannot answer either, since
the job name carries capabilities rather than infrastructure. Nine rows added
beside the Forge ones, following the same shape, and the jump host joins the
withheld list because it is a secret and the artifact is downloadable.

newDSXProvider's doc comment still said the provider reads a datahall's own
in-cluster SSA client and that the variables are an override. It does not:
tokenSource.credentials() reads DSX_<DATAHALL>_SSA_CLIENT_ID and _SECRET and
fails naming both when either is empty. The borrowed in-cluster identity is
what the manual runs used and what the provider deliberately does not do.

Verified: actionlint clean, name-check clean, go build and go test
./internal/... in controller/test/e2e.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(e2e): correct the comments the last few commits left behind

Review found five places where prose outlived the code it described. Four were
made stale by changes in this branch and one by the datahall moving.

The instance type exists now and the comment still said it did not. It binds
one machine, the ARS-221GL, with an allocation reserving it, and the comment
now says that, why the 34 VR NVL72 trays are deliberately unbound, and what
that leaves the lane able to place.

The nodeUser comment said "for the same reason it is empty above" after the
entry above it was removed. It carries its own reason now, including what a
wrong account costs: a whole ReachTimeout of publickey refusals with no session
to collect diagnostics over.

The apt suites left the allowlist. Nothing renders nke-noble or nke-resolute
any more -- the template installs from nvke-<codename> -- and the only
occurrences were the allowlist entry describing itself.

Two workflow comments still described the smoke label and the L40S scope, which
the previous commit reverted.

No behaviour change: comments, and one allowlist entry whose removal name-check
confirms changes nothing.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(qualify): match jump hosts by shape, not by datahall name

Three places in the workflow named DSX_REDSTONE_DEV1_DH2_JUMP_HOST outright.
Both providers declare more than one site -- forge already has FORGE_JUMP_HOST
and FORGE_YTL_JUMP_HOST -- and which site a run reaches is decided inside the
suite by capability, so a name written up here is right about one site and
wrong about the rest.

The withhold step redacted a hand-typed list of three hosts out of the log and
the JUnit report before they are uploaded. A host missing from that list is one
the suite names in its errors and the artifact then publishes, with nothing
failing to say so. It now redacts every *_JUMP_HOST variable in the
environment, so a site added later is covered by having named its secret the
way the convention already requires.

The provenance step's withheld-value list had the same shape and is now matched
as *_JUMP_HOST|*_TELEPORT_JOIN_TOKEN, which classifies the four existing names
exactly as before.

The jump host assertion is removed rather than generalised. It cannot be
correct here: the workflow does not know which site resolved. forge.New and
dsx.New each already validate the jump host of the site that did resolve, name
that site in the error, and fail before anything is created -- both covered by
tests. This does cost the thirty-second failure on an unset secret; the
provider's failure arrives after Teleport join and image staging instead, still
before any machine exists.

What is left naming the datahall is the env block, which GitHub gives no
wildcard for, and the provenance rows, which enumerate for the same reason the
forge rows above them do.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): place the site controller on a CPU type, not any type of the arch

Place matched instance types on architecture alone, dropping the
machineType=cpu that Resolve had just selected the site on. A GPU type
declares an architecture too, so a datahall declaring one of the same arch
above its CPU type would have had its site controller placed on accelerator
hardware -- taken by a run that asked for a plain machine, and taken from the
GB200 streams that exist to exercise it.

MatchCPU already spells both capabilities, and infra's own comment on
CapabilityMachineType says why a caller wanting a plain machine has to ask:
"matching on architecture alone can land on one". Place is the caller that did
not ask.

Latent on redstone-dev1-dh2, which declares one type and that type is CPU. The
test declares a GPU type first, so it fails on the old behaviour by placing on
tenant-gpu.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): keep an absent HTTP timeout absent

WithTimeout documents that it raises a shorter timeout "and leaves an absent
one absent", but zero is not greater than or equal to the floor, so an unset
Timeout fell through and was bound. Zero means no timeout: raising it is
lowering it from infinity, and a caller that left the field unset wants its
context to be the only bound. The Forge helper this moved from kept 0 as 0.

Tested, including that the result is a copy: the caller keeps its client and
any transport it injected.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(qualify): scope the DSX credential, scrub the issuer, cover DSX in the self-check

The SSA issuer, client ID and client secret sat in the job-level env, so every
step of every lane saw them -- checkout, setup-go, site-inputs, docker login,
the artifact upload -- when only the suite reads them. This file already scopes
FORGE_API_KEY to the one step that needs it; the DSX credential now sits beside
it. The identifiers stay at job level because the provenance step reads them
back by name.

SSA_ISSUER is a secret and the token exchange writes it into the errors it
returns, which reach the uploaded log and the JUnit report. The withhold step
scrubbed only jump hosts, so it is now matched alongside them and the step is
named for what it does.

The resolved-inputs self-check greps the workflow for the variable prefixes it
covers, and DSX was not among them, so eight vars.DSX_* references escaped it
silently. DSX_REDSTONE_DEV1_DH2_NODE_USER also had no row, so run-inputs.txt
omitted the login a DSX run used.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(e2e): correct comments the DSX work left wrong

Place's godoc and the Selection type both described machine pinning as how a
site controller is placed. Machines are optional and usually absent, which is
the whole point of making them so, and placement is on the CPU instance type.

"Both providers declare more than one site" was false: dsx.yaml declares one.
A provider can declare more than one, and forge.yaml does, which is what the
removed assertion could not have been right about.

The allowlist's note claimed the e2e lane pins nke-kubeadm-distro. It installs
nvke-kubeadm-distro and pins only the CNI packages and the agent unit, which
is what the entries below it say.

policy.yaml's naming rule requires a <gpu> segment that the DSX stream has no
value for, and its header still listed only the Forge lanes.

The prekubeadm template cited internal/infra/forge/userdata.go, which moved to
internal/infra/provision.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): redact the provider's own credential from the diagnostics

newStack returns the credentials it put on the node so teardown can redact
them from the diagnostics archive, and its doc says it names every one. It
named the Forge API key, the tenant password and the database password, all
read in that function. The CAPI provider configuration's credential was not
among them, because it is built elsewhere.

On Forge that was invisible: the configuration's token is the API key, already
named. On DSX it is a minted SSA bearer token, live for fifteen minutes, and a
failed run uploads the archive while it still is.

Asked of the configuration rather than listed, and on the interface rather than
read off a concrete type: whoever adds a provider is the one who knows which of
its fields is a credential, and the archive is published whatever the run did.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(e2e): refuse a full run on a provider with no tenant spec

The tenant half of a full run is nicoForgeSpec, which decodes the environment
as a Forge declaration with unknown fields rejected. A DSX environment carries
tenantID and nodeUser, so the tenant fails every time however healthy the
datahall is -- and the dsx stream is in scope full while the dispatch stage
defaults to it, so nothing stopped such a run from starting.

The cost is the point. Without this a full DSX run takes a machine, provisions
it and installs the whole stack before reaching a failure that was certain
before it started: forty minutes, and on redstone-dev1-dh2 the only CPU
machine the datahall has, so nothing else can run meanwhile.

Checked in BeforeAll, beside the stage it already validates, which is before
any machine is asked for.

Not Forge rather than is-DSX: the limitation is that the tenant spec speaks one
dialect, so a third provider meets the same wall, and naming DSX would wave it
through to the same deterministic failure.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(qualification): describe the DSX lane

The qualification docs described a one-provider world. environments.md said
there was exactly one environment file, overview.md named only the qualify-e2e
label, and the e2e README's prerequisites covered only Forge -- so the SSA
variables a DSX run needs surfaced as runtime errors rather than as something
written down.

environments.md now says there are two files and that one file is one
provider, and the "Adding a provider" section carries dsx.yaml as the worked
example: the datahall key is the API host, credentials are per datahall and
named for that key, and the lane is provision-only.

overview.md lists the three labels and what each runs, and says why the DSX
label pins stage provision rather than taking the repository default.

The README gains the DSX prerequisites beside the Forge ones: the SSA client
and issuer, the identifiers, that there is no cluster fallback, and which
stages to use.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(qualify): keep the full scope to streams a full run can finish

`full` carried no selector, so it matched every stream. A dispatch defaults to
stage full, and the suite refuses a full run on any provider whose tenant it
cannot build, so the scope put a DSX lane into every full-scope run that could
only fail -- whatever the versions under test, and before this it failed the
slow way, at the tenant, having held the datahall's only CPU machine through
provision, bootstrap and deploy.

Scope and stage are otherwise independent, and this is the one place they are
not. `full` now means every stream a full run can finish rather than every
stream, which today is every Forge stream. The selector comes off when a DSX
tenant spec exists.

Tested against the shipped policy rather than a fixture, because the selector
looks redundant exactly until a second provider is added, and a test that
reads the real file is what stops it being dropped as noise.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): stop requiring a DSX site id nothing sends

validate required `id`, and the field said a create request carries it. No
request this package builds does: the API host is derived from the key the
datahall is filed under, which is what makes a site id redundant here. So an
unset DSX_<DATAHALL>_SITE_ID skipped an otherwise usable datahall, and the run
reported a missing field no request would have carried.

The field stays, because it is what the datahall is called in the DSX APIs and
in a bring-up procedure, and a reader comparing the two wants it. It is simply
not required.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(qualify): credit the label for what it set, and withhold both issuer forms

The qualify-e2e-dsx label names SCOPE and SITE_STAGE outright, ahead of the
repository variables. The Record step's source chain knew only the dispatch
input, the variable and the workflow default, so every label run attributed
scope=dsx and stage=provision to a variable that did not produce them --- in
the artifact that exists to say where each value came from.

The withhold step replaced the raw secret. auth.go trims whitespace and a
trailing slash from the issuer before using it, so an issuer stored with a
slash reaches an error without one and the literal match left that form in the
uploaded log and JUnit file. Both spellings are now withheld.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(e2e): correct the DSX lane's own description

SSA_ISSUER is the issuer base url, not the token endpoint: the exchange posts
to issuer + "/token". A hand-run following the README posted to /token/token,
which answers as a rejected client and so reads as a bad credential rather
than a bad URL. Corrected in the README, auth.go and dsx.go, which all three
said the same wrong thing.

The hand-run command passed no -e2e.capabilities, and redstone-dev1-dh2 offers
an arm64 CPU type only while an absent arch defaults to amd64, so following it
failed in Resolve. A DSX invocation is now spelled out.

"The lane is provision-only" contradicted the paragraph around it: bootstrap
runs, only full is refused. The label pins provision; the stage limit and the
scope limit are separate things and are now described as such.

The overview's label table said qualify-e2e runs golden-path. It runs
QUALIFY_E2E_SCOPE, and golden-path only when that is unset.

dsx.yaml named the jump host in a comment -- the value the workflow holds as a
secret and scrubs from artifacts, which writing it down undoes.

fullStageSupported was inserted between newDeployConfig's doc comment and its
function, so it read as a continuation of that comment and newDeployConfig
lost its doc. Moved above it.

Reported in review.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(e2e): handle the Repairing instance status the new SDK defines

The SDK migration in #1657 added INSTANCESTATUS_REPAIRING, and this switch
lists every status the SDK defines rather than carrying a default -- which is
the point of it, so a new one surfaces as a lint failure here instead of
falling silently into whichever branch a default happened to be.

Repairing is the datahall working on the machine. Not fatal, so the poll
continues; no address is taken from it either, because an instance under
repair is not one to hand a run. An instance that never leaves Repairing ends
at the ReadyTimeout, whose error names the last status.

Found by golangci-lint's exhaustive check against the new SDK.

Signed-off-by: Jayson Du <jaydu@nvidia.com>

---------

Signed-off-by: Jayson Du <jaydu@nvidia.com>
2026-10-15 11:04:31 -07:00
Davanum Srinivas 73ee4a281a fix(deploy): pin the overlay's fallback controller image to the current release (#1654)
The fallback was an unreleased September build in the pre-rename repository. Pin v0.2.0-rc.2 on GHCR; update the comment, allowlist and docs.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-10-15 12:48:35 -04:00
Alex PelavinandNaveen Bhoomakkanavar d247dd374d ci: publish nightly beta builds (#1330)
* ci: publish nightly beta builds

A new nightly workflow tags a green commit on main as the next
vX.Y.Z-beta.N, and every pipeline that publishes to NVCR or S3 now builds
and publishes on that tag.

Nightly tagging
- nightly-beta-tag.yml runs at 02:00 UTC and on dispatch. It picks the
  newest of the last 30 commits on main whose five publishers (Image NVCR,
  Image Provisioned NVCR, Chart Publish NVCR, Agent Artifact, Agent Artifact
  NVCR) all succeeded, tags nothing if that commit already carries a beta,
  asks hack/next-tag.sh for the next version and pushes the tag with
  BETA_TAG_TOKEN, because a GITHUB_TOKEN push starts no workflows.
- hack/next-tag.sh prints the next release tag without creating it.

Beta publishing
- A bare vX.Y.Z-beta.N tag only triggers the run. Each component is
  versioned and tagged like any other build of that commit: its own
  `git describe --match '<component>/v*'` as the version, plus sha-<commit>
  as the alias. The beta tag name is never published, which a describe
  never matches.
- The controller image, provisioned image, chart and OS image need no beta
  branch: a beta commit takes the ordinary describe path. The chart version
  is the describe without the v, and its appVersion matches the image tag.
- The agent and CLI artifacts keep a guard so the beta tag name is not added
  as an alias by their tag arm.
- nvkectl and the CLI S3 path use the cli describe; release.yml has no
  version override and the GitHub release, GHCR copy and DSX promotion are
  skipped for a beta.
- The agent debs take the version the Makefile describes, upload to
  releases/<describe>/ in the apt intake bucket without touching
  index.json, and publish to NVCR under <describe>.
- The OS image resolves its version once, in the first job, and the bake,
  NVCR copy and S3 publish all read it.

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>

* ci: skip the DSX legs of the chart and nvkectl on a beta tag

A beta is not promoted to DSX, so the chart and nvkectl a beta builds
must not be published there either: they would name images that org
never gets. The leg still starts, but every step from the registry
login on is skipped.

Co-authored-by: Alex Pelavin <apelavin@nvidia.com>
Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci: bake only the golden-path OS images on a beta tag

A beta is qualified on the golden path -- Ubuntu 24.04, non-FDE, on
amd64 and arm64 -- so it bakes those two legs instead of all eight.
The shared release assets the default flavor carries are not missed:
they feed the Release, which a beta does not cut. Every other trigger
builds the same eight legs as before.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci: never tag a commit from before the beta publishers

The publishers' beta triggers land with nightly-beta-tag.yml, so a
commit without that file would take a tag that starts nothing. Stop
walking main at the first such commit; everything older predates the
triggers too.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci: tag beta nvkectl artifacts on NVCR with the describe version

A beta published nvkectl to NVCR as sha-<commit>-<os>-<arch> only, so
qualification could not pull it by the version the binary reports. Add
the cli/v* describe version as a second alias on a beta tag, as the
other components already do: <describe>-<os>-<arch>. The beta tag name
is still never an alias, and main and cli/v* tags are unchanged.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

* ci: publish beta OS images and nvkectl to the prod bucket

A beta tag is cut from main and qualification reads its OS image from the
prod CDN, so a pushed vX.Y.Z-beta.N now uploads through s3-publish, beside
the os-image/v* and cli/v* releases. A manual OS image run still goes to
non-prod whatever ref it names.

s3-publish's deployment policy admits only cli/v* and os-image/v* today,
so it needs a v*-beta.* tag rule, as nvcr and apt-intake already have,
before the first beta reaches it.

Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>

---------

Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
Signed-off-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>
Co-authored-by: Naveen Bhoomakkanavar <nbhoomakkana@nvidia.com>
2026-10-15 16:16:36 +05:30
pbikki fadaa3483e feat(controller): validate node pool labels and taints, with a configurable label allowlist (#1615)
* chore: validate node labels and taints

Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com>

* feat(controller): make the node label allowlist configurable

Labels under kubernetes.io and k8s.io are rejected unless listed in
nodeMetadataAllowlistedLabelKeys in nke-controller-config (chart value
nodeMetadata.allowlistedLabelKeys, empty by default). Internal nke/nvke
domains and the control-plane role key are always reserved, and the
controller fails to start if the allowlist names them.

Rejection errors name the reserved domain the key falls under.

Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com>

* docs(controller): clarify node label allowlist

Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com>

* fix(controller): align reserved node metadata domains and pass name-check

Reserve nvke.nvidia.com, nke.nvidia.com and nke.io, dropping nvke.io.
The OpenAPI descriptions now list all three and mark the nke domains as
legacy. Allowlist the bare nke.io token in name-check: the controller
names it only to reserve it.

Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com>

* fix(controller): address review on node metadata validation

Report the first invalid node label in sorted key order so repeated requests name the same key. Document the allowlist exclusions and startup validation in the chart values and README, and state why control-plane pools reject taints.

Regenerate the embedded OpenAPI spec in server.gen.go, which was stale after the rebase, and fix a label test that the new Calico gate rejected first.

Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com>

---------

Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com>
2026-10-14 13:25:14 -07:00
Vignesh Goutham Ganesh 8a31cda52b ci: allowlist the oidcPrefixNKE site-spec constant (#1624)
The name check rejects the identifier even though the "nke:" prefix it names is already allowed.

Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com>
2026-10-14 16:44:03 +00:00
Miancheng Lin 9dcdcbc45b refactor(controller): drop the filesystem OS profile path (#1590)
* refactor(controller): reduce the kubernetes_version migration to its schema change

The backfill populated existing node pools and node sets from OS profile
metadata on disk. It is no longer needed: every database with rows to populate
applied this migration long ago, and the only database that still runs it is a
new one, which has no node pools or node sets.

Dropping it removes the last production caller of internal/utils/osprofiles.go.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

* refactor(controller): drop the filesystem OS profile path

OS images and releases are resolved from MachineImage, ClusterRelease and
NodePoolRelease custom resources. The filesystem tree they replaced had no
reader left, so it goes along with the tool that converted it:

- hack/osprofiles-to-crs and its make target, fixture-releases
- internal/utils/osprofiles.go
- the osProfiles trees under test/fixtures/profiles and profiles/example

PROFILES_DIR stays. It still carries config profiles and the runbooks their
hooks reference, which have no custom-resource equivalent.

test/fixtures/releases is now maintained by hand. The converter's --check test
was what held it to the profile tree; with no tree to compare against, the
remaining cover is go test ./internal/clients/nico, which renders bootstrap
user-data from the nodepoolrelease manifests.

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>

---------

Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
2026-10-13 16:48:08 -06:00
Terry Howe 92d0f1541b refactor: rename CRD group to internal.nvke.nvidia.com and NKECluster to NVKECluster (#1585)
* refactor: rename CRD group to internal.nvke.nvidia.com and NKECluster to NVKECluster

Moves the management-engine's internal API group from internal.nke.nvidia.com
to internal.nvke.nvidia.com and renames the NKECluster kind to NVKECluster,
with its plural, controllers, finalizers and generated artifacts.

A group change is a new CRD: there is no conversion webhook and no automatic
migration, so existing sites copy their CRs across by hand. The procedure is
documented in docs/operations/crd-group-migration.md.

Regenerated with `make generate manifests` in management-engine and
`make chart-crds` from the root.

Two names the issue listed stay as they are, and the allowlist entry is
re-scoped rather than removed:

- NKENodePool and nkeClusterRef belong to the DGXC platform API
  (compute.private.x-dgxc.nvidia.com), which this repository emits CRs for in
  controller/scripts/cwe-to-platform-crs.sh but does not own.
- NKECluster also appears there, and in hack/test_name_check.py, where it is
  the fixture that proves the name-check detector still catches the shape.

Refs #1551

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: add the migration page to docs/README.md and reformat after the rename

docs-check requires every page under docs/ to have a row in docs/README.md,
not only an entry in docs/index.yml.

The longer group name pushed a map literal out of gofmt alignment in
cli/internal/operator/dynamic_test.go, which golangci-lint reports as gci.

Refs #1551

Signed-off-by: Terry Howe <thowe@nvidia.com>

* docs: rewrite annotation keys and order CWE in the CRD group migration

The release CRs carry machine-init-kubernetes-version annotations under the old group prefix; copying them verbatim would hide them from the controller. Rewrite the keys, drop last-applied-configuration, verify in step 5, and document the CWE ordering and why status must be restored while the engine is stopped.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-13 14:59:44 -06:00
Jun Shun Zhang be4a79035f test(oidc): add reference API-server tests (#1418)
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com>
2026-10-13 19:26:35 +00:00
Terry Howe 5427e14ac7 refactor: launch rename E, identity and RBAC dual-accept windows and nke: prune (#1563)
* refactor: accept both identity spellings and rename tenant RBAC to nvke

Accept both forms for one release on the receiving side: the nvke-controller
and nke-controller JWT audiences, the nke: and nvke: reserved identity
prefixes, and the auth.nvke/auth.nke auth-config apiVersions.

Rename the tenant RBAC objects to nvke:cwe and nvke:capi-cluster-admin, move
the server-side-apply field manager to nvke, and prune the old nke: objects
from each tenant cluster after the new manifest applies. A site that pins the
old tenantRbacName keeps what it applies.

Make the Teleport resource-group label a setting and move the managed-by,
token prefix and resource-group defaults to nvke for new sites; existing
sites pin the old values.

Leave the leader-election leases alone permanently and record them under
existing-sites identity in the name-check allowlist.

Part of #1496

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: align the local controller config with the new Teleport defaults

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: satisfy the controller linters in the legacy RBAC prune

golangci-lint flagged the new prune helper: legacyRBACObjects as a package
global, the repeated "nke:cwe" literal, and the Delete error checked inline
through IgnoreNotFound. Make the list a function, name the literal, and split
the Delete out of the if. Also fix a misspelling the US locale rejects.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-13 10:08:43 -06:00
John Griffith 7c7c02949e chore: Rename nke to nvnke for images segment of codebase https://github.com/dsx-ai-factory/nvke/issues/1498 (#1548)
* chore: Rename nke to nvnke for images segment of codebase #1498

This is a "brute force" grep/replace approach to the image related
occurences of the nke name.  The goal is basically just a s/nke/nvnke/g
for everything in the repo that is associated with os-images.

This replacement bleeds into some other components (controller and agent)
that includes references to os-image names.

Closes #1498

* Keep existing image names valid

* Chore: Fix/Add DCO

Signed-off-by: jgriffith <jgriffith@nvidia.com>

---------

Signed-off-by: jgriffith <jgriffith@nvidia.com>
2026-10-12 17:08:48 -06:00
Chao 6bc0e1c9e8 fix(agent): rename node agent package and contracts to nvke (#1565)
* fix(agent): rename node agent package and contracts to nvke

Signed-off-by: Chao Chen <chaoch@nvidia.com>
2026-10-12 14:14:32 -07:00
Terry Howe c72363341c ci: update ARG-pinned base image digests weekly (#1245)
* ci: follow ARG-pinned base image digests weekly

hack/base-image-check.sh requires the release-relevant Dockerfiles to name
their bases by digest, and records the cost in its header: Dependabot's docker
ecosystem reads an image named on a FROM and does not resolve an
`ARG ..._IMAGE=` default, so the golang and alpine bases of the two published
images are watched by nothing. Pinned and unwatched is the worst of both -- the
digest that ships is immutable, and it also never moves, so an upstream rebuild
never reaches a release until somebody notices by hand.

hack/base-image-update.sh re-resolves every ARG-pinned digest in the tree and
rewrites the ones whose tag has been republished. It changes digests only,
never tags, so the Go version policy in dependabot.yml stays the only thing
that decides when a tag moves. base-image-digests.yml runs it weekly and opens
a pull request with whatever moved; reviewing that is the same act as reviewing
a Dependabot one.

Scope is implicit rather than listed: the set of lines this touches is exactly
the set that is already digest-pinned through an ARG, so it cannot drift from
the EXEMPT list in base-image-check.sh.

Verified against Docker Hub while writing this: alpine:3.24.2 and
golang:1.27.1-alpine still resolve to the digests pinned here, and
golang:1.27.1 does not -- its riscv64 child was rebuilt on 2026-09-30 against a
newer buildpack-deps, which no tool in this repository would have reported.

Naming the image on the FROM instead would let Dependabot see it, but gives up
the --build-arg GOLANG_IMAGE override the e2e lanes use to route Docker Hub
pulls through NKE_E2E_DOCKERHUB_MIRROR. That trade-off stays open; this does
not depend on how it is settled.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Correct the GITHUB_TOKEN guidance: a pull_request run caused by GITHUB_TOKEN
is created in an approval-required state rather than not created at all, so
the remedy is approving the queued merge-gate.yml run, not closing and
reopening the pull request.

Scan every ARG form base-image-check.sh accepts. The check script resolves an
ARG default with ARG[[:space:]]+; the update script required a single space,
so a tab- or multi-space-separated ARG was skipped and its stale digest
reported as current.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* ci: guard base-image digest bump on repository_id

The job was gated on `github.repository == 'dsx-ai-factory/nke'`. The
repository has since been renamed to nvke, so the condition never matches
and the weekly digest bump silently stops running.

Switch to the repository_id guard the other workflows already use, which
is rename-proof and satisfies the actionlint rule forbidding a
github.repository string compare.

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-12 10:50:07 -06:00