Skip to navigation

Authentication and access

View as MarkdownOpen in Claude

Use this page to choose how users reach and sign in to NRO, and to configure the proxy and Teleport modes. For the default setup, Dex with an Ingress, follow the Shared K8s quick start.

Choose an authentication mode

Set auth.mode in your state file to match how users reach NRO. The default is dex. Dex is an OpenID Connect identity provider that NRO uses for sign-in. Users usually reach NRO through an identity service or proxy you already operate. This stack does not install Dex, the proxy or the Teleport infrastructure.

Users reach NRO throughauth.mode
NRO’s own sign-in, backed by an existing Dexdex, the default
A proxy that authenticates them and forwards a standard bearer token, such as an Envoy Gateway SecurityPolicy or oauth2-proxyoidcProxy
nvproxy, which forwards their token in the X-Nvproxy-Auth-Token header or the nvproxyIdToken cookienvproxy
Teleport application accessteleport
Nothing, on an isolated local cluster with -e localdevelopmentNone, the local default

Authentication establishes who a user is. Authorization controls what that user can do in NRO. auth.siteAdminGroups names the groups that get site-administrator access.

Every mode except developmentNone also needs administrator groups in auth.siteAdminGroups or an explicit opt-in (Authorization). The chart’s mode table says who verifies the identity in each mode and what each one requires.

For dex, follow the Dex sign-in step of the Shared K8s quick start. To accept verified NVProxy tokens alongside Dex, set auth.trustedJwtIssuers at the top level of your state file as described in the chart’s Dex configuration. For the other modes, use the next section.

Authenticate through a proxy or Teleport

NRO can trust an identity layer in front of it instead of using Dex. Set auth.mode to oidcProxy or nvproxy for an authenticating proxy, or to teleport for Teleport application access (choose a mode). The identity layer must be the only path from untrusted clients to NRO. Set the following keys to enforce that. Place the remediation-orchestrator.* keys under the remediation-orchestrator: block of your state file, the NRO chart’s passthrough:

KeyValue
auth.siteAdminGroupsAt least one group, unless an opt-in below applies
auth.dexLeave empty; drop the dex: block from your state file and skip the Dex client Secret when you create the namespace and Secrets
remediation-orchestrator.networkPolicyenabled: true with ingressPeers that select only the proxy or Teleport agent pods
remediation-orchestrator.ingress.enabledfalse
remediation-orchestrator.service.typeClusterIP, the default; a NodePort or LoadBalancer Service would bypass the proxy
remediation-orchestrator.httpRoute.enabledfalse in nvproxy and teleport; in oidcProxy it may carry the proxy’s route

Choose the peers with these rules in mind:

  • Each ingressPeers entry must select pods or namespaces by label, or be a narrow ipBlock. The proxy-mode reference lists the accepted shapes.
  • The cluster must enforce NetworkPolicy.
  • A namespace-only selector admits every pod in that namespace, so use it only when all those pods are trusted.
  • helm test connects directly to NRO, so it needs its own peer, for example a podSelector with app.kubernetes.io/instance: remediation-orchestrator and app.kubernetes.io/component: test, as in the example below. Without it, helm test in Render, deploy and verify cannot reach NRO. That peer also bypasses the identity layer, so restrict who can create or label matching pods.

To keep rbac authorization but allow no administrators, set auth.allowEmptySiteAdminGroups: true. To turn off authorization, set auth.authorizationProvider: none and leave auth.siteAdminGroups empty. These are different choices, and both print a warning at install. Refer to Authorization.

Teleport

Replace your state file’s auth: block with the one below. Merge the shown settings into your existing remediation-orchestrator: block, or add that block if it is absent. Keep its other settings:

auth:
mode: teleport
siteAdminGroups:
- remediation-orchestrator-admins
teleport:
appName: remediation-orchestrator
issuer: teleport.example.org # the Teleport cluster name
remediation-orchestrator:
networkPolicy:
enabled: true
ingressPeers:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: teleport-agent
- podSelector:
matchLabels:
app.kubernetes.io/instance: remediation-orchestrator
app.kubernetes.io/component: test
ingress:
enabled: false

teleport-agent in this example is the namespace of your Teleport agent pods. That peer admits every pod in the namespace. If other workloads run there, add a podSelector with your agent’s labels to the same entry.

SettingValue
auth.teleport.issuerYour Teleport cluster name, without scheme or port. NRO accepts only tokens whose iss claim equals it exactly, and reads signing keys from https://<issuer>/.well-known/jwks.json unless you set auth.teleport.jwksUrl. Set auth.teleport.jwksUrl when the Teleport proxy does not serve its keys at that address
auth.teleport.appNameThe Teleport application name. The chart writes it to the frontend Service as the teleport.dev/name annotation: the NRO Service, or the nginx proxy Service when the Temporal UI proxy is on
auth.teleport.audienceWhen you leave it empty, the chart derives the frontend Service URI using the http scheme and port 6787, here with hostname remediation-orchestrator.<namespace>.svc.cluster.local. Set it when your Teleport app uses another URI

The derived audience follows the frontend Service, which changes when you turn the Temporal UI proxy on or off. After such a change, update a Teleport app that names the old URI, or set auth.teleport.audience explicitly.

Your Teleport agent publishes the frontend Service as an application. The chart sets the teleport.dev/name annotation, which names the application for an agent with Kubernetes app discovery. The agent and its app definition live outside the chart.

In teleport mode, NRO reads a user’s groups from the groups trait in the Teleport JWT. List values of that trait in auth.siteAdminGroups. Teleport role names do not count as groups.

To check sign-in after you deploy, open NRO from your Teleport application list. Then open /auth/profile on that address. The page shows your Teleport user, and the badge Role: Site Admin for a member of auth.siteAdminGroups. If sign-in fails, refer to Bootstrap, application and login.

The Teleport reference lists the optional Teleport settings. The Teleport module is separate from sign-in: it lists Teleport nodes for scripts.

nvproxy or oidcProxy

Use these modes when an authenticating proxy sits in front of NRO. Start from the Teleport example above and make these changes:

  1. Set auth.mode to nvproxy or oidcProxy. In nvproxy, keep remediation-orchestrator.temporal.uiProxy.enabled at false, its default, because your proxy routes /temporal to the Temporal UI itself.
  2. Remove the teleport block.
  3. List the issuers whose tokens the proxy forwards in auth.trustedJwtIssuers (trusted JWT issuers).
  4. In ingressPeers, select the proxy’s pods in place of the teleport-agent peer.

The resulting auth: block looks like this, with your own groups and issuers:

auth:
mode: oidcProxy # or nvproxy
siteAdminGroups:
- remediation-orchestrator-admins
trustedJwtIssuers:
- issuer: https://idp.example.org
audience: remediation-orchestrator
jwksUrl: https://idp.example.org/keys

The proxy must authenticate every request and set or strip every credential that NRO reads in that mode (proxy credential requirements). The chart cannot check the proxy’s policy.

Next steps