Infra identity runtime¶
A node reads your registry, writes your bucket, and fetches from approved sources, and it holds no stored cloud credential to do any of it. Every credential it uses is issued by your cloud provider to a Kubernetes workload identity, for the moment it is needed. The infra identity runtime is where the node turns its infrastructure identity into those credentials: ambient workload-identity authentication for its own registry and bucket access, and short-lived, actor-scoped credentials it mints on someone's behalf. This page covers the identity document, the two workloads, what each operation returns, and the refusals.
From infrastructure identity to credential¶
flowchart TB
subgraph BC["DATA PLANE BOOTSTRAP CONTRACT"]
direction TB
II[("infra_identity<br/>provider, mode, provider_context,<br/>runtime and build workload refs")]
end
subgraph NODE["NODE, infra identity runtime"]
direction TB
AD{{"Provider adapter<br/>gcp, aws, azure"}}
AM["Auth materialization<br/>registry, bucket"]
MC["Minted contracts<br/>registry upload, bucket download"]
AD --> AM
AD --> MC
end
subgraph CLOUD["YOUR CLOUD PROVIDER"]
direction LR
WI["Workload identity<br/>federation"]
IAM["Token and signing<br/>services"]
end
II --> AD
AM <==> WI
MC <==> IAM
The node's own access uses the identity of the Kubernetes workload it runs as, so the credential is issued to that workload and held only for the request. A minted contract is issued for one actor, one target and a few minutes, and is handed to whoever the control plane authorised, encrypted where it leaves the node.
The infrastructure identity¶
The identity is declared in the data plane's bootstrap contract as
spec.infra_identity, validated when xratud starts:
| Field | Holds |
|---|---|
provider |
gcp, aws or azure |
mode |
gcp_workload_identity, aws_irsa or azure_workload_identity, matching the provider |
provider_context |
Provider-specific settings, such as the service account to impersonate and the token service endpoint |
runtime_workload_ref |
The workload that runs project runtimes: kind, namespace, name |
build_workload_ref |
The workload that builds and publishes |
transfer_credential_mode |
asptc |
Each operation names which workload it acts for, runtime or build: registry
access for builds and closures uses the build workload, and bucket access for
runtime evidence uses the runtime workload.
What it produces¶
| Operation | Returns | Used for |
|---|---|---|
| Registry auth materialization | system.infra_identity_auth_materialization.v1, ambient workload identity for the registry endpoint |
Blob fetch and upload, kernel image lookup |
| Bucket auth materialization | The same, for a bucket URI; or an explicit auth_ref when the target names one |
Writing evidence and payload bodies |
| Registry upload contract | system.infra_identity_upload_contract.v1 |
An actor's package upload |
| Bucket download contract | system.infra_identity_download_contract.v1 |
An actor's payload download |
An auth materialization records the provider, the mode, the workload and the target, and the request carries authorization headers the provider issued to that workload. See Tenant artifact runtime.
Minted contracts¶
A minted contract requires an actor, an organization and a workspace, and one
exact target. On Google Cloud, for example, the node exchanges its workload
token for a short-lived token of a separate service account named in
provider_context, which must differ from the workload's own; the contract
records:
auth_mode actor_delegated_temporary_credential
credential_kind gcp_actor_registry_upload
delegation_mode gcp_workload_identity_service_account_impersonation
cloud_subject the impersonated service account
provider_scope_kind artifact_registry_repository
provider_scope_ref the repository root
provider_audit_claims principal, impersonated account, publication operation
issued_for_actor_id, issued_for_organization_uuid, issued_for_workspace_uuid
method, upload_url, required_headers, expires_at
The lifetime is at least 60 seconds and 300 by default. The credential itself stays in the contract only until the actor-scoped exchange encrypts it; see Actor resource credential runtime and ASPTC.
Refusals¶
| Reason | Condition |
|---|---|
infra_identity_invalid |
The identity document fails validation |
workload_kind_invalid |
The workload is other than runtime or build |
target_invalid |
The registry endpoint and root, or the bucket URI, are missing or belong to another provider |
provider_unsupported |
The provider and mode pair is outside the three supported |
upload_contract_unsupported, download_contract_unsupported |
The provider cannot mint that contract |