ON-PREM CHOREO CLOUD BOTH

What it is

Every Choreo Cloud organization gets one OpenChoreo namespace named wc-<8 hex>-<8 hex>. The name is worked out from the organization's UUID, which appears as ouId in the user's token. The same organization always gets the same namespace name.

It is like deriving a locker number from a person's ID card using a fixed formula. Anyone with the formula and the card can find the locker, and nobody gets a different one.

Why it exists

Services such as platform-api-service and cloud-obs-proxy must find an organization's resources without a lookup table. A fixed rule lets each of them compute the name from the token, so a caller can only reach its own organization.

How it works

  • Take the organization UUID and remove the dashes. Keep the first 8 characters, in lower case.
  • Take the sha256 hash of the full UUID string and keep the first 8 hex characters.
  • Join them as wc-<first 8 of the UUID>-<first 8 of the hash>.
  • platform-api-service uses this name to route a request to the customer OpenChoreo, and cloud-obs-proxy uses it to pin log and metric queries to the caller.
  • The namespace lives on cloud-dp-oc-cp, the OpenChoreo control plane for customers.

Key facts

Format
wc-<8 hex of the UUID>-<8 hex of its sha256>
Input
the ouId claim in the token
Lives on
cloud-dp-oc-cp
Code
GenerateNamespaceName in backend/core/internal/ou/util/namespace.go
Deterministic
yes, same UUID gives the same name
Namespace
cloud-dp-oc-cp

Talks to (1)

Inside and around

Contains: cloud-dp-oc-cp (customer control plane)