Create building block runner
POST/api/meshobjects/meshbuildingblockrunners
Create a new meshBuildingBlockRunner.
The spec.publicKey must be a valid RSA public key in PEM format (BEGIN PUBLIC KEY) or an X.509 certificate
(BEGIN CERTIFICATE). meshStack uses this public key to encrypt secrets that are sent to the runner at execution
time.
The spec.workloadIdentityFederation section is optional. When provided, it configures the runner to use
short-lived federated identity tokens for cloud provider authentication instead of long-lived credentials. At
least one of gcp, aws, or azure must be populated when workloadIdentityFederation is specified.
The subjectTemplate declares the subject the runner presents. Write {{ workspaceIdentifier }} and
{{ buildingBlockDefinitionUuid }} where the Building Block Definition a run belongs to should appear, and
nothing else inside the braces. A runner whose tokens cannot carry that information registers a fixed subject
instead, which is simply a template without placeholders. meshStack resolves the template per definition version
and publishes the result as status.versions[].workloadIdentityFederation on the meshBuildingBlockDefinition,
which is what you target in a cloud provider trust policy.
The metadata.uuid must not be provided on creation. meshStack assigns a UUID automatically and returns it in the
response.
Request
Responses
- 201
- 400
- 401
- 403
- 406
- 415
Building block runner created
The request is invalid. The message names the invalid part.
The request has no valid authentication.
The authenticated user or API key lacks the permission for this request.
The Accept header names no media type of this operation, or a version that is no longer supported.
The Content-Type header names no media type that this operation accepts.