Component ยท Control side
Workload publisher identity
BOTH Concept Control plane
What it is
The workload publisher is a service identity used by the last step of a build. It is the client openchoreo-workload-publisher-client, and it holds the role amp-workload-deployer. It lets a finished build register its result with OpenChoreo.
Why it exists
A build pod should be able to publish exactly one kind of result and nothing more. A narrow identity limits the damage if a build is compromised.
How it works
- The generate-workload step reads the client secret from the workload-publisher-oauth secret.
- It requests a client_credentials token from the platform ThunderID.
- With that token it creates the Workload, generates a release and creates or updates the first environment binding.
- The role (added to OpenChoreo's own built-in workload publisher role) allows creating component releases, viewing, creating or updating release bindings, and viewing projects and deployment pipelines.
Identity and access
A client_credentials token for a machine client. OpenChoreo matches it by client_id to the role amp-workload-deployer.
Key facts
- Client
- openchoreo-workload-publisher-client
- Role
- amp-workload-deployer
- Side
- Workflow plane identity
- Namespace
- openchoreo-workflow-plane
Talks to (1)
- calls openchoreo-api Creates release and first-env bindingREST generate-release, releasebindings (scheme comes from the apiServer url value, default http)
Used by (1)
- provides sign-in to AM build ClusterWorkflows generate-workload step tokenclient_credentials