Commit Graph
11 Commits
Author SHA1 Message Date
dependabot[bot]andTerry Howe 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>
2026-11-09 18:05:35 -07:00
Abhinav Pandey afd2d48e32 revert: "feat(nvkectl): install the NVKE stack on the site cluster (#2000)" (#2159)
Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com>
2026-11-05 17:25:01 -08:00
Abhinav Pandey 2cfd00081b feat(nvkectl): install the NVKE stack on the site cluster (#2000) 2026-10-28 18:07:19 -07:00
Anisha Gupta US 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>
2026-10-28 10:40:07 -04:00
Anisha Gupta US 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>
2026-10-27 12:00:02 -07:00
Milan 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>
2026-10-27 09:28:50 -07:00
Jun Shun Zhang 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>
2026-10-22 18:52:16 +00:00
Pat ChristopherandClaude Sonnet 5.5 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>
2026-10-21 12:11:02 -05:00
Anisha Gupta US 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>
2026-10-20 18:38:45 -04:00
Aaron Patten deb3f8826a feat(nvkectl): name the controller image flag and settings nvke-controller (#1776)
* feat(nvkectl): name the controller image flag and settings nvke-controller

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

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

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

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

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

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

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

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

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

---------

Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-10-20 09:33:04 -06:00
Jonathan Meier 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>
2026-10-19 14:27:19 -04:00