ON-PREM CHOREO CLOUD BOTH

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

On this page

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

LineDirection and protocolHow the caller is checked
Browser to the console APIThe browser calls the cloud-cp gateway over HTTPS. Where a gateway is on (dev, stage-v2, prod-v2, prod-v2-eu), a session cookie ties the browser to the gatewayThe 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 serviceHTTPS through api-platform-default on cloud-cpThe 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

LineDirection and protocolHow the caller is checked
Agent Manager to platform-apiAMS calls the api-platform-internal gateway, which routes to platform-apiThe caller’s own token. Background jobs can use a service token
Platform-api to the OpenChoreo APIA call to the OpenChoreo API on cloud-dp-oc-cpPlatform-api’s own system token from the data plane ThunderID. The user’s token is not forwarded
Platform-api to a data plane’s objectsPlatform-api calls , then the cluster-gateway, then a WebSocket tunnel to the plane’s cluster-agent, which calls its local Kubernetes APIThe proxy lets only listed resource kinds through

The two lines that the data side opens

LineDirection and protocolHow the caller is checked
Gateway controller to Agent Manager’s internal serverThe 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 9243A 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-gatewayThe agent dials a wss:// address of the cluster-gateway on cloud-dp-oc-cpMutual 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 linePlane line
Opened byThe gateway controller of one organisation environmentThe cluster-agent of one plane
DialledAgent Manager’s internal serverOpenChoreo’s cluster-gateway
Proof of identityAn api-key tokenA client certificate
TLSServer side onlyMutual
What travelsArtifact events down, artifact fetches by RESTCommands 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

LineDirection and protocolHow the caller is checked
Orchestrator to agent-manager-provisionerHTTP POST through the internal gateway on /api/v1/cp/agent-manager/ create, ready and delete, upstream port 8900The gateway admits only the client PLATFORM_API. The organisation comes in and is passed on in an unsigned backend token
Provisioner to platform-api, secret-manager-api and Agent ManagerCalls through the internal gateway and to the secret managerThe 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-inHTTP POST on the orchestrator’s internal endpointIts own client AGENT_MANAGER_PROVISIONER
Orchestrator to identity-platform-provisionerHTTP POST /provision/create through the internal gatewayThe client IDENTITY_PLATFORM_PROVISIONER_API, with X-Impersonate-Org
Identity-platform-provisioner to platform-apiA machine token to the url-prefixes route, and HTTPS through the oc-dp proxyA client of its own, with X-Impersonate-Org

Identity

LineDirection and protocolHow the caller is checked
Agent Manager to the Identity Platform control planeHTTPS 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 modeclient_credentials as AGENT_MANAGER_IDENTITY_CP_APP with the scope iam:system, and X-Impersonate-Org
Agent Manager to the environment ThunderIDIn LEGACY_DIRECT mode, through the internal gateway, to the environment’s management routeCovered in lesson L12.2.5

Telemetry, billing and events

LineDirection and protocolHow the caller is checked
Agent Manager service to agent-manager-observer, then cloud-obs-proxy, then OpenChoreo’s observerAgent Manager reads from the observer on the observability plane. The observer asks the proxy, and the proxy asks OpenChoreo’s observerThe 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 billingThe job posts usage events once an hourEach event has an idempotency key built from the hour, so a repeated hour is counted once
Billing to the provisionerAn event on NATS JetStreamThe provisioner reads it through a durable consumer, and ignores events of other products
Platform-api to billingA quota check before a create callOver 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-key header 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/v1 only in CP_MANAGED mode.
  • Telemetry goes through the observer and then cloud-obs-proxy, which pins each query to the caller’s organisation.

Try it

The diagram

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

Loading the diagram...

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)