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.
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.
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:
Choose the peers with these rules in mind:
- Each
ingressPeersentry must select pods or namespaces by label, or be a narrowipBlock. 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 testconnects directly to NRO, so it needs its own peer, for example apodSelectorwithapp.kubernetes.io/instance: remediation-orchestratorandapp.kubernetes.io/component: test, as in the example below. Without it,helm testin 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:
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.
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:
- Set
auth.modetonvproxyoroidcProxy. Innvproxy, keepremediation-orchestrator.temporal.uiProxy.enabledatfalse, its default, because your proxy routes/temporalto the Temporal UI itself. - Remove the
teleportblock. - List the issuers whose tokens the proxy forwards in
auth.trustedJwtIssuers(trusted JWT issuers). - In
ingressPeers, select the proxy’s pods in place of theteleport-agentpeer.
The resulting auth: block looks like this, with your own groups and issuers:
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
- Apply the change: render, deploy and verify as in Render, deploy and verify, signing in through your proxy or Teleport.
- Look up the other state keys: State keys.
- Sign-in fails: Bootstrap, application and login.