> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# Authentication and access

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](/remediation-orchestrator/deployment/helm/quick-start/shared-k8s#dex-sign-in).

## 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 through | `auth.mode` |
| --- | --- |
| NRO's own sign-in, backed by an existing Dex | `dex`, the default |
| A proxy that authenticates them and forwards a standard bearer token, such as an Envoy Gateway `SecurityPolicy` or oauth2-proxy | `oidcProxy` |
| nvproxy, which forwards their token in the `X-Nvproxy-Auth-Token` header or the `nvproxyIdToken` cookie | `nvproxy` |
| Teleport application access | `teleport` |
| Nothing, on an isolated local cluster with `-e local` | `developmentNone`, 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](/remediation-orchestrator/deployment/helm/reference/application-chart#authorization)). The
[chart's mode table](/remediation-orchestrator/deployment/helm/reference/application-chart#authentication-modes)
says who verifies the identity in each mode and what each one requires.

For `dex`, follow the [Dex sign-in](/remediation-orchestrator/deployment/helm/quick-start/shared-k8s#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](/remediation-orchestrator/deployment/helm/reference/application-chart#dex).
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](#choose-an-authentication-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](/remediation-orchestrator/deployment/helm/configuration/environments#tune-the-charts-through-passthroughs):

| Key | Value |
| --- | --- |
| `auth.siteAdminGroups` | At least one group, unless an opt-in below applies |
| `auth.dex` | Leave empty; drop the `dex:` block from your state file and skip the Dex client Secret when you [create the namespace and Secrets](/remediation-orchestrator/deployment/helm/quick-start/shared-k8s#3-create-the-namespace-and-secrets) |
| `remediation-orchestrator.networkPolicy` | `enabled: true` with `ingressPeers` that select only the proxy or Teleport agent pods |
| `remediation-orchestrator.ingress.enabled` | `false` |
| `remediation-orchestrator.service.type` | `ClusterIP`, the default; a NodePort or LoadBalancer Service would bypass the proxy |
| `remediation-orchestrator.httpRoute.enabled` | `false` 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](/remediation-orchestrator/deployment/helm/reference/application-chart#the-proxy-modes)
  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](/remediation-orchestrator/deployment/helm/quick-start/shared-k8s#5-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](/remediation-orchestrator/deployment/helm/reference/application-chart#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:

```yaml
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.

| Setting | Value |
| --- | --- |
| `auth.teleport.issuer` | Your 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.appName` | The 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.audience` | When 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](/remediation-orchestrator/deployment/helm/operations/troubleshooting#bootstrap-application-and-login).

The [Teleport reference](/remediation-orchestrator/deployment/helm/reference/application-chart#teleport) lists
the optional Teleport settings. The [Teleport module](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/modules/teleport/README.md)
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](/remediation-orchestrator/deployment/helm/reference/application-chart#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:

```yaml
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](/remediation-orchestrator/deployment/helm/reference/application-chart#oidcproxy)).
The chart cannot check the proxy's policy.

## Next steps

- Apply the change: render, deploy and verify as in
  [Render, deploy and verify](/remediation-orchestrator/deployment/helm/quick-start/shared-k8s#5-render-deploy-and-verify),
  signing in through your proxy or Teleport.
- Look up the other state keys: [State keys](/remediation-orchestrator/deployment/helm/configuration/environments#state-keys).
- Sign-in fails: [Bootstrap, application and login](/remediation-orchestrator/deployment/helm/operations/troubleshooting#bootstrap-application-and-login).