mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2579
97
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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> |
||
|
|
f41e9b693c |
ci: version and release every component by the bare vX.Y.Z tag (#2164)
* ci: version every artifact by the bare v* describe
Every published artifact is now versioned by
`git describe --tags --always --match 'v*' "${GITHUB_SHA}"`, with no
component prefix, so component versions follow the nvke tag rather than
moving independently. The controller image, chart, provisioned provider
image, agent binaries and packages, nvkectl and the OS image resolve
their version this way, and the version is passed to each build so the
binaries report the same version they are published under.
The release registry describes and resolves components against the
bare v* tags, so a beta qualifies the artifacts its tag published.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: build and publish every component on a bare vX.Y.Z tag
Every component build that a vX.Y.Z-beta.N tag runs now runs on a bare
vX.Y.Z tag too: the controller and provisioned provider images, the
controller chart, the agent binaries and packages, the OS image and
nvkectl. The gates that admitted only beta tags admit any bare v* tag,
and nvkectl is versioned by the bare describe for both.
Beta-only behaviour is unchanged: a beta still skips DSX, stays out of
the apt index and bakes non-FDE images only. A release does all three.
promote-dsx now runs on vX.Y.Z, so it tags DSX with the bare describe
the NVCR copy was published under.
The beta flag in tag-publish.yml is removed, so nvkectl is published to
GHCR for every tag it is built for, betas included. cli-artifact.yml
versions it by the bare describe.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* build: version every module by the bare v* describe
The Makefiles, the root cmd_version and the scripts that derive the
agent version described against component tags (agent/v*, controller/v*,
cli/v*, os-image/v*, cluster-api-provider-provisioned/v*,
management-engine/v*). They now use
`git describe --tags --always --dirty --match 'v*'`, the version the
publish workflows already stamp, so a local or CI build reports the same
version as the artifact published from that commit.
The fallbacks for an untagged checkout and a build outside git are
unchanged, as is the agent's 0.0.0- prefix for an untagged .deb. The
e2e VALIDATE_VERSION now pairs with the nvke-validate image, and the
comments and log lines that named the old describe are updated.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* docs: describe one vX.Y.Z tag releasing every component
Components are no longer tagged on their own. The release docs, the
module AGENTS.md and README files and SECURITY.md now say one signed
vX.Y.Z tag releases the repository and every component built from it,
versioned by `git describe --tags --always --match 'v*'`.
docs/artifact-publication.md lists what each workflow publishes for a
release and for a nightly beta, and that an RC publishes nothing of its
own. The prefixed tag instructions, and the go get example that relied
on them, are removed. Mentions of past component tags that remain true
as history are kept.
The qualification docs and the qualify-e2e resolution input now say a
release, an RC and a beta are all qualified with commitDescribe, which
describes the commit the version marks and so resolves every component
to it. gitTag takes the highest v* tag in the repository and is not for
qualification.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: stop publishing artifacts from component release tags
A component release tag (agent/vX.Y.Z, controller/vX.Y.Z,
cluster-api-provider-provisioned/vX.Y.Z, os-image/vX.Y.Z, cli/vX.Y.Z) no
longer starts a publisher; a release is a bare vX.Y.Z tag. Component
release candidate tags still start the same workflows as before.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: publish every GHCR release artifact on vX.Y.Z
agent-artifact.yml, chart-publish.yml and image-validate-nvcr.yml only ran
on component tags, so a release published none of them. Each now runs on a
bare vX.Y.Z tag and versions by the bare v* describe. The controller and
provider GHCR promotions and the agent .deb GHCR push also run on vX.Y.Z
(not betas), since they were gated on component tags too and the GHCR
chart waits for the controller image there.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: name every tag build by its describe version, not the tag
The publishers versioned the build by the bare v* describe but still took
version aliases, GHCR promotion tags, the agent .deb version, the nvkectl
S3 release path and the os-image version from the tag name. On a component
RC tag the two disagreed, and on a vX.Y.Z tag agent-deb's GHCR push would
have been tagged with the commit SHA. Every one now uses the describe
version, which on the tagged commit is the tag itself.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: pass the describe version to build commands through the environment
The version is git describe output, which a tag name controls. It was
interpolated with ${{ }} into the run script of six build steps, so a tag
containing shell syntax would have run in jobs that hold registry
credentials. Each step now reads it from an environment variable.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: give component RC tags no version alias
A component RC tag still starts the agent and nvkectl publishers, and
they name the build by the bare v* describe. On a commit that already
carries a release tag that is the release's version, so the RC run would
move the release's alias to a new manifest. Only a bare v* tag now adds
the version alias; a component RC tag publishes sha-<commit> only.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: resolve every publisher's version through one checked script
Every publisher resolves its version through
release/hack/describe-version.sh instead of calling git describe itself.
A bare v* tag run is published under its own tag; any other run under
the v* describe. Before anything is pushed, the script refuses:
- a describe that is not a v* release, RC or beta, its describe suffix,
or a bare commit. The describe can name any v* tag on the commit, and
agent/Makefile passes it to the shell inside -ldflags.
- on a v* tag run, a tag that is not a version or does not name the
commit being built.
- on a component tag run, a commit a v* tag already names. Its describe
is that tag, so a component RC there would republish that tag's
.debs, images, charts and nvkectl.
Naming a tag run by its tag rather than the describe matters when the
commit carries several: git describe prefers the annotated release, and
of two lightweight betas the first by name. A beta re-run on a released
commit, or a second beta on one commit, now publishes under its own
version instead of another tag's.
release/hack/test_describe_version.py covers these cases against fixture
repositories, and runs with next-tag-test in the merge gate.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: let only a release version into the apt index and GHCR
agent-deb-publish.yml chose whether to update index.json, and whether to
push the .debs to GHCR, from the ref: anything but a beta tag did both.
An agent/v* RC tag carries no -beta., but its packages are versioned by
the describe, so on a commit past a beta it made that build installable
from apt and pushed it to GHCR.
The build job now reports whether its version is a bare vX.Y.Z, and both
follow that instead. A release enters the index and GHCR; a beta, a
component RC and anything else is uploaded under releases/<version>/ and
pushed to NVCR only.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: stamp the published version into standalone nvkectl builds
A dispatched cli-artifact, cli-artifact-nvcr or cli-s3-publish run with no
dist_artifact builds nvkectl itself. The build took its version from the
Makefile's own git describe, which on a commit with a beta and a signed
release names the release, while the run publishes under the beta it was
dispatched from. Pass the resolved version as NVKECTL_VERSION, as
tag-publish.yml already does, so the binary reports the version it is
published under.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: skip a beta dispatch of the GHCR chart publisher
A beta's controller image is never promoted to GHCR, so a chart-publish.yml
run dispatched from a beta tag waited up to 30 minutes for an image that
would not appear, then failed. Skip beta refs, as the automatic beta trigger
already does.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* test: cover the triggering-tag check and a bare RC in describe-version.sh
Every invalid tag in the existing test was also the commit's describe, so
the describe check refused it before the check on the triggering tag ran,
and disabling that check left every test passing. Tag the bad names beside a
valid signed release, which wins the describe, so only the tag check can
refuse them.
Also pin that the helper names a bare RC run by its tag: the publishers'
tag filters, not the helper, keep an RC from publishing.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: recover a vX.Y.Z agent package release by dispatch
A failed agent/vX.Y.Z publish could be recovered by dispatching Agent Deb
Publish from that tag with ref set to it. Releases are now vX.Y.Z, which the
ref check refused, and a SHA got past it only for every publish job to skip,
since their bare-tag arm requires a push.
Accept a vX.Y.Z ref when the run is dispatched from that same tag, and let
it into the apt intake, GHCR and NVCR jobs. The tag names the run's version,
so the index.json and GHCR gates still admit only a release. A beta is not
admitted, as before.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
---------
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
|
||
|
|
4c2cd016d0 |
build: bump the go-dependencies group across 8 directories with 12 updates (#2251)
* build: bump the go-dependencies group across 8 directories with 12 updates Bumps the go-dependencies group with 12 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) | `4.1.7` | `4.1.9` | | [github.com/spf13/pflag](https://github.com/spf13/pflag) | `1.0.10` | `1.1.0` | | [golang.org/x/sync](https://github.com/golang/sync) | `0.24.0` | `0.25.0` | | [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) | `2.33.1` | `2.34.0` | | [github.com/caarlos0/env/v11](https://github.com/caarlos0/env) | `11.4.1` | `11.4.2` | | [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) | `1.14.52` | `1.14.53` | | [github.com/spiffe/spire-api-sdk](https://github.com/spiffe/spire-api-sdk) | `1.15.3` | `1.16.0` | | [github.com/spiffe/spire-controller-manager](https://github.com/spiffe/spire-controller-manager) | `0.8.0` | `0.8.1` | | go.temporal.io/api | `1.64.1` | `1.64.2` | | [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) | `4.0.0-rc.7` | `4.0.0` | | [github.com/osrg/gobgp/v4](https://github.com/osrg/gobgp) | `4.10.0` | `4.11.0` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.307.0` | `0.311.0` | Bumps the go-dependencies group with 2 updates in the /auth directory: [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) and [golang.org/x/sync](https://github.com/golang/sync). Bumps the go-dependencies group with 1 update in the /cli directory: [github.com/spf13/pflag](https://github.com/spf13/pflag). Bumps the go-dependencies group with 8 updates in the /controller directory: | Package | From | To | | --- | --- | --- | | [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) | `4.1.7` | `4.1.9` | | [golang.org/x/sync](https://github.com/golang/sync) | `0.24.0` | `0.25.0` | | [github.com/caarlos0/env/v11](https://github.com/caarlos0/env) | `11.4.1` | `11.4.2` | | [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) | `1.14.52` | `1.14.53` | | [github.com/spiffe/spire-api-sdk](https://github.com/spiffe/spire-api-sdk) | `1.15.3` | `1.16.0` | | [github.com/spiffe/spire-controller-manager](https://github.com/spiffe/spire-controller-manager) | `0.8.0` | `0.8.1` | | go.temporal.io/api | `1.64.1` | `1.64.2` | | [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) | `4.0.0-rc.7` | `4.0.0` | Bumps the go-dependencies group with 3 updates in the /controller/nico-sim directory: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3), [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) and [github.com/osrg/gobgp/v4](https://github.com/osrg/gobgp). Bumps the go-dependencies group with 2 updates in the /controller/test/e2e directory: [golang.org/x/sync](https://github.com/golang/sync) and [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo). Bumps the go-dependencies group with 1 update in the /management-engine directory: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo). Bumps the go-dependencies group with 2 updates in the /release directory: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) and [google.golang.org/api](https://github.com/googleapis/google-api-go-client). Updates `github.com/go-jose/go-jose/v4` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.9) Updates `github.com/spf13/pflag` from 1.0.10 to 1.1.0 - [Release notes](https://github.com/spf13/pflag/releases) - [Commits](https://github.com/spf13/pflag/compare/v1.0.10...v1.1.0) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `github.com/caarlos0/env/v11` from 11.4.1 to 11.4.2 - [Release notes](https://github.com/caarlos0/env/releases) - [Commits](https://github.com/caarlos0/env/compare/v11.4.1...v11.4.2) Updates `github.com/mattn/go-sqlite3` from 1.14.52 to 1.14.53 - [Release notes](https://github.com/mattn/go-sqlite3/releases) - [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.52...v1.14.53) Updates `github.com/spiffe/spire-api-sdk` from 1.15.3 to 1.16.0 - [Commits](https://github.com/spiffe/spire-api-sdk/compare/v1.15.3...v1.16.0) Updates `github.com/spiffe/spire-controller-manager` from 0.8.0 to 0.8.1 - [Release notes](https://github.com/spiffe/spire-controller-manager/releases) - [Changelog](https://github.com/spiffe/spire-controller-manager/blob/main/CHANGELOG.md) - [Commits](https://github.com/spiffe/spire-controller-manager/compare/v0.8.0...v0.8.1) Updates `go.temporal.io/api` from 1.64.1 to 1.64.2 Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.7 to 4.0.0 - [Release notes](https://github.com/yaml/go-yaml/releases) - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.7...v4.0.0) Updates `github.com/osrg/gobgp/v4` from 4.10.0 to 4.11.0 - [Release notes](https://github.com/osrg/gobgp/releases) - [Commits](https://github.com/osrg/gobgp/compare/v4.10.0...v4.11.0) Updates `google.golang.org/api` from 0.307.0 to 0.311.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.307.0...v0.311.0) Updates `github.com/go-jose/go-jose/v4` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.9) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/spf13/pflag` from 1.0.10 to 1.1.0 - [Release notes](https://github.com/spf13/pflag/releases) - [Commits](https://github.com/spf13/pflag/compare/v1.0.10...v1.1.0) Updates `github.com/go-jose/go-jose/v4` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.9) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/caarlos0/env/v11` from 11.4.1 to 11.4.2 - [Release notes](https://github.com/caarlos0/env/releases) - [Commits](https://github.com/caarlos0/env/compare/v11.4.1...v11.4.2) Updates `github.com/mattn/go-sqlite3` from 1.14.52 to 1.14.53 - [Release notes](https://github.com/mattn/go-sqlite3/releases) - [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.52...v1.14.53) Updates `github.com/spiffe/spire-api-sdk` from 1.15.3 to 1.16.0 - [Commits](https://github.com/spiffe/spire-api-sdk/compare/v1.15.3...v1.16.0) Updates `github.com/spiffe/spire-controller-manager` from 0.8.0 to 0.8.1 - [Release notes](https://github.com/spiffe/spire-controller-manager/releases) - [Changelog](https://github.com/spiffe/spire-controller-manager/blob/main/CHANGELOG.md) - [Commits](https://github.com/spiffe/spire-controller-manager/compare/v0.8.0...v0.8.1) Updates `go.temporal.io/api` from 1.64.1 to 1.64.2 Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.7 to 4.0.0 - [Release notes](https://github.com/yaml/go-yaml/releases) - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.7...v4.0.0) Updates `github.com/mattn/go-sqlite3` from 1.14.52 to 1.14.53 - [Release notes](https://github.com/mattn/go-sqlite3/releases) - [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.52...v1.14.53) Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.7 to 4.0.0 - [Release notes](https://github.com/yaml/go-yaml/releases) - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.7...v4.0.0) Updates `github.com/osrg/gobgp/v4` from 4.10.0 to 4.11.0 - [Release notes](https://github.com/osrg/gobgp/releases) - [Commits](https://github.com/osrg/gobgp/compare/v4.10.0...v4.11.0) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `google.golang.org/api` from 0.307.0 to 0.311.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.307.0...v0.311.0) --- updated-dependencies: - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/spf13/pflag dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/caarlos0/env/v11 dependency-version: 11.4.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/mattn/go-sqlite3 dependency-version: 1.14.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-api-sdk dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-controller-manager dependency-version: 0.8.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.temporal.io/api dependency-version: 1.64.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/osrg/gobgp/v4 dependency-version: 4.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.311.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/spf13/pflag dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/caarlos0/env/v11 dependency-version: 11.4.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/mattn/go-sqlite3 dependency-version: 1.14.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-api-sdk dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-controller-manager dependency-version: 0.8.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.temporal.io/api dependency-version: 1.64.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/mattn/go-sqlite3 dependency-version: 1.14.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/osrg/gobgp/v4 dependency-version: 4.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.311.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * chore: regenerate third-party notices for dependency bumps Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: regenerate workspace sums and nvkectl reference for dependency bumps Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Terry Howe <thowe@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
afd2d48e32 |
revert: "feat(nvkectl): install the NVKE stack on the site cluster (#2000)" (#2159)
Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com> |
||
|
|
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> |
||
|
|
82c8b7e8a3 |
feat(cli): time each bootstrap phase with spans and log lines (#1979)
* feat(cli): time each bootstrap phase with spans and log lines bootstrap site runs in five phases: preflight, bootstrap_cluster, engine_deploy, site_cluster and finish. Each phase now has a child span of the run's root span and logs one "phase finished" line with its outcome and duration_ms, so phase durations are available without a trace backend. Every log line carries operation and, once the site spec is loaded, cluster. While a phase runs, a line also carries phase, and its span_id is the phase span's. The run tracks the current phase, because the component loggers are built before a phase starts and are given no context. With --json-logs the time is in UTC. The Kind cluster's log attribute is now bootstrap_kind_cluster, so cluster means the site cluster on every line. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): keep the site cluster name on the lines that already carried it The handler adds cluster to every line, and a record that names cluster keeps its own value, so these lines carry it once. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): show the new log fields in the existing troubleshooting example Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * test(cli): let the bootstrap e2e allowlist accept the phase fields on its two log lines The allowlist matches each of those lines from time= to its end, so the operation, cluster and phase fields now on every line made gitleaks flag both again. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * test(cli): cover an interrupted bootstrap and a masked phase error Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): give exported log records the phase span and fields With OTLP export on, the tee handler put the root span into a record's context before the log handler ran, so a context-free logger never got its phase span, and the exported record never got phase, operation or cluster. Resolve the span and fields once and use them for both the stderr line and the exported record. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): log trace fields before the run fields again The previous commit stamped trace_id and span_id after operation, cluster and phase, which the e2e gitleaks allowlist does not match, so its etcd key line was reported as a leak. Restore the order and pin it in a test. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): let a bound logger field win over the run's field A logger made with With("cluster", ...) got the run's cluster field as well, so the line had the key twice. Track the top-level keys a handler has bound and skip those run fields. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * refactor(cli): name the phase tracker's error parameter previousErr Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): track a logger's bound fields per group Attributes bound after WithGroup go in the same group as the record's attributes, so the run's field collided with them and the line had the key twice. Start a new set of bound keys at each group, and make the test assert the group's one value. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * Revert "fix(cli): track a logger's bound fields per group" This reverts commit |
||
|
|
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> |
||
|
|
2cfd00081b | feat(nvkectl): install the NVKE stack on the site cluster (#2000) | ||
|
|
82e717988b |
feat(cli): export a command's telemetry to its site's OTLP endpoint (#1931)
* feat(cli): export a command's telemetry to its site's OTLP endpoint A site's config can hold an OTLP endpoint, set with nvkectl config set-site --otlp-endpoint and --otlp-insecure. Commands that use the site export their spans and log records there, ahead of OTEL_EXPORTER_OTLP_ENDPOINT. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * refactor(cli): inline the bootstrap export check and list the site commands The bootstrap export annotation is read in two places, so the helper that wrapped it is gone, and the commands that use a site are a list rather than a map. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): do not send to a stored https endpoint in clear text A hand-edited site config could pair an https otlp-endpoint with otlp-insecure, which set-site rejects. The site endpoint is now treated as unusable, with the one warning that names the site, so the headers are never sent without TLS. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> |
||
|
|
470dcdb380 |
feat(cli): export nvkectl spans and add --otlp-endpoint to bootstrap site (#1880)
Spans (the run's root span and its HTTP client spans) are exported to the same OTLP endpoint as the log records. bootstrap site takes --otlp-endpoint and --otlp-insecure, and points the temporary controller in the bootstrap cluster at the same endpoint so its spans join the run's trace. OTEL_EXPORTER_OTLP_HEADERS are now also given to the temporary controller, in a 0600 values file and not a command-line argument, and are masked in nvkectl's output, exported telemetry and diagnostics. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> |
||
|
|
a8e012b594 |
feat(cli): judge NicoIdentity freshness by its published next check time (#1930)
* feat(cli): judge NicoIdentity freshness by its published next check time nvkectl get providers reports a NicoIdentity STALE once the current time is more than five minutes past the status.nextCheckTime CAPNICo publishes, when that time is later than lastCheckedTime. Without a usable next check time it keeps the ten-minute rule, after the last check or, for an Identity never checked, after its creation. A nextCheckTime that is not a valid time reads UNKNOWN, and such an Identity is never preferred over a well-formed one that names the same Secret. The credentials object in -o json and -o yaml gains nextCheckTime and drops staleAfterSeconds. A STALE detail says how overdue the scheduled check is, and names a cause only when nvkectl can observe one. Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: describe credential freshness by the provider's schedule The CREDENTIALS table and the FAQ say a result is STALE when the provider's scheduled check is overdue, or, without a schedule, when its last check is too old, and that DETAIL names a cause only when nvkectl can see one. The JSON paragraph lists nextCheckTime. Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * test(cli): stop asserting the removed stale threshold field Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * test(cli): check the exact stale detail for a check overdue by its schedule Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * test(cli): check that get providers -o json shows the next check time Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * fix(cli): say the age fallback applies without a usable schedule A published next check time that is not later than the last check is ignored, as when no schedule is published, so the get providers help names that case too. The command reference is regenerated. Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: say the age fallback applies without a usable schedule Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * fix(cli): name the never-checked case in the get providers help An Identity that has never been checked falls back to its creation time, not to a last check, so the help says so. The command reference is regenerated. Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * fix(cli): say nextCheckTime is reported even when freshness ignores it Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: say what to check when a STALE detail names no cause Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * fix(cli): treat a malformed nextCheckTime as no schedule A nextCheckTime that is not a valid time now reads exactly like an absent one: freshness falls back to the age rule, the verdict comes from the Ready condition, and the Identity ranks like one with no schedule. Before, it read UNKNOWN, which hid a conclusive FAILING result. Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: drop the malformed next check time from the UNKNOWN row Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * fix(cli): ignore a next check time further ahead than the age fallback A published nextCheckTime more than StaleAfter after the last check no longer counts as a usable schedule, so a far-future value cannot keep a stopped manager HEALTHY. The result then reads by the age fallback, as when no schedule is published; JSON still shows the published value. Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> --------- Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> |
||
|
|
bbf462edbd |
feat(cli): export nvkectl log records over OTLP (#1845)
* feat(cli): export nvkectl log records over OTLP When OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_OTLP_LOGS_ENDPOINT is set, nvkectl sends its log records to that endpoint over OTLP/gRPC with the run's trace ID and span ID and the record's attributes. stderr output is unchanged. Run.EnableOTLP configures the export before the log handler is built, so the bootstrap flag and the per-site endpoint can supply the endpoint later. An export failure is reported by one warning and never fails the command, and the flush on exit waits at most two seconds. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): read one OTLP endpoint and one header setting Read only OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_INSECURE and OTEL_EXPORTER_OTLP_HEADERS. The signal-specific variables, such as OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, no longer apply, so a variable that the OpenTelemetry convention defines for logs alone cannot route spans once the same endpoint carries them. The exporter library fills each setting it is not given from its own OTEL_EXPORTER_OTLP_LOGS_* variables, so removing them from nvkectl's parser was not enough. Endpoint, transport security, headers, compression and timeout are now all set explicitly. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * refactor(cli): put the run's span context on exported records in the tee handler Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): rewrite the OTLP log export comments and operator guidance Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): flush the OTLP log export after the command's last record execute called Finish, which shuts the log exporter down, before announceTrace logged "command finished" for a successful query command. The record reached stderr and was dropped from the export. Announce the trace first and finish the run after it, and cover the final record with a test that runs a command against an in-process collector. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * refactor(cli): lock only the OTLP state that another goroutine reads handlerBuilt and logProvider are used only by the goroutine that sets up logging and calls Finish, so they need no lock. warnLogger is read by the log exporter's goroutine, so it is an atomic pointer, and warnExport no longer takes the run's lock. flushLogs no longer clears logProvider: Finish already runs it once. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): drop two OTLP log export notes from the troubleshooting page Do not mention variables nvkectl does not read, and drop the note that every command exports its logs. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): say which Run methods are for one goroutine EnableOTLP, LogHandler and Finish read and write state without a lock, so they must be called from one goroutine. They are, from the command's setup and from execute. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): finish the run without holding its lock during SDK callbacks Finish ended the root span and shut the tracer provider down while holding the run's lock. The SDK calls a span processor synchronously from End and Shutdown, so a processor that read the run's trace ID waited on the lock Finish held. Take the span and provider and clear the run's fields under the lock, release it, and make the span, provider and log exporter calls outside it. A test with a processor that reads the trace ID from OnEnd and Shutdown failed with a deadlock before the change. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): shorten the comments on locking in the run Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): keep credentials out of the OTLP endpoint error Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): let an https OTLP endpoint override the insecure variable Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): pin the OTLP exporter's endpoint, tighten EnableOTLP and the endpoint check Set the exporter's endpoint and transport security together so it reads none of its own endpoint variables, and send the errors it still reports through the run's single export warning. A malformed OTEL_EXPORTER_OTLP_LOGS_ENDPOINT no longer reaches stderr with its value. Log the export warning with the trace ID and span ID, reject EnableOTLP after an early LogHandler and after a second call, and reject an endpoint with a path, query or fragment, which is not an OTLP/gRPC address. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): reject unsupported OTLP endpoint schemes and clarify the logs setup Accept only host:port, http or https for OTEL_EXPORTER_OTLP_ENDPOINT. A scheme such as ftp:// was accepted and sent as TLS gRPC. Rewrite the troubleshooting section as steps for setting the endpoint and the token, the rules the endpoint follows, and what the warnings mean. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): leave the OpenTelemetry error handler alone and say how TLS is verified Stop installing a process-wide OpenTelemetry error handler in EnableOTLP. It spent the run's one export warning on an exporter setup error, before logging was set up and without a trace ID, and stayed installed after the run. A bad OTEL_EXPORTER_OTLP_CERTIFICATE now reaches the exporter library's own handler, and a real export failure still warns once with the trace ID. State that TLS uses the system trust store and that the OTLP certificate variables are not used, in the code and on the troubleshooting page. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): drop the exit delay from the OTLP log export note Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> |
||
|
|
d242af22c3 |
fix(cli): load images pinned by digest into the bootstrap kind cluster (#1924)
Signed-off-by: Akshay Kumar <akshaykumar@nvidia.com> |
||
|
|
ddab4187b5 |
feat: read API authentication from apiAuth first (#1935)
Prepare for apiAuth in nvke-controller-config to be the only source of the NVKE API authentication configuration. Nothing here is breaking; retiring AUTH_CONFIG_PATH and the external-ConfigMap mode follows once an nvkectl with this change is released. - nvkectl, the e2e token helper and hack/nvke-token.sh read apiAuth from nvke-controller-config first and fall back to the authentication ConfigMap when the section is off or absent. - permissiveMode moves to apiAuth.permissive, beside the rest of the section and matching the Helm value. A config.yaml that still sets the top-level key is refused with an error naming the new one. - Issuers take an inline jwks.caBundle as an alternative to caBundlePath, so a private CA no longer needs a file mounted from nvke-auth-config. - Tilt and the CAPNICo e2e path render the configuration from chart values, as CAPD already does, and their nvke-auth-dev manifests drop the ConfigMap. Nothing in the repository uses apiAuth.configMap.create=false any more. - The design document replaces its phase 2 outline with the design. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
34f021e3ba |
fix(cli): allow empty OIDC username prefixes (#1925)
* fix(cli): allow empty OIDC username prefixes Signed-off-by: Frank Spitulski <fspitulski@nvidia.com> * fix(cli): require explicit OIDC username prefixes Signed-off-by: Frank Spitulski <fspitulski@nvidia.com> * test(cli): separate OIDC prefix regression test Signed-off-by: Frank Spitulski <fspitulski@nvidia.com> * docs(cli): explain explicit OIDC username prefix Signed-off-by: Frank Spitulski <fspitulski@nvidia.com> --------- Signed-off-by: Frank Spitulski <fspitulski@nvidia.com> |
||
|
|
46d94f5b45 | feat(cli): add OIDC discovery URL overrides (#1920) | ||
|
|
229df84386 |
feat(controller): allow dev control planes without a VIP (#1893)
* feat(controller): allow dev control planes without a VIP Closes #1892 Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> * docs: clarify no-VIP development guidance Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> * docs: document accepted no-VIP rollout behavior Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> * test(e2e): fit CAPD control planes to local memory Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> --------- Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> |
||
|
|
a12fc8aaec |
feat: site bootstrap capnico e2e (#1822)
* feat: add nico bootstrap testing Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: port the nico e2e lane to the current bootstrap design Finish the rebase of the nico e2e work onto site-bootstrap-capnico, which left it half-applied. - Keep the controller profiles image (NVKECTL_CONTROLLER_PROFILES_IMAGE), the OS-independent config profile source, with its tests and docs. - Drop the tenant credentials Secret hook: bootstrapTenant supplies the login and bootstrap site creates the Secret. - run-nico.sh: OVN instead of Calico, bootstrapNico/bootstrapTenant/ bootstrapReleases in the site spec, the fixture release pair for the OS profile, nvke names, and checks that the ClusterRelease and the tenant Secret reached the bootstrap cluster. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: rebase fixes to schema and other bits Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: 3 node nico bootstrap succeeds Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: nico always requires a VIP Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: rebase fixes Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: spire updates for nico 3 node bootstrap Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: nico e2e hardening Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: nico e2e hardening Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: local agent review Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: update OVN version Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: add nico e2e run Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: docs update Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: linter errors Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: rebase after var rename Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: code review fixes Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: source shared lib Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: use NVKECTL_NVKE_CONTROLLER_ instead of NVKECTL_CONTROLLER_ Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: coderabbit review update Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: code rabbit review Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: docs update Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> --------- Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
e8a2f270bc |
feat(cli): scan the bootstrap e2e output for credentials and check its trace ID (#1823)
* ci(cli): scan the bootstrap e2e output for credentials The bootstrap e2e run now scans the bootstrap log and the diagnostics bundle with gitleaks, on success and on failure, so a change that starts printing a secret turns the lane red. The scan uses its own rules, cli/e2e/bootstrap/gitleaks.toml, on top of the defaults. The defaults skip a random 32-character hex password about one time in five, because of their entropy threshold, and have no rule for a password in a Postgres URL. The added rules cover a credential passed to helm, a password in a database URL, and a password field in JSON or YAML, without an entropy threshold, and let nvkectl's <redacted> placeholder through. Three hashes are allowed, because the default generic-api-key rule reads them as credentials and they are not: the SHA-256 of the etcd encryption key that nvkectl logs beside the key file, the fingerprint of the API encryption key that the node agent logs, and kubeadm's public --discovery-token-ca-cert-hash. Each is limited to that rule and matched on its own text. The etcd line is anchored to the end of the line. The other two match the finding, not the line, because the same log line carries the join token and the certificate key, which are credentials and are still reported. Before it trusts a clean result, run.sh proves the rules on a sample of each shape: flagged with a value, clean with the placeholder or an allowed hash, and the same lines under another message, or beside a join token, flagged. CI sets NVKECTL_E2E_REQUIRE_SECRET_SCAN=1 so a runner without gitleaks fails instead of skipping the scan. gitleaks is installed by a new setup-gitleaks action, which verifies a committed digest on amd64 and arm64. The arm64 digest is new. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * feat(cli): collect bootstrap diagnostics on success with --verbose bootstrap site collected its cluster diagnostics only when it failed, so a healthy run's pod logs and cluster state were never available to inspect. With -v/--verbose the same bundle is written, redacted, on any outcome, before the bootstrap cluster is torn down. Operators get a support bundle from a healthy run, and the e2e lane can scan it for credentials. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * ci(cli): scan the success-path diagnostics and assert the trace ID in bootstrap e2e The lane runs bootstrap site with -v so a passing run writes its diagnostics bundle, which includes the controller's pod logs, and the credential scan covers it. Before trusting a clean result, the scan is also driven with a secret planted in the log, in a diagnostics file and in a pod log; each must fail it. The lane also checks the trace ID: a Trace ID line first and last with the same value, and that value on every nvkectl log record. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * ci(cli): allow the SPIRE CA file paths nvkectl logs in the bootstrap secret scan The first CI run flagged the 'SPIRE upstream CA from the environment' line: it names the CA key file's path, not its contents, and the default generic-api-key rule reads the key-like path and the span ID as a credential. Allowlist that one message for that one rule, anchored to the end of the line like the etcd fingerprint line, and add it to the rules' clean samples. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * ci(cli): correct the bootstrap diagnostics comment now that a passing run writes them Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * ci(cli): test that the SPIRE CA allowlist is needed and stays narrow The clean sample used a trivial span ID, which the default rule does not flag even without the allowlist, so it never exercised it. Use random-looking IDs and add a flagged sample: the same line with a field appended after the span ID, which the end-anchored allowlist must refuse. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * ci(cli): address review of the bootstrap e2e scan Do not publish a credential the scan found: run.sh removes the diagnostics bundle when the scan reports a finding or cannot run, because the failed job uploads that directory. Cover two forms of a password the existing field rule missed: an unquoted field, as kubectl describe and YAML print it, and a literal environment variable in a JSON pod spec. A boolean or null where a password field is expected is not a credential. The self-check gains flagged and clean samples for both. With -v, a failure after the site cluster is handed over also collects diagnostics, so say so in the troubleshooting page and the handedOver comment. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * ci(cli): match the etcd and SPIRE allowlist lines from start to end The two allowlists matched the line from its message to its end, with any fields allowed between the message and the path, and nothing checked what came before the message. A credential-shaped field in either place was allowed along with the line. Match the whole line from "time=" to its end and name every field. (?m) is needed because gitleaks hands over every line but the first with a newline in front. The self-check gains flagged samples with a field before the message and between the message and the path, and its clean etcd samples now look like the real line. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): reword the allowlist comments in the bootstrap e2e scan Say what the samples guard against, and describe the allowlists as matching the whole line rather than anchored to its end. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> |
||
|
|
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> |
||
|
|
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>
|
||
|
|
1697fa157b |
docs: remove the manual management-plane install path (#1784)
The published documentation carried two ways to install the management plane: the hand-run `deploy/check-site.sh` and `deploy/nvke-deploy.sh` procedure, and the local-site flow added in #1725. This removes the first and leaves the second as the only documented path. Deletes docs/operate/install-management-plane-services.md, which was the manual procedure end to end, and its entries in docs/index.yml and docs/README.md. Seventeen pages named it as a prerequisite; each now points at Run NVKE end to end on one machine. Rewrites the install commands in Secure the NVKE API, Configure OIDC for workload clusters and cli/docs/user-flow.md onto `deploy/nvke-deploy-local.sh install`, which takes the same pass-through flags and reads its inputs from the NVKE_* variables env.sh exports. Removes the `deploy/check-site.sh` references from Troubleshoot, Supported platforms, the NKTP pages and cli/docs/sitespec.md. No script is removed or changed in behaviour. deploy/check-site.sh, deploy/nvke-deploy.sh, deploy/nvke-deploy-local.sh and deploy/nico stay as they are; local-site runs on them. Two script comments that named the deleted page now name the local-site page. Signed-off-by: Jonathan Meier <jomeier@nvidia.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
55612dce98 |
docs: rename NKTP to NVKE telemetry pipeline (#1765)
Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> |
||
|
|
bc75b98193 |
docs(cli): generate the nvkectl command reference from the command tree (#1773)
The repository has a hand-maintained quick reference and workflow guides, but
no complete reference. An operator cannot browse the whole public CLI without
a built binary, and nothing ties the prose to the commands, so the two drift
apart silently.
Add cli/docs/reference: an index and one page per public command, generated
from the cobra tree nvkectl itself runs. Each page carries the command's
purpose, invocation and positional arguments, aliases, examples, local and
inherited options with types and defaults, the required and mutually exclusive
option groups, and a deprecation notice when it has one.
cobra's doc package writes the body of each page. It does not emit aliases,
deprecation notices, flag-group constraints or an index, and it never removes
the page of a deleted command, so internal/clidocs adds those around it. All
of it is read from the command, so there is no second catalogue to maintain.
Deterministic, so repeated generation from unchanged source produces identical
files:
- cobra's generated-on timestamp is switched off on every command.
- The NVKECTL_ and NKECTL_ variables are cleared before the tree is built.
Two of `bootstrap site`'s flag defaults -- --diagnostics-dir and --timeout
-- are read from the environment by the command constructor, through
internal/envalias, which still honours the old prefix. Without this the
pages would record whatever the generating shell happened to have set.
- HOME and the XDG config directory are pinned, and the build metadata is a
fixed placeholder.
Generation runs no command and contacts nothing: it builds the tree and reads
its metadata, so it needs no credential, kubeconfig, configured site or
cluster. newRootCmd is exported for it, which is what the move to an
importable package was for.
`make -C cli docs` regenerates and `make -C cli docs-check` verifies, failing
on output that is stale, missing, obsolete, or newly generated and never
committed. The check joins the generated-artefact gate, which already covers
the provisioned-provider manifest and the generated API code, and joins
`make gate` and `make preflight` locally.
Two commands lazily added by cobra needed initialising before the traversal,
or the root page would link to pages that were never written: `help` and
`completion`. cobra's doc package also calls InitDefaultHelpCmd on every
command it renders, not just the root, which invented a `help` subcommand
under each group command -- `nvkectl bootstrap help` is not a command -- so
each one is given a hidden help command first to decide what cobra adds.
Hidden commands and help topics are excluded, which is why `render` and
`inspect` do not appear; a deprecated command keeps its page for as long as it
still runs.
Constraints enforced inside RunE are invisible to cobra. Those on `config
set-site` and the two patch commands are now stated in the flag usage strings
and Long text, so --help and the reference agree. No behaviour changes: the
checks still run where they did, with the messages they had.
cobra/doc brings go-md2man and blackfriday into cli/go.mod. Neither is
reachable from ./cmd/nvkectl, so the shipped binary is unaffected and
THIRD_PARTY_NOTICES.md is unchanged.
Signed-off-by: Jonathan Meier <jomeier@nvidia.com>
|
||
|
|
647fcdf595 |
docs: fix what an end-user walk of the published site found (#1747)
* docs: repair links and anchors that break on the published site Seventeen relative links pointed at repository files outside docs/index.yml, which the site does not serve, and two anchors named a heading that does not exist. Point them at navigation pages or at the files on GitHub. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(install): say when to install without --release The artifacts page says a Release from NVKR's maintained Definition is refused, but the install commands pass --release by default. Name that case where the commands are. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: correct statements that contradict the code The OIDC verify step read a label the controller deletes. Five other pages described the sitespec default, scale-down, config restarts, an error prefix and a reserved prefix differently from the code. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(nktp): fix the verification steps and the host-process guide The management-cluster verification queried the old trace service name and expected ten certificates where the chart default makes 21. The host-process guide named the wrong Collector, one page kept a site-controller phrase, and a design page misspelled pseudocommand. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: use the repository callout syntax and unbreak the sitespec table GitHub alert markers render as literal text on the site, and a paragraph with no blank line before it landed inside the schema table. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(nktp): add the registry login and say where the chart versions are The install command named no version and fails with unauthorized when the registry wants a login. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: drop the unused catalog entry from the API layout Both Catalog operations are x-fern-ignore, so Fern logs the identifier as unknown. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: say in one sentence that a config change needs a restart Wording from the review of #1747: the file is read once at startup, so restart NVKE after you change it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
f0a043d73e |
docs: call NVKE's cluster the management cluster, not the site controller (#1744)
Replace "site controller" with "management cluster" (the cluster) or "management plane" (the NVKE API and controllers) in docs, CLI docs and help text, examples, and deploy-path comments. Identifiers such as nke.site-controller.internal, the site-controller e2e lane and the dashboard UID are unchanged. Supersedes #1737, which was closed so the launch batch had no ordering dependency on #1733. Signed-off-by: echapman13 <echapman@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
e6b0974b10 |
docs(nktp): rename NKTP to NVKE telemetry pipelines (#1733)
Expand NKTP as "NVKE telemetry pipelines (NKTP)" on first mention per page, merge the two NKTP nav sections into one with a "Management cluster telemetry" subsection, retitle the site-telemetry pages, and rename the reference dashboard to "Reference - NVKE Management Cluster Health". Chart name, label, paths, value keys and dashboard UID are unchanged. Signed-off-by: echapman13 <echapman@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6e8871aa40 |
feat!: make the management namespace configurable and default it to nvke-system (#1698)
* feat(controller): make the management namespace configurable The shared management-plane namespace was the compile-time constant constants.NamespaceNVKESystem. It is now the nke-controller-config key managementNamespace, read through config.Config.ManagementNamespaceOrDefault and threaded to what addresses that namespace: the tenant-access publish and Secret-reconcile paths, the nke-rbac read, the CAPI cluster and machine activities, failure-domain discovery, the Teleport token controller, the OIDC rollout operation and the Secret cache the manager builds. An unset key resolves to nke-system, which is what a config.yaml written before the key existed decodes to, so a controller upgrade alone never moves a site. The old constant is renamed LegacyManagementNamespace to say which of the two it is. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart): default the management namespace to nvke-system nvkeSystemNamespace.name is new and defaults to nvke-system. One helper, controller.managementNamespace, feeds the Namespace object, the nke-rbac ConfigMap, the Role and RoleBinding scoped to it and the managementNamespace key the controller reads, so the grant and the namespace it covers cannot drift apart. This moves the default a new install gets. The old namespace is not also read, so a site installed before the value existed must pin nvkeSystemNamespace.name to nke-system before it upgrades; the chart README says so and chart-identity-assertions.py now renders that pin and asserts every object and the controller config land on it. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(cli): read kubeconfig Secrets from a configurable namespace nvkectl get kubeconfig reads nvke-system and then nke-system, so it finds the Secret whether or not the site has pinned the old management namespace, and --namespace names one outright. The error from a miss names the last namespace searched rather than reporting only the first. The bootstrap engine installs the chart with default values, so its own constant moves to nvke-system with the chart default. Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: move the greenfield deploy, e2e and docs to nvke-system The base-config Namespace manifests, Tilt, the e2e lanes, the CI helper scripts and the user-facing docs all name the management namespace. They describe a new install, so they follow the chart default. Nothing here is read by a site that has pinned nke-system. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback fix: address CI failures Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address CI failures The CLI falls back from nvke-system to nke-system and its not-found error names the last namespace tried, so the smoke test accepts either. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
ca7371ad3d |
docs: fix dead links and nav title mismatches on published site (#1656)
* docs: fix dead links and nav title mismatches on published site Twenty links on five published pages pointed to files not in the site navigation (module READMEs, root RELEASE.md, legacy docs/ pages). Fern rewrites those relative links to raw .md URLs that return soft-404s. Replace them with github.com/dsx-ai-factory/nvke/blob/main/... URLs. Ten entries in docs/index.yml had page: names that differed from the page's # heading. Align them so the sidebar title and the page heading match. The controller/docs/configuring-api-authentication.md entry is left unchanged — it is owned by in-flight PR #1161. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Pete MacKinnon <mackinnon.pd@gmail.com> * docs: quote site-telemetry nav entries containing colons YAML plain scalars cannot contain `: ` (colon-space), which would be parsed as a nested mapping key-value pair. Quote the five Site Telemetry page names that use the "Telemetry on a site controller: ..." pattern. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Pete MacKinnon <mackinnon.pd@gmail.com> * docs: fix dead NVKR links after definitions/ moved to inputs/ dsx-ai-factory/nvkr#175 moved authored inputs from definitions/ to inputs/, leaving four links 404. Update all references in build-node-images.md and supported-platforms.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Pete MacKinnon <mackinnon.pd@gmail.com> * docs: correct NVKR paths after inputs/definitions/ restructure The previous commit used inputs/nvke-m2/ and inputs/nvke-os/ but nvkr#175 placed them under inputs/definitions/: definitions/nvke-m2/README.md -> inputs/definitions/nvke/README.md definitions/nvke-os/README.md -> inputs/definitions/diagnostics/README.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Pete MacKinnon <mackinnon.pd@gmail.com> --------- Signed-off-by: Pete MacKinnon <mackinnon.pd@gmail.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|
|
144fc99a67 |
feat(cli): show NicoIdentity credential health in get providers (#1602)
* feat(cli): read and classify NicoIdentity credential health Add a credentials package that lists a provider's Identity objects through the Kubernetes dynamic client and classifies the one naming the provider's credentials Secret as HEALTHY, FAILING, UNKNOWN, STALE, PENDING, NO-IDENTITY, UNSUPPORTED or UNREADABLE. It reads only the status the provider's manager publishes, never triggers a check or reads the Secret, and treats a result older than ten minutes as stale. The provider registry now records NICo's NicoIdentity kind and the manager flags that limit what the manager watches. util gains FormatDuration so ages can be formatted against an injected clock. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * feat(cli): show credential health in get providers nvkectl get providers now adds CREDENTIALS and LAST CHECK columns that report the provider's own last credential check and how long ago it ran, so operators can tell working credentials from a Secret that merely exists. STATE, every existing JSON field and the exit code are unchanged; -o json and -o yaml gain an additive credentials object for providers that publish an Identity. The Identity client is built only when the Identity CRD is established, and DETAIL keeps explaining STATE problems before credential health. The help text lists each value and marks the command alpha. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: document the credential health columns in get providers Explain the CREDENTIALS and LAST CHECK columns of nvkectl get providers: what each value means, the 10-minute staleness rule, and that nvkectl reads the provider's own check instead of running one. The CLI README lists the new permission, list on nicoidentities, and shows the NicoIdentity that turns NO-IDENTITY into a reported result. The FAQ no longer calls CONFIGURED a healthy NICo site, names the CAPNICo Deployment the shipped manifest uses, and gains an entry for credential health that is not HEALTHY. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: name UNREADABLE and PENDING where credential values are summarized The site-bootstrap summary of the CREDENTIALS column named only NO-IDENTITY and UNSUPPORTED as the alternatives to HEALTHY, but a kubeconfig that cannot list NicoIdentity objects reads UNREADABLE. Name all three, with the condition behind each, in the order nvkectl checks them. The operations FAQ's list for a CREDENTIALS value other than HEALTHY now covers PENDING and UNREADABLE too. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: describe the credentials column in the operator guide The operator guide said nothing checks the NICo token before the first workload cluster, and its troubleshooting page had no entry for the new CREDENTIALS column of nvkectl get providers. Say that CREDENTIALS reports CAPNICo's own credential check when CAPNICo serves NicoIdentity and a NicoIdentity names nico-credentials, and that it reads UNSUPPORTED with the CAPNICo release the install deploys, which does not serve NicoIdentity. Add a troubleshooting entry for a CREDENTIALS value other than HEALTHY. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> * docs: say when CAPNICo checks the NICo token before credential health The operator guide said nothing checks the NICo token until the first workload cluster. CAPNICo checks it whenever it reconciles a NicoCluster that belongs to a Cluster API Cluster, which can happen before any machine exists. Say that, and that a workload cluster is what normally triggers it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> --------- Signed-off-by: Milan Landaverde <mlandaverde@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
0c48b2612e |
feat: bootstrap site can use capnico for initial node creation (#1356)
* fix: rebase Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: rebase repair Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: make bootstrap nico follow patterns of tenant nico registry Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: dry-run catches mTLS mismatches Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: code review updates Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: linter fixes Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: code review comments Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: refactor, comment update Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: review changes, use approved schema Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: nico bootstrap troubleshooting Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: capnico manifest Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: review comments Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: more review comments Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: review comments Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: local agent reviews Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: local agent review Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: move credentials from sitespec to env vars Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: more agent fixes Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: more agent review Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: more agent reviews Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: more agent review Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> --------- Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> |
||
|
|
8bcb48d4f9 |
feat(cli): the stack install reads a stack config file (#1682)
* feat(cli): the stack install reads a stack config file The controller stack install takes its site-specific input from a JSON file of its own, the stack config, loaded by the new cli/internal/deploypath/stackconfig package: the NICo API and the optional image overrides and mirror. The file is decoded strictly through sigs.k8s.io/json, so an unknown, duplicate or differently cased key is refused, as are a REPLACE_* placeholder, an empty required value, a null object, an endpoint without a scheme or with a user and password, and a mirror with a scheme. Every problem is reported at once as "<json path>: <problem>", a stray key beside the value problems. The credentials stay in the environment and move to the same package: NVKECTL_NICO_TOKEN, NVKECTL_NODE_USER, NVKECTL_NODE_PASSWORD and NVKECTL_DATABASE_PASSWORD are the stack install's input, not the site spec's. The site spec carries the bootstrap's fields only: the site name, the control-plane VIP, the SPIRE trust domain and CA. The render reads both files, --sitespec with --stack-config and neither without the other, and takes the nodes' architecture from --arch, validated, for both the release artifacts and the SPIRE TPM attestor checksum; without the flag the host's architecture is used with a warning. nvkectl inspect stack-config, a hidden reader like inspect sitespec, validates the file and the credentials and prints STACK_CONFIG, STACK_NICO_ENDPOINT and STACK_NICO_ORG_ID for the install scripts. validate sitespec checks the site spec and prints "valid"; inspect sitespec prints the three site facts. deploy/examples/stack-config.json is the operator's starting point. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the scripts take --stack-config and read the node architecture check-site.sh and nvke-deploy.sh take the stack config beside the site spec and refuse one without the other. Both start with an inputs line that names the two files, the site and the NICo endpoint. The check validates the stack config and the NVKECTL_* credentials through nvkectl inspect stack-config and fails on nodes that report two architectures or none. The executor reads the architecture from the cluster and passes it to the render as --arch; --arch on the executor stands in for the read, and a dry run with an unreachable API renders for the host. The kind lane fills a stack config template next to the site spec template. The deploy READMEs and the cli docs describe the file. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(operate): the install reads a stack config file The install page gets a "Write the stack config" section with the credentials step, the example file and every key. The inputs table, the artifact-source table, the check and install commands, the troubleshooting entries and the pages that link to the section follow. The node architecture is read from the cluster, so no page asks for it. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
1ededf3bce |
refactor(cli)!: read site credentials from the environment and drop unused site spec fields (#1644)
The site spec describes the site, so it can be committed and used unchanged on any machine. Credentials and machine-local file paths now come from the environment of the command that needs them, and fields nothing consumed are removed. A spec that still sets a removed field fails to load, and generate sitespec --set refuses it, naming the replacement. - spire.caCertFile/caKeyFile -> NVKECTL_SPIRE_CA_CERT_FILE/_KEY_FILE, with spire.upstreamCA: true recording that the site uses the CA; with it every run requires the variables, so none falls back to a self-signed root - SPIRE_CA_CERT_FILE/SPIRE_CA_KEY_FILE are refused, naming their replacements - controllerStack.nico.tokenFile -> NVKECTL_NICO_TOKEN - controllerStack.tenant -> NVKECTL_NODE_USER, NVKECTL_NODE_PASSWORD - controllerStack.database.passwordFile -> NVKECTL_DATABASE_PASSWORD; the render no longer generates and writes a password file, and the removed-field error names the old file whose contents to use - controllerStack.nktpValuesFile -> nvke-deploy.sh --values-for nktp=<file> - registry block, --registry-api-key and REGISTRY_* overrides removed: no code read them; private image pulls use nerdctl login - validate sitespec checks the environment; bootstrap site logs the CA paths - CI harnesses and docs follow the same inputs; the bootstrap e2e asserts a supplied CA is the root SPIRE publishes Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com> |
||
|
|
e819abb8b7 |
docs: describe what cluster.oidcProviders does at bootstrap (#1675)
The site spec row said the list configured the management cluster and could not change. Bootstrap only copies it into the controller release, and the management-plane install does not read it. Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> |
||
|
|
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> |
||
|
|
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> |
||
|
|
5c8ebb2b58 |
docs: remove Calico from the user documentation (#1634)
New clusters use OVN-Kubernetes and Calico's creation path is disabled by default, so the docs no longer present Calico as a choice. Module READMEs and the OS image spec still describe the Calico packages that ship. Signed-off-by: echapman13 <echapman@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1dbd483a98 |
docs: the install pages follow the operator guide; the Deploy Path reference (#1616)
* docs: the install guide, the deploy README and the pages that point at the install docs/site-bootstrap/install-site-controller.md describes deploy/nvke-deploy.sh install: its inputs, the six steps, removal, upgrade and the GitOps mapping. deploy/README.md lists every flag and variable of the script. The first-cluster page, the docs index and the site-bootstrap pages that pointed at deploy/install.sh point at the command. The site spec reference and the e2e README no longer mention a registry pull secret. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(cli): user-flow follows the real order: release, site spec, bootstrap, one install command The example starts with nvkr release verify and export, bootstraps the site, then installs the controller stack with deploy/nvke-deploy.sh install as one command. The deploy path is the interface and the script is the reference executor; an operator can apply the items another way. The command table replaces the two manual rows with that command, and the dead README anchor is gone. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: deploy-repository.md describes the deploy path as implemented The page described tooling that no longer exists: a Go binary that cloned a deploy repository and shipped it to the init node, ArgoCD items with sync monitoring, a BootstrapConfig with database and monitoring fields, and a deploy/reference directory. It now describes deploy/nico: nvke-deploy.yaml, the four item types as nvke-deploy.sh applies them, the template context the site spec supplies, what a render adds, and what another executor has to do. The pages that linked to it as a GitOps repository are updated with it. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: nvkectl comes from the NVKR release; build from source without one The release carries nvkectl as an executable output built from the same commit as the controller image. The install page takes it from there: read the output's reference from the release description, pull it, and unpack the binary. Building from the clone stays as the path without a release. The GitHub Releases download is gone. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install guide offers the script, by hand and GitOps; the overview sends readers to it The install guide's Release section is a paragraph with deep links to NVKR's release quickstart. The install itself is three options that apply the same deploy path: the script, the six steps by hand, and GitOps. The overview's after-bootstrap section no longer tells readers to install Cluster API and a provider first; the install does that, and the page lists it as the fourth step. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the site spec page opens with its two parts and shows what validate says between them The bootstrap part is all the bootstrap requires; the controllerStack section is read by the install and can stay unfilled until then. The validation section shows the output on a freshly generated spec: the bootstrap line, the values still to fill in, and the non-zero exit that says the bootstrap can run now. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * refactor(deploy): drop the argocd item type; docs no longer say NVKE needs Argo CD No deploy path has an argocd item and nothing tested the code that applied one. A deploy path is template, manifest and helm items; a GitOps tool delivers the same items, as the install guide's GitOps option describes. The concepts, lifecycle and pre-provisioned-nodes pages said the stack is managed by Argo CD and installed from a deploy repository; they now point at the install from the deploy path. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install guide no longer lists an untaint step The bootstrap removes the control-plane taint; the readiness check reports one that is left. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install guide separates what the install does from what the operator does Five steps: readiness, Cluster API, the site controller, secure, verify. The StorageClass, the site registration and the client network policy are the operator's, listed after the install with the commands. The deploy README, the user flow and the nico README match. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the site controller install is a list of commands check-site.sh, clusterctl init, the executor, the release resources, the exec-auth patch, then set-site and the network policy on the operator's machine, each a command that stands on its own. The install guide gives them in order with what each one does, how to take the executor apart, and how a GitOps tool delivers the same items. The deploy README describes check-site.sh and the executor; the user flow, the nico README and the pages that pointed at a single command point at the list. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: review fixes on the install pages The removal section deletes the stack's namespaces and says what that removes and what stays. The lifecycle page no longer installs CAPNICo a second time. The credential claims are limited to the controllerStack file paths, with registry.apiKey left to the environment. The values order names the files a render adds. The CLI's plain-HTTP NodePort is called out as trusted-network only. jq and oras are named where the release download uses them. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: review fixes on the install list The release resources are published with nvkectl create, after the site is registered; they are not manifests. The hand-apply and GitOps recipes name helm dependency build for a path chart with a Chart.lock, chart.setFile entries, and the nktp-cluster ConfigMap the base-config item renders. The removal block pins its kubeconfig. The Deploy Path page names the executor's one subcommand and says where an unknown item type is refused. The first-cluster page folds the separate Cluster API and CAPNICo install into the install guide's list and registers the plain-HTTP NodePort. The nvkectl download filter accepts a description whose executable output declares no architecture. Anchors fixed. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: nvkectl create writes the release resources through the site kubeconfig The step needs the registration, which records the kubeconfig, and not the network policy, which admits clients to the controller API. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: second review round on the install pages The nico README publishes the release resources with nvkectl create after set-site and leaves the taint to the bootstrap and the check. The Deploy Path page names the executor's subcommand in its two examples. The concepts page describes the PostgreSQL item rather than CNPG and no longer names Argo CD as the GitOps controller. The local-run sentence says what still comes from a repository and where images land. The check prints the commands that remain. The GitOps section says the render writes the per-site values. The validate sample shows the trust-domain line. The custom base OS page no longer downloads nvkectl from GitHub Releases. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install pages that stay point at the operator guide The legacy site-bootstrap pages are left as they are on main; the operator guide under docs/operate describes the install. The CLI docs, the deploy READMEs, the concepts, lifecycle and first-cluster pages and the Deploy Path reference link to it. The install page publishes the OS release resources with nvkectl create after nvkectl points at the API, and the artifacts page writes them as the metadata-and-spec documents that command takes; the check's description names the kubeadm providers it confirms. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: two links follow the install guide to the operator pages Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: third review round on the install pages The executor's parser no longer accepts argocd, so both parsers refuse an unknown type before anything is applied, as the Deploy Path page says. The command lists in the deploy README and the user flow include the NetworkPolicy step. The first-cluster page publishes a second release rather than the first. The artifacts page lists nvkectl among its prerequisites and names the kubeconfig the publish goes through. The check prints the commands that remain. The deploy README's Cluster API and egress rows say what the check reads. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
a12794be51 |
feat(controller): create trace context without a span export endpoint (#1597)
* feat(controller): create trace context without a span export endpoint The controller now always creates and propagates trace context, so its log lines carry a trace_id whether or not spans are exported. tracing.enabled and tracing.endpoint decide only whether spans leave the process. The request log also carries the User-Agent, and the bootstrap troubleshooting guide shows how to search the controller logs by trace ID. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * test(controller): reject every SQL span in the export-off tracing e2e Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(controller): keep malformed resource attributes from stopping startup Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(controller): state contracts in the remaining tracing comments Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * feat(controller): warn when span export is enabled without an endpoint Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * test(controller): drop the separate test for the missing-endpoint warning Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
80e34a26bc |
feat(cli): deploy OIDC providers during site bootstrap (#1601)
* feat(cli): pin fleet OIDC providers during site bootstrap Put optional cluster.oidcProviders on the site spec and merge them into the controller Helm values before the single install, so the site API server receives those issuers. Leave the list unset for today's behavior, and reject a list when Kubernetes is older than 1.34. Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> * refactor(cli): pass site OIDC providers in a second Helm values file Leave the embedded controller values untouched. When the site spec sets providers, append a values file that only contains oidc.providers so the PEM stays out of --set. Reject an issuer that is not https, and a caBundle that is not a PEM certificate, before bootstrap continues. Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> --------- Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com> |
||
|
|
3038cf917c | feat(controller): gate new Calico clusters (#1599) | ||
|
|
eac79fa4c1 |
ci: bring the controller stack up on kind from a release, rendering inside the executor (#1583)
* ci: bring the controller stack up on kind from a release description The lane builds the controller and the profiles fixture into OCI layouts, copies the CAPNICo image, fills a nvkr.dev/release/v4 file from their digests, renders deploy/nico against it with --nvkr-run-dir, installs the result on a kind node and checks the pods run the release's digests. Advisory; not a merge-gate member. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): close the deferred findings of the site render spire.trustDomain is required and never derived. The controller reads its connection string from the chart's Secret, URL-escaped. A deploy path missing a site-values item is refused. A malformed release.yaml is reported once. Notes reach the log only when the render succeeds. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * chore(deploy): build the test nvkectl with the cli target and resolve Makefile paths from the file Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(deploy): say which per-site values the render supplies and from where Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: give the kind lane the nktp values the other kind lanes use Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): render for the site and the release inside nvke-deploy.sh install --sitespec … --release … [--nvkr-run-dir …] renders the deploy path through nvkectl into a private scratch directory, installs it and removes it, so no rendered credential is left behind. nvkectl render deploy-path is hidden: the script is its caller. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane renders and installs through nvke-deploy.sh Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: free the runner's disk before the kind lane and record disk usage on failure The stack's images filled the root volume; the postgres layer could not be extracted. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> (cherry picked from commit 2dda40b10fc3cac98edcb136c97f70a9ac748f72) * ci: the kind lane checks the stack's own workloads, not every pod An nktp gateway autoscaler may add a replica the runner cannot schedule; kubectl wait --all then reports every later pod as timed out unchecked. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane caps nktp's autoscaled collectors at one replica and asserts every stack pod Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane takes the nktp kind values as they are once they carry a ceiling Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane checks the clusterctl digest, names pod-list errors and asserts the spire namespaces The pod sweep covers nke-system and spire-system, where the agent and the CSI driver run, instead of a namespace no deploy path creates. A failed pod list stops the lane with its namespace. The nktp guards match a whole maxReplicas: 1 line. clusterctl is checked against the pinned sha256, and the lane runs on every input it reads. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): validate sitespec requires the trust domain the render requires validate sitespec reports a missing spire.trustDomain, so its exit code means the file is ready for the controller stack install. The render checks the trust domain and the TPM checksum before it generates the database password, so a refused spec leaves no file behind. The template and the docs say the field is required for the stack install. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): --release needs --sitespec, which names the architecture Without the site spec the render would pick artifacts for the host architecture. The usage says --dry-run still renders and may create the database password file. The docs describe the rendered tree as the scratch tree the install removes. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * chore: drop an orphan comment from .gitignore Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane's release carries the release-description/v1 schema Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(cli): the bootstrap and the stack install share a default trust domain Both default to nvkectl-bootstrap.nke.local, the domain of a bootstrap with the default cluster name, so a site spec that sets spire.trustDomain to nothing joins them to one domain. The render warns when it uses the default; the bootstrap tells the operator to set the field when it ran under another cluster name. validate sitespec no longer requires the field, and says the bootstrap can run with the file while the controllerStack section is still to fill in. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the render scratch lives under a private state directory and the kind lane proves it is removed The render goes under NVKE_STATE_DIR (default $XDG_STATE_HOME/nvke), created 0700, and is removed however the script ends. The suite checks the directory mode and that a failed render leaves nothing. The kind lane runs an install whose render fails and the real install under its own state directory, and dies if either leaves a scratch tree or any rendered file behind. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(cli): spire.trustDomain is set once before the bootstrap, or never Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane works in a per-run directory it never empties, and runs on site-spec changes The telemetry docs name the site spec's clusterName and nktpValuesFile as the inputs of a site install, and --config and --values-for for an install without one. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): the bootstrap says when it defaults the trust domain; the kind lane owns its cluster and waits for Ready The bootstrap logs the defaulted trust domain as soon as it takes it, and warns when a custom bootstrap cluster name makes it differ from the install's default; validate sitespec qualifies the shared default the same way. The kind lane refuses a kind cluster of its name that was there first and deletes only one it created, and a pod counts as ready only when its Ready condition is True. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(deploy): the usage says where the render lives once, and what --nvkr-run-dir is for Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix: the review round on the kind lane and the trust-domain docs The bootstrap says it defaulted the trust domain before a dry run returns. The docs qualify the shared default for a renamed bootstrap cluster, and the troubleshooting entry names an install the script accepts. The password file note is said at once. The executor renders with --ephemeral, so the summary does not ask the operator to delete a directory the script removes. The kind lane runs on the mirror branch only, on every input it reads, and its cleanup probe has to fail in the render itself. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
6005cc19b0 |
fix(cli): print no trace ID for help or a successful render (#1603)
* fix(cli): print no trace ID for help or a successful render A bare group command such as `nvkectl create`, and `nvkectl deprecate` with no arguments, print help and do nothing, but still reported a trace ID. They now report none, like -h and --help. render writes files and contacts no controller, like generate, so it joins the query commands: a successful run writes only its result, and -v logs the trace ID. A failing render still ends its error with the trace ID. compatibility.md no longer says a successful query command writes nothing to stderr without naming the trace ID mismatch warning, and says only a subcommand rejected for a bad flag reports a trace ID. The CAPD e2e lane and its pull request filter now include cli/internal/telemetry, which nvkectl-smoke.sh depends on. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): describe the trace ID by kind of command The output channels row listed every command that prints or omits the trace ID, so each change to the set meant editing it in several places. A Trace ID section now describes the three behaviours, query commands, help, and everything else, and the row points to it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
2e6c4f35a5 |
feat(cli): give every nvkectl command one trace ID (#1354)
* feat(cli): give every nvkectl command one trace ID nvkectl starts a root span for every command except help and completion. The controller client sends the span's W3C traceparent and "User-Agent: nvkectl/<version>" on every request, and nvkectl's log records carry trace_id and span_id. Nothing is exported. A failing command ends its error report with the trace ID, including one whose request never reached the controller. A successful command prints it as the last stdout line, except get, version, config and generate, which write only their result and log the ID at debug level. bootstrap site also reports the ID on stderr before it starts, so a run that fails validation writes nothing to stdout. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): keep the trace ID off structured output and on every failure The success-time "Trace ID:" line now goes to stderr. On stdout it followed the JSON document of "create ... -o json" and added a key to the YAML one, which breaks any caller that parses stdout. A command cancelled by SIGINT or SIGTERM keeps its trace ID in the cancellation report, because the request may already have been accepted. A command that cobra rejects before any hook runs, such as an unknown flag or an extra argument, now gets an ID too. The trace run no longer sets process-wide state. The tracer provider and the User-Agent belong to the Run, which the transport finds in the request's context. Cobra's traverse-run-hooks setting keeps a subcommand that declares its own PersistentPreRunE from replacing the root's hook. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * refactor(cli): start the trace in execute instead of a cobra hook The root's PersistentPreRunE started the span, so a flag or argument error that cobra reports before any hook ran needed a second, late start, and a subcommand with its own PersistentPreRunE could have disabled tracing. execute now starts the run before cobra parses anything and renames the root span to the command path afterwards. The trace ID always exists, one call site owns it, and cobra's traverse-run-hooks setting is no longer needed. help and completion still report no ID. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): keep a malformed build version out of the User-Agent A build can stamp any string into the version. A control character in it made Go refuse every request to the controller over its User-Agent. NewRun now reduces the version to RFC 9110 token characters, and falls back to "dev" when none are left. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * chore(cli): trim comments and tests to what the change needs Doc comments in the telemetry package and root.go now state the contract only, with the one-line reasons next to the code they explain. Two overlapping tests are removed and two merged into one. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * chore(cli): name the test helper runNvkectl Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(cli): explain how to use the trace ID to diagnose a bootstrap The troubleshooting guide now shows the trace ID in the terminal output and in the error example, and says how to pick one run out of a log by its ID, in text and JSON logs. It also says the controller installed by bootstrap does not record the ID in its own logs, so those are still matched by cluster or node name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * feat(cli): warn when the controller reports a different trace ID The controller returns the trace ID its logs and spans use in X-Trace-ID. When that differs from the ID nvkectl sent, something between them, such as an ingress or a proxy, dropped the traceparent header, and the ID nvkectl prints matches nothing in the controller. nvkectl now writes one warning to stderr per run that names both IDs. A response without the header is not a mismatch and warns about nothing. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(cli): no trace ID for --help, and clearer trace ID wording A mutating command given -h or --help printed a trace ID, because cobra answers the flag without running the command and returns success. The help flag is now checked before the ID is reported. The mismatch warning no longer says an intermediary dropped traceparent: a different X-Trace-ID only shows that the controller reported another ID, so the warning names both IDs and says what to check. The bootstrap guide now says a command cobra rejects for a bad flag or argument prints only the ID that ends its error, with no starting line. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
ac96cd13f0 |
feat(cli): render a deploy path for the site the site spec describes (#1567)
* feat(cli): render a deploy path for the site the site spec describes nvkectl render deploy-path copies a deploy path and resolves it for the site: the controller, SPIRE, PostgreSQL and Temporal items get a site-values.yaml built from the site spec's controllerStack section (the database password, the OIDC discovery URL, the SPIRE server address and identity, the controller's admin ID, the TPM attestor checksum, the bootstrap CA, a registry mirror), template items are rendered with Go text/template and become manifest items, and site.env names the site. Secrets are read from the files the spec names and written into the result, so it is created 0700 and is for one install. The executor installs the result with no --config. deploy-test joins the merge gate with the executor's dry-run suite; the executor stops on a parser failure instead of installing nothing. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(cli): name the item list file by its current name Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): review fixes for the site render A rendered tree installs from anywhere: a committed chart.path is written absolute, and the executor takes an absolute chart.path as is. Secrets holding a quote, a backslash or a control character are refused by field, since the templates carry no escaping. spire.ca*File resolve from the working directory, as bootstrap site reads them. The OIDC domains are read from the overlay as YAML, so a comment inside the list no longer truncates it. --out is created first with Mkdir, so an existing directory is left alone, and --out inside the deploy path is refused. A manifest item's image: rejects a digest. nktpValuesFile without an nktp item is a problem. The bootstrap's TPM checksum lookup calls the exported one. The test suite's mode check is portable and its order check can fail. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): refuse a checkout path with whitespace in the render The rendered chart.path is one unquoted token for the deploy path reader, so a checkout under a directory with a space rendered and then failed at install time. The render now reports it. The --out guard resolves symlinks before comparing with the deploy path. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * refactor(cli): export the TPM attestor checksum lookup as is Rename tpmPluginChecksum instead of wrapping it; the render tests for an empty checksum like the bootstrap does. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): refuse unknown item types and whitespace in absolute chart paths Items accepts only the four types the executor dispatches. The whitespace check covers an absolute committed chart.path too. The nested --out test runs on a copy of the deploy path. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(cli): keep the database password in the operator's file only controllerStack.database.passwordFile is required. A missing file is created with a generated password, 0600. The rendered tree holds no db-password copy. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): reference the SPIRE CA with chart.setFile instead of copying it A helm item's release.yaml takes chart.setFile: <helm key>=<absolute path> entries the executor passes as --set-file. The render points the spire item at the operator's CA files; spire/site-values.yaml holds no PEM. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(cli): name the credential files of a rendered deploy path The render lists the files under --out that hold a credential and writes a .gitignore that ignores the tree, so the operator knows what to delete and a repository does not pick it up by accident. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(cli): refuse a rendered deploy path under a shared temp directory --out under /tmp, /var/tmp, their /private forms or the process temp directory is refused before anything is written. Tests opt out through RenderOptions.AllowTempOut; the deploy suite through NVKECTL_RENDER_ALLOW_TEMP_OUT=1. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): keep temporal's passwords under a mirror and refuse incomplete site values A mirror merges into temporal's server values instead of replacing them. The render refuses a missing profiles image when the deploy path enables profiles.image, an empty secret file, a template value the templates cannot carry, an image override with no tag or digest, a template item with no template, and an item named . or ... A symlinked deploy path is resolved; copied files keep their owner exec bit. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
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> |
||
|
|
6334975cdf |
feat(cli): the site spec carries the controller stack install input (#1429)
The site spec gains an optional controllerStack section: node architecture, the NICo API, the registry pull secret, the tenant login and paths to the files that hold tokens and passwords. generate sitespec writes it with REPLACE_* placeholders, bootstrap site lists the ones still in the file, and nvkectl validate sitespec checks the whole file by section, so the install refuses a placeholder. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
6029bf16ab |
chore: say NVKE in the comments and display text that still said NKE (#1470)
* chore: say NVKE in the comments that still said NKE The word NKE in comments becomes NVKE: Go comments through the token scanner, so no string literal moves; proto doc comments, with the generated *.pb.go files regenerated by `make -C agent protos`; and the comment lines of YAML, shell, Make, Tilt, systemd, Packer, Nix and template files. The provisioned provider's CRD description comes from a doc comment, so `make -C cluster-api-provider-provisioned manifests` and `make -C cli provider-manifest` regenerated the CRD and the CLI's embedded copy of it. Kept on purpose: the comment quoting the "NKE Agent Version:" line the updater parses, and the comments about the NGC organisation that is named NKE. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * chore: say NVKE in the display text that still said NKE User-facing text that carried the word NKE now says NVKE: nvkectl help text; log, error and condition messages; Ginkgo suite and spec names; deb and OCI package metadata; systemd unit descriptions; workflow step names and input descriptions; Helm render failures; and the nine Markdown lines the prose sweep (#1462) missed. The tests that assert these strings move with them. Kept on purpose, because something parses or persists them: the "NKE Agent Version:" and "NKE Agent Updater Version:" lines the updater reads; the "update NKE RBAC:" errors of the UpdateNKERBAC rpc; the 2025 migration text; the OIDC upstream CA's CN and OU, since re-issuing that CA would break tenant trust; the nico-sim tenant "Forge-Tenant-NKE"; the Keycloak lab realm; and the NGC organisation that is named NKE. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
668bc38a9b |
feat(cli)!: rename nkectl to nvkectl, keeping the old names for one release (#1456)
The binary, its directory, its config directory and its environment variables take the new name. For one release the previous names still work: every NVKECTL_* setting is also read under its NKECTL_* name with a deprecation warning (the NKECTL_CWE_* names of the generation before are no longer read), a config file left under nkectl/ is read and copied to nvkectl/ once, and releases publish both nvkectl-<os>-<arch> and nkectl-<os>-<arch>, to GitHub and to S3 under the existing prefix. The e2e helper package, the e2e test, the smoke and fetch scripts and the bootstrap e2e workflow follow the binary; the fetch script accepts a release that carries only the old asset name. The CLI's own documents and the two installation documents that print the download URLs change with it. Kept on purpose: the NVCR repository name until an nvkectl repository exists in the NGC org, the S3 prefix the publishing role's policy names, and the prose in the other documents. BREAKING CHANGE: the CLI is installed and invoked as nvkectl. The previous binary name, environment variable names and config directory are honoured for one release, as described above. Closes #1455 Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
4409efc29b |
build: move the Go module paths and repository URLs to dsx-ai-factory/nvke (#1449)
The repository was renamed from dsx-ai-factory/nke to dsx-ai-factory/nvke on 2026-10-10. Its id is unchanged, so guards, rulesets, environments and the OIDC subject carried over, and GitHub redirects the old URLs. The tree still named the old repository where the name is a contract rather than a URL: the module lines of the 12 Go modules and about 1,700 import lines, the proto go_package (embedded in node_agent.pb.go, regenerated here), both THIRD_PARTY_NOTICES.md files (regenerated), the lint local-prefix and depguard entries, ldflags, the go-licenses ignore lists, the documented repository URLs and gh commands, and the ghcr.io/dsx-ai-factory/nke image paths in workflows, the chart default and the e2e defaults. Only the organisation and repository segments change. Directories, identifiers, binary, image, chart, package, label, namespace and environment variable names, the CODEOWNERS team slugs and CHANGELOG.md stay as they are. Closes #1448 Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |