ASPTC¶
An ASPTC, an actor-scoped provider transfer credential, is a short-lived credential your own cloud provider issues for one transfer, on behalf of the person who asked for it. Xratu uses ASPTCs to move artifacts in and out of your organization's storage, such as uploading a block's package to your artifact registry, without ever holding a credential to that storage.
Your data plane obtains each ASPTC. It runs in your environment, under its own workload identity, and asks your cloud provider for the credential. The control plane decides whether the transfer is allowed, and passes the credential on only in encrypted form.
What an ASPTC is bound to¶
Every ASPTC is tied to one transfer:
- The person. The actor who asked, with their organization and workspace.
- The session. The CLI session that asked, by its session key.
- The target. One registry repository and one artifact, by digest and size.
- The operation. The publication, or other transfer, the control plane authorized.
- The provider. Who issued it, for which cloud identity, with what scope and audit claims, and when it expires.
How one is issued¶
Publishing a block's package shows the whole path:
sequenceDiagram
participant CLI as xratu publish
participant CP as Control plane
participant DP as Your data plane
participant IAM as Your cloud provider
participant REG as Your artifact registry
CLI->>CP: publish request, with a session public key
Note over CP: authorizes the actor, binds the operation
DP->>CP: pulls the assignment
DP->>IAM: requests a credential with its workload identity
IAM-->>DP: provider-issued, short-lived credential
Note over DP: validates it, encrypts it to the CLI's session key
DP->>CP: encrypted credential, and descriptive metadata
CP->>CLI: encrypted credential
CLI->>REG: uploads the artifact
DP->>REG: verifies the upload
- The control plane authorizes first. Before any credential exists, it checks that the actor may perform the transfer, and binds the operation to the actor, workspace, target, digest, size and the CLI's session key.
- Your data plane asks your cloud provider. It pulls the authorized assignment and requests the credential through its own workload identity. It mints only for assignments the control plane authorized.
- The credential is validated and encrypted. It must be provider-issued, and carry the provider's provenance, scope and audit claims and every binding above. Your data plane then encrypts it to the CLI's session key.
- The CLI transfers directly. It decrypts the credential locally and talks to your storage itself, with no Xratu component in the data path.
- Your data plane verifies. It checks the transferred artifact against the bound digest and size before the operation completes.
What each cloud issues¶
| Cloud | How your data plane obtains it | What it receives |
|---|---|---|
| AWS | Its workload identity token, exchanged through STS AssumeRoleWithWebIdentity |
A scoped ECR authorization token |
| Google Cloud | Its workload identity, through IAM Credentials impersonation | An Artifact Registry access token |
| Azure | Its workload identity, exchanged for an Entra token | An ACR access token |
What the control plane keeps¶
The control plane keeps descriptive metadata about each credential: its provider, issuer, subject, scope and fingerprint, and when it was issued and consumed. The credential itself reaches the control plane only encrypted to the CLI's session key, stored apart from ordinary release records, and is handed only to that session. See Credential boundary.
Where ASPTCs are used¶
- Publishing a block, uploading its package to your artifact registry. See Artifact registry and blob references.
- Reading observability payloads from your object storage, one object at a time.
A data plane installed by Xratu's bootstrap uses ASPTC as its transfer mode,
transfer_credential_mode: asptc, with your cloud provider's endpoints. The
security properties it enforces are covered in
ASPTC in data plane trust.