{
  "schema_version": 2,
  "id": "operate/iris/identity-service/self-managed",
  "title": "Self-managed Identity Service",
  "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/",
  "summary": "Install, configure, secure, and operate the Identity Service with the redis-iris suite chart.",
  "tags": [
    "docs",
    "operate",
    "iris"
  ],
  "last_updated": "2026-11-12T10:07:43-05:00",
  "children": [
    {
      "id": "operate/iris/identity-service/self-managed/prerequisites",
      "summary": "Check the metadata Redis, Secrets, network access, and values you need before you install the Identity Service with the redis-iris suite chart.",
      "title": "Self-managed Identity Service prerequisites",
      "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/prerequisites/"
    },
    {
      "id": "operate/iris/identity-service/self-managed/configuration",
      "summary": "Configure the Identity Service metadata Redis, control token, tenant, services, agent-key settings, overlays, and TLS with the redis-iris suite chart.",
      "title": "Configure the Identity Service",
      "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/configuration/"
    },
    {
      "id": "operate/iris/identity-service/self-managed/deploy",
      "summary": "Install the Identity Service with the redis-iris suite chart, check that it answers, and find the credentials the chart generates.",
      "title": "Deploy the Identity Service",
      "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/deploy/"
    },
    {
      "id": "operate/iris/identity-service/self-managed/authentication",
      "summary": "Understand the Identity Service credentials, agent keys, tenants, and roles, let operators sign in with your identity provider, and recover from a lockout.",
      "title": "Authentication and authorization",
      "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/authentication/"
    },
    {
      "id": "operate/iris/identity-service/self-managed/operations",
      "summary": "Create, rotate, and revoke agent keys, add services, rotate credentials, audit changes, upgrade, back up, and troubleshoot the Identity Service.",
      "title": "Operate the Identity Service",
      "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/operations/"
    }
  ],
  "page_type": "content",
  "content_hash": "67dba8ca0581deb9d1e0d2d338c6413cc30903a3500c2b74d0b0ca80e42cbddb",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "The Identity Service is the one place where a self-managed Redis Iris installation keeps the credentials of agents and applications. It does three things:\n\n1. It issues agent keys. An agent key is a secret that an agent sends to a service's data plane, for example to Agent Memory.\n1. It keeps the grants of each key. A grant says which resource the caller can use, and how.\n1. It answers the data planes when they ask whether a key is valid, and what it can do.\n\nThis guide is for the platform administrator who installs the Identity Service, manages agent keys, and manages operator access. The `redis-iris` chart `1.0.0` always installs the Identity Service, as `iris-identity-service`. Its values go under the `identityService:` key, with the shared values under `global.iris`. It needs no license of its own, because the suite license covers it. To install, follow [Install the Redis Iris suite](https://redis.io/docs/latest/operate/iris/self-managed), then [Deploy](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/deploy)."
    },
    {
      "id": "what-you-deploy",
      "title": "What you deploy",
      "role": "content",
      "text": "| Component | Purpose | Provided by |\n| --- | --- | --- |\n| Identity Service | Issues, lists, rotates, and revokes agent keys, and checks them for the data planes. The Service is always `iris-identity-service`, on port `9200`. | The suite chart |\n| Control token Secret | The rescue credential for the control API. | The suite chart generates it, or you supply it |\n| Runtime credentials and internal tokens | Shared Secrets between the Identity Service and each service. | The suite chart generates them, or you supply them |\n| Metadata Redis | Stores the hashed agent keys and their grants. | You |\n\nThe chart deploys no Redis, no Ingress, and no NetworkPolicy for the Identity Service. It has no Transport Layer Security (TLS) listener: terminate TLS in your ingress, service mesh, or load balancer."
    },
    {
      "id": "which-services-use-it",
      "title": "Which services use it",
      "role": "content",
      "text": "| Service | `product` in grants | `resourceType` in grants | Guide |\n| --- | --- | --- | --- |\n| Agent Memory | `memory` | `mem-store` | [Self-managed Agent Memory](https://redis.io/docs/latest/operate/iris/agent-memory/self-managed) |\n| Agent Playbooks | `playbook` | `playbook` | [Self-managed Agent Playbooks](https://redis.io/docs/latest/operate/iris/agent-playbook/self-managed) |\n| Lens | `lens` | `lens-instance` | [Self-managed Lens](https://redis.io/docs/latest/operate/iris/lens/self-managed) |\n| Context Gateway | `context-gateway` | `gateway` | [Self-managed Context Gateway](https://redis.io/docs/latest/operate/iris/context-gateway/self-managed) |\n| Intent Router | `intent` | `intent-router` | [Self-managed Intent Router](https://redis.io/docs/latest/operate/iris/intent-router/self-managed) |"
    },
    {
      "id": "api-surfaces",
      "title": "API surfaces",
      "role": "content",
      "text": "The Identity Service listens on one port and serves three groups of routes. Each group accepts a different credential, sent as `Authorization: Bearer <value>`.\n\n| Route group | Routes | Caller | Credential |\n| --- | --- | --- | --- |\n| Control | `/v1/api-keys`, `/v1/products`, `/v1/subject-grants` | Operators, the Iris console, and automation | The control token, or an operator's identity provider (IdP) access token |\n| Runtime | `/v1/auth/*` | Service data planes | The service's runtime credential |\n| Operational | `/`, `/build-info`, `/health/liveness`, `/health/readiness` | Kubernetes probes and monitoring | None |\n\nThe operational routes need no credential, so don't expose them outside the cluster."
    },
    {
      "id": "how-the-components-work-together",
      "title": "How the components work together",
      "role": "content",
      "text": "[code example]\n\n1. An operator creates a resource in a service's control plane, such as an Agent Memory store.\n1. The operator creates an agent key for that resource through the control API, or on the **API Keys** page of the Iris console.\n1. Before it stores the key, the Identity Service asks the service's control plane to confirm that the resource exists and that the actions are valid. This step is called grant validation. If the control plane doesn't answer, the Identity Service refuses the grant with `424`.\n1. The Identity Service returns the key once. It stores only a hash of the key.\n1. The agent sends the key to the service's data plane. The data plane checks it with the Identity Service and caches the answer, so it doesn't ask for each request."
    },
    {
      "id": "get-started",
      "title": "Get started",
      "role": "content",
      "text": "1. Review the [prerequisites](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/prerequisites).\n1. Prepare the [configuration](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/configuration).\n1. [Install and check the Identity Service](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/deploy) with the suite chart.\n1. [Give an agent access with an agent key](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/operations#give-an-agent-access-with-an-agent-key).\n1. [Let operators sign in with your IdP](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/authentication#operator-sign-in-with-your-identity-provider)."
    },
    {
      "id": "manage-the-deployment",
      "title": "Manage the deployment",
      "role": "content",
      "text": "- [Change, rotate, and revoke agent keys](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/operations#change-rotate-and-revoke-a-key).\n- [Rotate credentials, find who did what, upgrade, and back up](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/operations).\n- [Recover from a lockout](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/authentication#recover-from-a-lockout).\n- [Troubleshoot the deployment](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/operations#troubleshooting)."
    }
  ],
  "examples": [
    {
      "id": "how-the-components-work-together-ex0",
      "language": "mermaid",
      "code": "sequenceDiagram\n    autonumber\n    actor Op as Operator\n    participant IdS as Identity Service\n    participant CP as Service control plane\n    participant R as Metadata Redis\n    actor Ag as Agent\n    participant DP as Service data plane\n\n    Note over Op,R: Create a key\n    Op->>IdS: POST /v1/api-keys with grants\n    IdS->>CP: Validate the grants\n    CP-->>IdS: The grants are valid\n    IdS->>R: Store the hash of the key and the grants\n    IdS-->>Op: keyId and token, shown once\n    Op->>Ag: Give the token through your secret store\n\n    Note over Ag,DP: Use the key\n    Ag->>DP: Request with Authorization: Bearer <token>\n    DP->>IdS: Check the key\n    IdS-->>DP: Active, grants, cache times\n    DP-->>Ag: The answer, if a grant allows the request",
      "section_id": "how-the-components-work-together"
    }
  ]
}
