Authentication and authorization

Understand the Agent Playbooks credentials, load the administration tokens, scope agent-key grants, and configure operator sign-in with OpenID Connect.

Self-managed Agent Playbooks uses administrative tokens for management and scoped agent keys for applications.

Caller API Credential
Playbook administrator Control plane, /iris/v1/agent-playbooks Admin token, or an operator's OpenID Connect (OIDC) access token.
Key administrator Identity Service, /v1/api-keys Identity Service control token.
Application or agent Data plane, /iris/data/v1/agent-playbooks Agent key with grants for the requested playbook.
Administrator working with content Data plane, /iris/data/v1/agent-playbooks Admin token, or an OIDC access token with a mapped admin role.

Keep administrative tokens out of application configuration and model prompts.

Credentials

The redis-iris chart generates each credential once and keeps it across upgrades, rollbacks, and uninstalls. See Credentials in the suite guide.

Credential Who presents it to whom Secret / key What it unlocks
Admin token Operator → control plane (:9200) and data plane (:9201) iris-playbook-admin-token / token Full Agent Playbooks access in global.iris.tenantId on both planes, including content, proposals, and skill uploads
Control-plane internal token Identity Service → control plane iris-playbook-internal-token / playbook Validating playbook grants before a key is stored
Data-plane runtime credential Data plane → Identity Service iris-playbook-dataplane-credential / playbook-dp Checking agent keys for playbook
Identity Service control token Operator → Identity Service (:9200) iris-identity-service-control-token / token Creating, listing, rotating, and revoking agent keys

Keep every credential distinct when you supply your own. The chart can't compare values held in differently named Secrets.

The admin token is a shared recovery credential. It grants no access to other Iris products, and audits identify shared recovery use rather than an individual operator. Prefer operator OIDC access for day-to-day administration and keep the admin token for recovery.

Load the administrative credentials

Use an account that can read Secrets, with the port-forwards from Deploy running:

export IRIS_AGENT_PLAYBOOKS_SERVICE_URL='http://localhost:9200'
export IRIS_AGENT_PLAYBOOKS_URL='http://localhost:9201'
export IRIS_IDENTITY_URL='http://localhost:9202'
export IRIS_AGENT_PLAYBOOKS_SERVICE_TOKEN="$(kubectl -n <namespace-name> get secret \
  iris-playbook-admin-token -o jsonpath='{.data.token}' | base64 --decode)"
export IRIS_IDENTITY_TOKEN="$(kubectl -n <namespace-name> get secret \
  iris-identity-service-control-token -o jsonpath='{.data.token}' | base64 --decode)"

The Secret names assume chart-generated tokens. If you set playbook.controlplane.adminToken.existingSecret, read that Secret, or load the token from your secret manager. The API examples and the Iris command-line interface (CLI) read these variables.

Supply the admin token

By default, the suite generates the admin token in iris-playbook-admin-token and reuses it on each helm upgrade. To supply your own value, create a Secret with that name before you install, or point Agent Playbooks at another Secret, which suppresses the generated one:

playbook:
  controlplane:
    adminToken:
      existingSecret: playbook-controlplane-admin

For GitOps or offline rendering, which can't look up existing values, also supply the internal token and the data-plane credential, as Credentials describes.

Agent-key grants

Each grant names a tenant, the playbook product and resource type, one playbook ID, and its actions:

{
  "tenant": "default",
  "product": "playbook",
  "resourceType": "playbook",
  "resourceId": "<playbook-id>",
  "actions": ["read"]
}

Set tenant to the release's global.iris.tenantId. The Identity Service fills an omitted tenant with it and rejects grants for another tenant. Before it stores a key, it asks the control plane to confirm that the playbook exists.

Action What it allows
read Retrieve published knowledge, list and inspect entry summaries, and read proposals.
write Create entries, append versions, inspect drafts, delete entries, and review proposals. Includes read.
publish Publish or withdraw entries and inspect versions. Includes read.
propose Create proposals and attach evidence. Includes read.

write doesn't include publish or propose. See Playbooks for how developers use these actions. The key examples show the complete request. For rotation and revocation, see Operations.

Configure operator OIDC access

You can keep the admin token and also accept OIDC access tokens from your identity provider (IdP). The suite configures both planes from the values it shares with every service, so you set them once under global.iris.auth:

global:
  iris:
    auth:
      oidc:
        issuer: https://<identity-provider-host>/<issuer-path>
        jwksURI: https://<identity-provider-host>/<jwks-path>
      roleBindings:
        - { group: <viewer-group>, role: viewer, product: playbook }
        - { group: <operator-group>, role: operator, product: playbook }
        - { group: <playbook-admin-group>, role: product_admin, product: playbook }
  • The suite derives auth.oidc.audience, dataplane.oidc, and controlplane.oidc.enabled for Agent Playbooks. Don't set them under playbook:: a differing value fails the render. The tenant is the release's global.iris.tenantId.
  • global.iris.auth.oidc.audience is the value your IdP puts in the token's aud claim. It defaults to api://redis-iris. On Entra ID with v2 tokens, use the API's Application (client) ID instead.
  • issuer is compared with the token's iss claim and is never fetched. On Active Directory Federation Services (AD FS), set accessTokenIssuer to the discovery document's access_token_issuer, such as http://<adfs-host>/adfs/services/trust. It defaults to issuer.
  • jwksURI is fetched for signing keys, so it must use https:// outside development clusters. Mount a private CA through global.tls.caCertSecret when the IdP uses one, and allow both planes egress to the JWKS endpoint.
  • The control plane accepts OIDC tokens only when at least one role binding applies to Agent Playbooks. Both planes validate tokens locally against the IdP's JSON Web Key Set (JWKS); neither calls the Identity Service for this. Agent keys stay enabled.

See Tenancy and identity provider limits for what a release accepts.

global.iris.auth.roleBindings defaults to empty. Unmapped groups grant no access, even when a value matches an Iris role name. Bind only trusted human administrator groups, and keep service identities out of them. A suite_admin binding takes no product and applies to every service.

The control plane applies these role tiers:

Role Control-plane access
viewer List models, and list and read playbooks.
operator Viewer access plus create and update playbooks.
product_admin, suite_admin Operator access plus clear or delete playbooks, and list extraction sources and create or enable extraction bindings.

On the data plane, product_admin and suite_admin users receive full Agent Playbooks access within the release's tenant.

The planes cache the JWKS for 10 minutes and allow 5 minutes of clock skew. If a key refresh fails and no cached key validates the token, the request fails with a temporary service error rather than an authentication error. A signed token normally stays usable until it expires. Account for these fixed defaults when you set token lifetimes and retire an IdP signing key.

OIDC access to agent-key administration

The Identity Service control API accepts the same IdP access tokens, configured once for the suite with global.iris.auth.oidc and global.iris.auth.roleBindings. Configure it when operators must manage agent keys without the Identity Service control token. The control token remains available as a deployment-administration credential. See operator sign-in with your identity provider in the Identity Service guide.

RATE THIS PAGE
Back to top ↑