What you will learn
- Say what Agent Manager asks of the Identity Platform, and when
- Follow flow F38: the mode, the token, the call, the route split and the promotion
- Say which environments use CP_MANAGED and which use LEGACY_DIRECT
- Compare both modes with the on-prem call to the environment ThunderID
Before you start
- Create the identity data plane on Choreo Cloud Not started In progress Done
- What Agent Manager depends on in Choreo Cloud Not started In progress Done
On this page
Lesson L12.2.4 built an identity data plane. This lesson shows how Agent Manager’s service uses the Identity Platform that comes with it: when a user creates an agent, an identity has to be made for that agent. Flow F38 follows the call.
Which mode, where
Agent Manager has two identity modes, set per environment.
| Mode | What Agent Manager does | Environments |
|---|---|---|
| CP_MANAGEDAn identity mode of Agent Manager on Choreo Cloud. It creates agent identities through the Identity Platform control plane. It is set on dev, stage-v2 and prod-v2.See it in the glossary | Calls the Identity Platform control plane under /iam/v1 | dev, stage-v2, prod-v2 |
| LEGACY_DIRECTThe default identity mode of Agent Manager. It calls the ThunderID of the environment directly, as on-prem does. On Choreo Cloud it applies wherever the branch does not set CP_MANAGED.See it in the glossary | Calls the environment ThunderID through the internal gateway | stage, prod, prod-v2-eu |
The mode follows the environment branch. Where the branch does not set it, the default LEGACY_DIRECT applies. That is why prod-v2-eu, which has an orchestrated gateway, runs the default mode. The files do not say whether that is intended.
The call, step by step
Agent Manager picks its path at start
When the service starts, it reads its mode. In CP_MANAGED mode it builds an Identity Platform provider from its configuration, and uses it for agent identities, projects, groups and, when switched on, MCP resource servers and roles.
It gets a token for its own client
Agent Manager asks the Platform IdP for a token with
client_credentials, as the client AGENT_MANAGER_IDENTITY_CP_APP, with the scopeiam:system. It asks the organisation’s token endpoint, so the token is bound to the organisation.It calls the control plane
Agent Manager calls the Identity Platform control plane under
/iam/v1on the environment gateway, with anX-Impersonate-Orgheader, to create the agent identity, projects, roles, groups or MCP resource servers.The gateway routes the call
The route is split. Project, environment and promotion paths go to
org-mgt-service. The other identity paths go toapi-identity-platform.Promotion pushes the identity to the environment
To activate or promote an agent identity, Agent Manager calls the org-mgt routes to apply a version to the environment. The control plane pushes the version into the identity data plane of that environment, the widp-dp that lesson L12.2.4 created.
In LEGACY_DIRECT mode none of this happens. Agent Manager calls the environment ThunderID’s management route through the internal gateway instead.
What does not change
The tokens that people present to Agent Manager come from the Platform IdP in both modes, and Agent Manager checks them the same way. The mode only changes where agent identities are created and promoted.
Compared with on-prem
| Topic | On-prem | Choreo Cloud, LEGACY_DIRECT | Choreo Cloud, CP_MANAGED |
|---|---|---|---|
| Where agent identities are made | In the ThunderID of the environment, through its admin API | In the environment ThunderID, through the internal gateway | In the Identity Platform control plane, then promoted to the data plane |
On-prem, Agent Manager keeps an address for each environment’s ThunderID and one agent identity record for each agent in each environment. In CP_MANAGED mode the identity is made and promoted by the Identity Platform control plane instead.
Your turn
Open Try it. Play flow F38. At the first step, say what decides the path. At the second, say whose client Agent Manager uses and for which scope. Then find the step that the LEGACY_DIRECT mode skips.
Recap
- In CP_MANAGED mode Agent Manager creates and promotes agent identities through the Identity Platform control plane under
/iam/v1. - It uses a
client_credentialstoken of the client AGENT_MANAGER_IDENTITY_CP_APP, with the scopeiam:system, from the organisation’s token endpoint. - The
/iam/v1route is split betweenorg-mgt-serviceandapi-identity-platform. - CP_MANAGED applies on dev, stage-v2 and prod-v2. LEGACY_DIRECT, the default, applies on stage, prod and prod-v2-eu.
- On-prem, Agent Manager calls the environment ThunderID’s admin API directly, as LEGACY_DIRECT does.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)