ON-PREM CHOREO CLOUD BOTH

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

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.

ModeWhat Agent Manager doesEnvironments
Calls the Identity Platform control plane under /iam/v1dev, stage-v2, prod-v2
Calls the environment ThunderID through the internal gatewaystage, 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

Flow

Agent Manager calls the Identity Platform control plane (CP_MANAGED mode)

F38 7 steps CHOREO CLOUD

In CP_MANAGED mode Agent Manager creates and promotes agent identities through the Identity Platform control plane under /iam/v1, with a token of its own client. In LEGACY_DIRECT mode it uses the environment ThunderID instead.

  1. 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.

  2. 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 scope iam:system. It asks the organisation’s token endpoint, so the token is bound to the organisation.

  3. It calls the control plane

    Agent Manager calls the Identity Platform control plane under /iam/v1 on the environment gateway, with an X-Impersonate-Org header, to create the agent identity, projects, roles, groups or MCP resource servers.

  4. The gateway routes the call

    The route is split. Project, environment and promotion paths go to org-mgt-service. The other identity paths go to api-identity-platform.

  5. 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

TopicOn-premChoreo Cloud, LEGACY_DIRECTChoreo Cloud, CP_MANAGED
Where agent identities are madeIn the ThunderID of the environment, through its admin APIIn the environment ThunderID, through the internal gatewayIn 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_credentials token of the client AGENT_MANAGER_IDENTITY_CP_APP, with the scope iam:system, from the organisation’s token endpoint.
  • The /iam/v1 route is split between org-mgt-service and api-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.

Try it

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

The diagram

What to do: click any box to see what it is and who it talks to.

Loading the diagram...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)