What you will learn
- Follow the main lines between Agent Manager, the setup services, the identity parts, OpenChoreo, the gateways and the observability plane
- For each line, say who opens it, which protocol it uses and how the caller is checked
- Tell the gateway line from the OpenChoreo plane line, and say why they differ
- Say which lines exist on-prem too
Before you start
- What Agent Manager depends on in Choreo Cloud Not started In progress Done
- The four planes Not started In progress Done
On this page
- The lines of the map
- People and the Agent Manager API
- Agent Manager, platform-api and OpenChoreo
- The two lines that the data side opens
- Setup lines: orchestrator and provisioners
- Identity
- Telemetry, billing and events
- How the lines combine: three short stories
- What exists on-prem too
- Your turn
- Recap
- Try it
- Wrap up
You now know the cast. This lesson is step three: how the cast talks. For each line we say who opens it, which protocol it uses and how the caller is checked. The three questions are the ones to ask about any line in any system.
The lines of the map
Use the two architecture views in Try it while you read: the cluster view and the dependency view. The numbers below match the groups of the table, not the arrows of the view.
People and the Agent Manager API
| Line | Direction and protocol | How the caller is checked |
|---|---|---|
| Browser to the console API | The browser calls the cloud-cp gateway over HTTPS. Where a gateway Gateway BFFA sign-in layer on the cloud-cp gateway. The browser holds a cookie session and the gateway holds the token. The console uses it on dev and the v2 environments.See it in the glossary is on (dev, stage-v2, prod-v2, prod-v2-eu), a session cookie ties the browser to the gateway | The BFF signs in with the client AGENT_MANAGER_CONSOLE against the Platform IdP. The cookie is __Host-X-AGENT-MGMT, with a 2 hour idle limit and an 8 hour absolute limit |
| Console or amctl to Agent Manager’s service | HTTPS through api-platform-default on cloud-cp | The service checks the token against the Platform IdP issuer and key set. RBAC_ENABLED is true, so route scopes are enforced |
Agent Manager, platform-api and OpenChoreo
| Line | Direction and protocol | How the caller is checked |
|---|---|---|
| Agent Manager to platform-api | AMS calls the api-platform-internal gateway, which routes to platform-api | The caller’s own token. Background jobs can use a service token |
| Platform-api to the OpenChoreo API | A call to the OpenChoreo API on cloud-dp-oc-cp | Platform-api’s own system token from the data plane ThunderID. The user’s token is not forwarded |
| Platform-api to a data plane’s objects | Platform-api calls cluster-gateway-proxyA small Choreo Cloud proxy that lets platform-api reach listed Kubernetes objects in a data plane, through the OpenChoreo cluster-gateway. Only allow-listed kinds pass.See it in the glossary, then the cluster-gateway, then a WebSocket tunnel to the plane’s cluster-agent, which calls its local Kubernetes API | The proxy lets only listed resource kinds through |
The two lines that the data side opens
| Line | Direction and protocol | How the caller is checked |
|---|---|---|
| Gateway controller to Agent Manager’s internal server | The controller dials out over wss://, then calls internal REST routes for artifacts. The host is the environment’s shared API host plus the path of Agent Manager’s internal API route. The route is a WebSocket endpoint on port 9243 | A token in the api-key header. Server-side TLS only, no client certificate. The key identifies one gateway and its organisation |
| Plane cluster-agent to the cluster-gateway | The agent dials a wss:// address of the cluster-gateway on cloud-dp-oc-cp | Mutual TLS: certificates on both sides, chained to a shared mesh root. A plane is registered with a certificate authority, not a kubeconfig |
These two look alike, so here are the differences side by side.
| Gateway line | Plane line | |
|---|---|---|
| Opened by | The gateway controller of one organisation environment | The cluster-agent of one plane |
| Dialled | Agent Manager’s internal server | OpenChoreo’s cluster-gateway |
| Proof of identity | An api-key token | A client certificate |
| TLS | Server side only | Mutual |
| What travels | Artifact events down, artifact fetches by REST | Commands for the plane’s Kubernetes API |
A common wrong answer says the gateway uses mutual TLS. It does not. The plane agent does.
Setup lines: orchestrator and provisioners
| Line | Direction and protocol | How the caller is checked |
|---|---|---|
| Orchestrator to agent-manager-provisioner | HTTP POST through the internal gateway on /api/v1/cp/agent-manager/ create, ready and delete, upstream port 8900 | The gateway admits only the client PLATFORM_API. The organisation comes in X-Impersonate-OrgA request header that a trusted Choreo Cloud service client uses to say which organisation it acts for, for example the orchestrator calling the provisioner.See it in the glossary and is passed on in an unsigned backend token |
| Provisioner to platform-api, secret-manager-api and Agent Manager | Calls through the internal gateway and to the secret manager | The client AGENT_MANAGER_GATEWAY_REG with X-Impersonate-Org. For Agent Manager’s API, the organisation’s own token from the Platform IdP. secret-manager-api accepts a fixed list of machine clients, each with secrets:read and secrets:write |
| Provisioner to the orchestrator, on a first sign-in | HTTP POST on the orchestrator’s internal endpoint | Its own client AGENT_MANAGER_PROVISIONER |
| Orchestrator to identity-platform-provisioner | HTTP POST /provision/create through the internal gateway | The client IDENTITY_PLATFORM_PROVISIONER_API, with X-Impersonate-Org |
| Identity-platform-provisioner to platform-api | A machine token to the url-prefixes route, and HTTPS through the oc-dp proxy | A client of its own, with X-Impersonate-Org |
Identity
| Line | Direction and protocol | How the caller is checked |
|---|---|---|
| Agent Manager to the Identity Platform control plane | HTTPS under /iam/v1 on the environment gateway. Project, environment and promotion paths go to org-mgt-service, the others to api-identity-platform. Only in CP_MANAGED mode | client_credentials as AGENT_MANAGER_IDENTITY_CP_APP with the scope iam:system, and X-Impersonate-Org |
| Agent Manager to the environment ThunderID | In LEGACY_DIRECT mode, through the internal gateway, to the environment’s management route | Covered in lesson L12.2.5 |
Telemetry, billing and events
| Line | Direction and protocol | How the caller is checked |
|---|---|---|
Agent Manager service to agent-manager-observer, then cloud-obs-proxy, then OpenChoreo’s observer | Agent Manager reads from the observer on the observability plane. The observer asks the proxy, and the proxy asks OpenChoreo’s observer | The observer passes the caller’s token to the proxy. The proxy sets the query’s namespace from the caller’s ouName claim and calls OpenChoreo’s observer with its own system token |
| Metering job to billing | The job posts usage events once an hour | Each event has an idempotency key built from the hour, so a repeated hour is counted once |
| Billing to the provisioner | An event on NATS JetStream | The provisioner reads it through a durable consumer, and ignores events of other products |
| Platform-api to billing | A quota check before a create call | Over quota gets a payment required answer, and a billing service that cannot be reached stops the request |
How the lines combine: three short stories
A user reads traces. The browser calls the console API through the BFF, the service checks the token and calls the observer, the observer passes the token to the proxy, and the proxy pins the query to the caller’s organisation and calls OpenChoreo’s observer.
An organisation gets a gateway. Billing announces the first visit on NATS. The provisioner asks the orchestrator, which calls the provisioner back. The provisioner registers the gateway in Agent Manager, stores its token through secret-manager-api and applies its objects through platform-api. OpenChoreo and the plane’s cluster-agent carry them to the data plane, and the new gateway then dials Agent Manager. Both the plane line and the gateway line appear in this story.
A user creates an agent identity. Agent Manager asks the Platform IdP for a token and calls the Identity Platform control plane, which pushes the result to the environment’s identity data plane.
What exists on-prem too
The two dial-out lines exist on-prem too, with the same direction. The gateway controller dials AMS with the api-key header, and a plane cluster-agent dials the cluster-gateway with mutual TLS. What is new on Choreo Cloud is everything that routes through platform-api, the internal gateway, the orchestrator and the Identity Platform.
Your turn
Open Try it. Look at the cluster view and the dependency view side by side. Pick one arrow in each and say who opens it, which protocol it uses and how the caller is checked. Then play the matcher.
Recap
- Two lines are opened by the data side: the gateway controller dials Agent Manager, and each plane agent dials the cluster-gateway.
- The gateway line is a WebSocket with an
api-keyheader and server-side TLS only. The plane line uses mutual TLS with a shared mesh root. - Agent Manager reaches OpenChoreo through the internal gateway and platform-api, which swaps the token.
- The orchestrator calls the provisioners through the internal gateway, only as a trusted client, and the organisation travels in X-Impersonate-Org.
- Agent Manager calls the Identity Platform control plane under
/iam/v1only in CP_MANAGED mode. - Telemetry goes through the observer and then
cloud-obs-proxy, which pins each query to the caller’s 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)