ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Say what the identity data plane is, and where its two halves run
  • Follow the eight steps of flow F35, from the orchestrator's call to the NATS announcement
  • Say which service does the work, and which services it calls on the way
  • Say how the new identity data plane feeds the gateway step
  • Compare it with the on-prem environment ThunderID install

Before you start

On this page

Every organisation environment on Choreo Cloud has its own identity service, where agent identities live. This lesson follows how that service is built. It is the thunder step of the recipe from the last lesson, and the full flow has the id F35.

Two halves

The has two halves.

  • The control plane runs on cloud-cp. It is made of api-identity-platform and org-mgt-service, and the identity-platform-provisioner that builds the other half. These are components of the identity-platform project.
  • The data plane half, , is created for each organisation and environment on the customer data plane. It is a ThunderID workload.

The data plane half starts empty. The control plane fills it with versions that are promoted to it. Lesson L12.2.5 shows how Agent Manager uses that.

The eight steps

Flow

SaaS identity data plane creation for an organization environment

F35 9 steps CHOREO CLOUD

The orchestrator asks the identity-platform-provisioner to build a per-organization ThunderID data plane. The provisioner applies a ResourceType, a Resource and a binding through platform-api, registers the data plane on the Identity Platform control plane, and announces the result on NATS.

  1. The orchestrator asks for the data plane

    The orchestrator runs the thunder step of the agent-manager recipe. It calls the identity-platform-provisioner create endpoint through the internal gateway with the client IDENTITY_PLATFORM_PROVISIONER_API, acting for the organisation in X-Impersonate-Org.

  2. It asks for a public address

    Before it builds anything, the provisioner asks platform-api for an opaque public URL prefix for the environment and records it on the Resource as an annotation. That URL is the token issuer of the new data plane.

  3. The provisioner makes sure the organisation exists on the control plane

    Before it writes any OpenChoreo object, the provisioner ensures that the organisation’s defaults exist in api-identity-platform, so the new data plane can be registered and filled. It calls the control plane with its own client, IDENTITY_PLATFORM_CP_M2M_AUTH_APP.

  4. It applies the widp-dp ResourceType

    The provisioner applies the organisation’s widp-dp ResourceType through platform-api’s oc-dp proxy. An organisation that already has one keeps it when its template revision matches.

  5. It registers the data plane on the control plane

    The provisioner registers the data plane as a gateway called widp-dp-<org handle>-<env> on the Identity Platform control plane, with a freshly generated management API key.

  6. It applies the Resource and the binding

    The provisioner applies the environment’s Resource and then a ResourceReleaseBinding. OpenChoreo renders the binding into the customer data plane, where the ThunderID workload starts empty.

  7. The control plane fills it

    The control plane fills the empty data plane with promoted versions. Right after the objects are applied, the provisioner publishes that provisioning is applied. It then waits for the binding to be Ready, sets the gateway variables on the control plane, and publishes that provisioning is done on NATS, with the data plane URL, token URL and JWKS URL.

  8. The result feeds the gateway step

    The issuer and the JWKS address from the thunder step go into the agent-manager step. So the new gateway trusts the keys of the new identity data plane.

Which services do the work

ServiceWhereIts part
orchestratorcloud-cpRuns the recipe and calls the provisioner
identity-platform-provisionercloud-cpRuns steps 2 to 7
platform-apicloud-cpMints the URL prefix and carries the ResourceType, Resource and binding to OpenChoreo
api-identity-platformcloud-cpHolds the organisation’s defaults and the data plane’s registration
OpenChoreocloud-dp-oc-cp and the data planeRenders the binding into the workload
NATScloud-cpCarries the announcement that the work is done

No Argo Workflow and no Terraform run is part of these steps in the code read. Terraform only prepares the clusters and databases once.

Compared with on-prem

TopicOn-premChoreo Cloud
Who builds itYou run a script that installs a ThunderID chart for the environmentThe identity-platform-provisioner, called by the orchestrator
What it isThe upstream ThunderID chart, one for each environmentA widp-dp workload, rendered by OpenChoreo from a ResourceType
How Agent Manager learns where it isThe script registers the environment’s sign-in address and stores its system client in Agent ManagerThe thunder step passes the issuer and JWKS address on, and Agent Manager is told the address in the agent-manager step
Who fills itAgent Manager creates identities in it directlyThe control plane promotes versions into it

What is the same: each environment has its own ThunderID, and the gateway trusts the keys of that ThunderID.

Your turn

Open Try it. Play flow F35 and answer three questions. Which step ensures the organisation’s defaults before any OpenChoreo object is written? Which step turns the new data plane from empty to full? Which step carries the result on to the gateway?

Recap

  • The Identity Platform has a control plane on cloud-cp and a data plane half, widp-dp, for each organisation and environment.
  • The identity-platform-provisioner does the work in steps two to seven, called by the orchestrator in the thunder step of the recipe. The first and the last step are the orchestrator’s.
  • The data plane starts empty and the control plane fills it. The provisioner announces the result on NATS.
  • The issuer and JWKS address of the new data plane go to the gateway step.
  • On-prem, a script installs a ThunderID chart instead.

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)