ON-PREM CHOREO CLOUD BOTH

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

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.

PartWhat it isWhere it runsHow Agent Manager uses it
The one sign-in service for the Choreo Cloud consoles and machine clients. A private ThunderID build.cloud-cpAgent Manager checks every token against its issuer and key set, and gets its own tokens from it.
A control plane (api-identity-platform, org-mgt-service) and, for each organisation and environment, a data plane half called .Control plane on cloud-cp, data plane half on cloud-dp-oc-dpIn CP_MANAGED mode Agent Manager creates agent identities through it.
The Choreo Cloud core service in front of OpenChoreo.cloud-cpAgent Manager’s calls to OpenChoreo go through it.
OpenChoreoChoreo Labs’ build of OpenChoreo. Images and charts come from an internal OpenChoreo repository.cloud-cp, and the four plane clustersAgent resources live in it. Agent Manager reaches it only through platform-api.
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-cpEvery AI gateway is this software.
secret-manager-apiA facade that stores secrets in OpenBao.cloud-dp-oc-cpHolds gateway tokens and keys.
Billing, NATS JetStream, Valkey, PostgresEntitlement checks, events, a cache for gateway manifests and Agent Manager’s own database.Billing, NATS and Valkey on cloud-cp. Postgres is an external databaseEntitlement 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
RepositoryThe wso2cloud repositoryThe API Platform repository
What it isThe core service on cloud-cp that sits in front of OpenChoreoAPI 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-default for outside traffic and api-platform-internal for 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 IdPIdentity Platform
Who it is forThe whole of Choreo Cloud: people signing in, and service clientsEach organisation and environment, for agent identities
ShapeOne component on cloud-cpA control plane on cloud-cp, plus a data plane half on the data plane for each organisation environment
In Agent ManagerIssues and checks tokens in both modesUsed for agent identities in CP_MANAGED mode

CP_MANAGED and LEGACY_DIRECT

Agent Manager has two identity modes, set by the environment.

  • In 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 scope iam:system.
  • In 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.
ModeEnvironments
CP_MANAGEDdev, stage-v2, prod-v2
LEGACY_DIRECTstage, 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.

  1. AMS calls the internal gateway.
  2. The gateway routes to platform-api.
  3. 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.

WhereRole
The Platform IdPThe sign-in service and token issuer for Choreo Cloud.
The Identity Platform data plane half, widp-dpThe per-organisation ThunderID that holds agent identities.
A ThunderID of the data planeThe source of the system token that platform-api uses to call OpenChoreo.

Same as on-prem, and different

TopicOn-premChoreo Cloud
Token issuerThe platform ThunderIDThe Platform IdP
Agent identitiesThe ThunderID of each environment, called directlyThrough the Identity Platform in CP_MANAGED mode, or directly in LEGACY_DIRECT
Calls to OpenChoreoDirectly, as a service account, in one namespaceThrough platform-api, in a namespace for each organisation
Gateway softwareThe same software, installed by a chartThe same software, created by provisioners
SecretsThe secrets path of lesson L4.3.4The 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.

Try it

The diagram

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

Loading the diagram...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

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)