What you will learn
- List what Agent Manager depends on in Choreo Cloud, and say what each part is for
- Tell the Choreo Cloud platform-api from the program of the same name in API Platform
- Say what API Platform adds, and in which direction the gateway and Agent Manager connect
- Explain the Platform IdP, the Identity Platform, CP_MANAGED and LEGACY_DIRECT
- Say how Agent Manager reaches OpenChoreo, and where ThunderID appears
Before you start
- Agent Manager on Choreo Cloud: what is new Not started In progress Done
On this page
Agent Manager’s service does not stand alone on Choreo Cloud. It leans on a set of other parts, some from Choreo Labs and some from products it shares the cloud with. If you do not know which part is which, two names will trip you up: platform-api and ThunderID. This lesson sorts both out.
The dependency map
The table lists what Agent Manager’s service depends on. The first column uses the names of the code, which are the names you will meet in logs and settings.
| Part | What it is | Where it runs | How Agent Manager uses it |
|---|---|---|---|
| Platform IdPChoreo Cloud's sign-in service, a private build of ThunderID. It plays the role that the platform ThunderID plays in an on-prem install.See it in the glossary | The one sign-in service for the Choreo Cloud consoles and machine clients. A private ThunderID build. | cloud-cp | Agent Manager checks every token against its issuer and key set, and gets its own tokens from it. |
| Identity PlatformA Choreo Cloud product that gives each organisation its own ThunderID. Its control plane runs on cloud-cp, and a data plane half runs for each organisation and environment.See it in the glossary | A control plane (api-identity-platform, org-mgt-service) and, for each organisation and environment, a data plane half called widp-dpThe per-organisation, per-environment ThunderID that the identity-platform-provisioner creates on the customer data plane. It starts empty, and the Identity Platform control plane fills it.See it in the glossary. | Control plane on cloud-cp, data plane half on cloud-dp-oc-dp | In CP_MANAGED mode Agent Manager creates agent identities through it. |
| platform-api (PAS)The Choreo Cloud service that sits between Agent Manager and OpenChoreo. It works out each caller's organisation and forwards the call to the right place.See it in the glossary | The Choreo Cloud core service in front of OpenChoreo. | cloud-cp | Agent Manager’s calls to OpenChoreo go through it. |
| OpenChoreo | Choreo Labs’ build of OpenChoreo. Images and charts come from an internal OpenChoreo repository. | cloud-cp, and the four plane clusters | Agent resources live in it. Agent Manager reaches it only through platform-api. |
| API Platform (gateway software)The software behind the Agent Manager AI gateway: controller and runtime images, the gateway-operator and the APIGateway resource. The gateway dials Agent Manager, never the reverse.See it in the glossary | The controller and runtime images, the gateway-operator and the APIGateway resource. | One gateway for each organisation environment on the data plane. Two more gateways on cloud-cp | Every AI gateway is this software. |
| secret-manager-api | A facade that stores secrets in OpenBao. | cloud-dp-oc-cp | Holds gateway tokens and keys. |
| Billing, NATS JetStream, Valkey, Postgres | Entitlement checks, events, a cache for gateway manifests and Agent Manager’s own database. | Billing, NATS and Valkey on cloud-cp. Postgres is an external database | Entitlement checks, events and storage. |
The next sections open the four rows that cause trouble.
Two programs called platform-api
Two different programs are called platform-api. This is the most common mix-up in the SaaS files, so read this part twice.
| platform-api of Choreo Cloud (PAS) | platform-api of API Platform | |
|---|---|---|
| Repository | The wso2cloud repository | The API Platform repository |
| What it is | The core service on cloud-cp that sits in front of OpenChoreo | API Platform’s own program |
| Does Agent Manager call it? | Yes. It goes through the internal gateway. | In the code read, no Agent Manager client calls it |
The provisioner has a setting called platform-apip-endpoint. The name says “apip”, but it points at the Choreo Cloud platform-api, not at an API Platform service. When someone says “Agent Manager calls the platform API”, ask which one they mean. If they mean the second, the files show no such call.
There is a third family of names. apip-platform-api, apip-console and friends are the services of the Choreo API Management product. They run as components in the apip project on cloud-cp. They are not what Agent Manager depends on either.
API Platform: a dependency of software, not of calls
What Agent Manager gets from API Platform is the gateway software. The controller and runtime images, the gateway-operator and the APIGateway resource all come from it. By default the provisioner uses the public API Platform gateway images. On dev and stage-v2 it is pointed at the cloud’s own build of the gateway that the Choreo API Management product runs, which comes from the apim-saas repository.
The direction matters. The gateway controller opens a WebSocket connection to Agent Manager’s internal server, with a registration token in an api-key header. It uses server-side TLS only, not mutual TLS. Agent Manager does not call into the gateway. Events travel down the connection the gateway opened.
Where the gateways run:
- On
cloud-cp, two gateways of the same kind of software carry Agent Manager’s own traffic. Their images are built in the wso2cloud repository:api-platform-defaultfor outside traffic andapi-platform-internalfor service to service calls. The console and the APIs of Agent Manager are published behind them. - On the customer data plane, each organisation environment has its own pair of gateway controller and runtime. The provisioner applies an APIGateway object through OpenChoreo, and the operator on that cluster turns it into workloads. There is no single shared Agent Manager gateway.
Two ThunderID names: the Platform IdP and the Identity Platform
Both are built on ThunderID, so they are easy to mix up.
| Platform IdP | Identity Platform | |
|---|---|---|
| Who it is for | The whole of Choreo Cloud: people signing in, and service clients | Each organisation and environment, for agent identities |
| Shape | One component on cloud-cp | A control plane on cloud-cp, plus a data plane half on the data plane for each organisation environment |
| In Agent Manager | Issues and checks tokens in both modes | Used for agent identities in CP_MANAGED mode |
CP_MANAGED and LEGACY_DIRECT
Agent Manager has two identity modes, set by the environment.
- In 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 mode Agent Manager creates and promotes agent identities, projects and MCP resource servers through the Identity Platform control plane API under
/iam/v1. It uses a token of its own client and the scopeiam:system. - In 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 mode Agent Manager calls the environment ThunderID directly. It does so through the internal gateway on Choreo Cloud. This is also the style of on-prem, where AMS calls the environment ThunderID’s admin API.
| Mode | Environments |
|---|---|
| CP_MANAGED | dev, stage-v2, prod-v2 |
| LEGACY_DIRECT | stage, prod, prod-v2-eu |
LEGACY_DIRECT applies on stage, prod and prod-v2-eu because their branches do not set the mode, and it is the default. That makes prod-v2-eu unusual: its gateway is made by the orchestrator, but its identity mode is the default one. The files do not say whether that is meant. The /iam/v1 route is split: project and environment paths go to org-mgt-service, and the other identity paths go to api-identity-platform. Lesson L12.2.5 follows the calls.
OpenChoreo
On-prem, AMS calls OpenChoreo as its own service account, in one configured namespace. On Choreo Cloud, AMS does not call an OpenChoreo API directly.
- AMS calls the internal gateway.
- The gateway routes to platform-api.
- Platform-api calls the OpenChoreo API with a system token of its own.
The organisation namespace comes from the organisation id in the token, so it is one namespace for each organisation. Agent resources are OpenChoreo projects, components and bindings in that namespace. The OpenChoreo version also differs by environment, from 1.2.5 on prod to 1.4.0-m.1-u1 on the v2 family.
ThunderID in three places
ThunderID shows up three times in this picture. Keeping them apart removes most of the confusion.
| Where | Role |
|---|---|
| The Platform IdP | The sign-in service and token issuer for Choreo Cloud. |
| The Identity Platform data plane half, widp-dp | The per-organisation ThunderID that holds agent identities. |
| A ThunderID of the data plane | The source of the system token that platform-api uses to call OpenChoreo. |
Same as on-prem, and different
| Topic | On-prem | Choreo Cloud |
|---|---|---|
| Token issuer | The platform ThunderID | The Platform IdP |
| Agent identities | The ThunderID of each environment, called directly | Through the Identity Platform in CP_MANAGED mode, or directly in LEGACY_DIRECT |
| Calls to OpenChoreo | Directly, as a service account, in one namespace | Through platform-api, in a namespace for each organisation |
| Gateway software | The same software, installed by a chart | The same software, created by provisioners |
| Secrets | The secrets path of lesson L4.3.4 | The same idea, with secret-manager-api as a listed-client facade |
Your turn
Open Try it. In the diagram, press Agent Manager’s service and follow what it depends on. Find the two places that the word gateway points to. Then play the matcher: match each part to the job it does for Agent Manager.
Recap
- Agent Manager depends on the Platform IdP, the Identity Platform, platform-api, OpenChoreo, API Platform’s gateway software, secret-manager-api, billing, NATS, Valkey and Postgres.
- There are two programs called platform-api. Agent Manager calls the Choreo Cloud one. The code read shows no call to the API Platform one.
- The link to API Platform is its gateway software. The gateway opens the connection to Agent Manager, and Agent Manager does not call in.
- CP_MANAGED uses the Identity Platform control plane. LEGACY_DIRECT calls the environment ThunderID. The mode is set per environment.
- Agent Manager reaches OpenChoreo through the internal gateway and platform-api, in a namespace for each organisation.
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)