Gateway API and OIDC
NVIDIA Config Manager uses portable Kubernetes HTTPRoute resources and supports
Envoy Gateway and kgateway. Browser authentication is performed by the chart’s
OIDC proxy, not by the Gateway controller. The chart configures the maintained,
distroless oauth2-proxy binary as the reverse-proxy engine. It validates the
shared session, supplies trusted identity headers and an ID-token Authorization
header, and forwards each hostname to its internal service. API clients continue
to use the svc-* hostnames with a Bearer token.
The project-owned global.images.oidcProxy image retains the upstream binary
and refreshes its public CA bundle to distrust the compromised emSign roots.
This mitigates the normal public-trust path while awaiting an
upstream release.
The Go runtime remains unchanged, so scanners may still report CVE-2026-111943.
The old upstream defaults migrate automatically to the wrapper, including with
helm upgrade --reuse-values. By default, the wrapper repository follows
global.images.nvConfigManager.repository with an -oidc-proxy suffix, so it
uses the configured project registry. If the main image repository does not end
in /nv-config-manager, set global.images.oidcProxy.repository explicitly;
the chart cannot infer a custom naming scheme.
Intentional custom oidc.proxy.image overrides
remain supported and bypass this wrapper. Their images must contain refreshed
CA stores; retaining an unrefreshed image explicitly opts out of the mitigation.
Helm notes flag these custom overrides. For mirrored or airgapped installs,
mirror the project wrapper, clear the legacy repository/tag overrides, and set
global.images.oidcProxy.repository to the bare repository name, without a tag
or digest suffix. Set global.images.oidcProxy.tag or
global.images.oidcProxy.digest separately. A non-empty digest takes precedence
over the tag and persists when values are reused during an upgrade. To select
a tag instead, clear global.images.oidcProxy.digest by setting it to "".
An explicit legacy oidc.proxy.image.pullPolicy still takes precedence,
including Never for preloaded disconnected installs.
The upstream binary pin is maintained in build/oidc-proxy.Dockerfile.
Repository-only installer images.overrides.oidcProxy settings retain their
upstream compatibility image/tag and bypass the emSign CA mitigation unless
the CA-refreshed wrapper is selected. Set the wrapper repository and its
release tag explicitly in the installer override, then regenerate Helm values.
Helm notes remind operators to verify CA stores for all explicit installer
OIDC image repositories, including overrides with a tag. An explicit tag alone
does not establish whether the image contains the refreshed CA bundle.
Every route strips inbound identity headers before forwarding, including routes
that intentionally bypass browser authentication for native API tokens. When
oidc.endSessionEndpoint is configured, logout clears the shared proxy session
and continues to the identity provider’s logout endpoint. Logging out of a
hosted application returns to that same hostname after the identity-provider
logout completes; configure its URL as an allowed post-logout redirect URI at
the identity provider.
Only one identity-provider callback is required. It always uses
gateway.baseHostname:
OIDC session refresh
oidc.proxy.cookieRefresh sets the oauth2-proxy session refresh interval and
defaults to "1h" for compatibility with existing deployments. Choose an interval
shorter than the lifetime of the ID token forwarded to Config Manager APIs.
Otherwise, a browser session can still exist while the APIs reject its expired
ID token as unauthenticated.
For an identity provider that issues five-minute ID tokens, set:
Refresh is request-driven: oauth2-proxy attempts to refresh an eligible session when a request arrives, rather than on a background timer. Successful renewal also depends on the identity provider’s refresh-token and session policies; this setting does not extend token lifetimes or bypass token validation.
Apply the value through your normal Helm upgrade or GitOps configuration. The proxy Deployment’s existing OIDC configuration checksum triggers a rollout when this value changes. After signing in, verify that protected API requests continue to succeed during active use beyond the original ID token’s expiry.
Managed Envoy Gateway
The defaults create a Gateway and an Envoy GatewayClass:
If the Envoy installation already owns its GatewayClass, set
createGatewayClass: false.
Managed kgateway
Install kgateway and its Gateway API CRDs before installing Config Manager. The
kgateway Helm installation normally owns the kgateway GatewayClass, so reuse it:
This mode creates the Config Manager Gateway, certificate, and controller-neutral
HTTPRoutes. It also creates kgateway TrafficPolicy resources that preserve the
configured default request timeout and the longer ZTP upload timeout, and a
BackendConfigPolicy that preserves the upstream connection timeout. It does
not render any gateway.envoyproxy.io resources.
gateway.timeout.maxConnectionDuration has no kgateway equivalent and must
remain 0s. To enable global rate limiting with kgateway, the platform team
must supply a gateway.kgateway.dev/GatewayExtension for its gRPC rate-limit
service, then reference it from the chart:
The referenced rate-limit service owns the actual quotas. When perClient is
enabled, the chart sends the client address as the descriptor; otherwise it
sends the fixed nv-config-manager=global descriptor.
Existing shared kgateway
For a platform-owned Gateway, disable Gateway creation and identify its namespace and HTTPS listener:
The platform-owned listener must allow HTTPRoute attachments from the Config
Manager namespace. The platform team also owns the listener certificate and DNS.
No OIDC policy or other gateway-level authentication configuration is required.
Verify that routes were accepted:
Gateway retries
With Envoy Gateway or kgateway, gateway.retry makes the gateway retry requests that never
reached a backend: a refused connection or a refused HTTP/2 stream. These are
most likely while pods are rolling or scaling in, and replaying them cannot
apply a write twice. It is on by default:
With oidc.enabled, browser routes are served through the OIDC proxy, so a
backend that has gone away surfaces as a 502 from the proxy rather than a
refused connection. safeMethods adds a safe-methods rule to each browser
route. The rule matches only GET and HEAD. A BackendTrafficPolicy or
kgateway TrafficPolicy attached to the rule also retries 502 responses.
Other methods keep only connection-level retries because a 502 cannot be
distinguished from a write that already committed.
The OIDC proxy’s upstream timeout is set to the route’s gateway timeout:
gateway.timeout.requestTimeout, or networkZtp.upload.timeout for ZTP. A
backend that is too slow is therefore ended by the gateway with a 504, which
is not retried, rather than by the proxy with a 502, which would be. This
holds only while the gateway enforces the same timeout; see
With an existing Gateway for when it does not.
With an existing Gateway
On kgateway, the retry is attached to every route the chart renders through
route-level TrafficPolicy resources, so gateway.create: false does not change
which routes are retried. Other routes on a shared Gateway are not affected.
On Envoy Gateway with gateway.create: false, the chart does not create the
Gateway-level BackendTrafficPolicy that carries the retry for most routes. In
that mode:
- The chart retries nothing on most routes, including
svc-*API routes and browser writes. Any retry configured by the platform Gateway’s own policy still applies to them. - The ZTP upload routes are retried, because they carry their own policy for the longer upload timeouts.
- With
oidc.enabled, browserGETandHEADrequests are retried, and the chart’sgateway.timeout.*values apply to them. If the platform Gateway has its ownBackendTrafficPolicy, the chart’s policy is merged over it for those requests. The chart’s timeouts take precedence. Other settings in the platform policy, such as rate limits, are retained.
To keep the platform Gateway’s own settings for browser reads, set
gateway.retry.safeMethods.enabled: false. To disable the chart’s retries
entirely, set gateway.retry.enabled: false. Neither setting changes retries
configured by the platform Gateway’s own policy; change that policy to disable
them.
Neither setting removes the OIDC proxy’s upstream timeout. The proxy always
uses gateway.timeout.requestTimeout (300s by default), but in this mode the
chart enforces that timeout at the gateway only for browser GET and HEAD
requests, and only while safeMethods is enabled. Other browser requests, and
all of them once either setting is turned off, are bounded by the platform
Gateway’s timeout. If the platform timeout is longer, a slow backend is ended
by the proxy with a 502 rather than by the gateway with a 504, and any
platform retry on 502 replays it. Set gateway.timeout.requestTimeout to the
platform Gateway’s request timeout in these installations.
Upgrading an Argo CD deployment
This guidance applies when upgrading to Config Manager 1.3.1 or later. That
release replaces controller-specific OIDC policy with the chart’s shared,
controller-neutral OIDC proxy. It does not require a controller migration:
retain ingress.type: envoyGateway for existing Envoy Gateway installations,
or set ingress.type: kgateway only when the cluster uses kgateway.
Before bumping the chart revision in an Argo CD ApplicationSet:
- Preserve
gateway,networkZtp.ingress, andnetworkDhcp.ingressvalues. The latter two configure device-facing LoadBalancer Services and are independent of browser Gateway API routing. - Register
https://<gateway.baseHostname>/oauth2/callbackwith the identity provider.oidc.hostnameis no longer used and can be removed from overlays. - Ensure the Secret named by
oidc.clientSecretNamecontainsclient-secretandcookie-secret. For External Secrets Operator deployments, the Vault path must contain both mapped properties;cookie-secretdecodes to exactly 32 bytes. Existing client-secret-only paths must be populated before the chart revision is updated. - Mirror or permit pulling
global.images.oidcProxyalong with the other project-owned images. Set its repository and tag or digest in the environment overlay when the cluster cannot pull from the default registry. - Confirm that
networkPolicy.gatewayNamespaceadmits the Gateway data-plane namespace, render the exact shared and site-specific values layers, and verify the Gateway isProgrammed, HTTPRoutes areAccepted, and the OIDC proxy Deployment is ready after synchronization.