socialweb.computer

Request and provide VMs on an atproto compute market.

Workload Identity

A provisioned workload never holds a long-lived secret, and providers don't bake static API keys or passwords into a VM at boot. Every bid attaches a com.publicdomainrelay.temp.compute.config.wif.simple record pointing to an OIDC issuer. The workload proves its identity to that issuer and gets a short-lived token scoped to what it needs.

Contents

WIF Record

The record has these fields:

FieldMeaning
issuer_uriThe bidder's OIDC identity issuer that the workload authenticates against.
to_issueExchange identifier (openbao-identity-oidc). The token audience is set at issue time.
actxTeam or context identifier (the bidder's DID key). Used as the {actx} template variable in subject.
subjectTemplate for the identity asserted by the token. Variables: {actx}, {did-plc-key} (the requester's), and {role} (the VM's).
token_pathPath on the guest where login writes its token.
url_pathPath on the guest where the issuer base URL is written.
url_routeToken endpoint path on the issuer (/v1/identity/oidc/token).
accept_pathPath on the guest where cloud-init writes the signed market.accept bundle (accept.json).

Example record:

$type: com.publicdomainrelay.temp.compute.config.wif.simple
accept_path: /root/secrets/publicdomainrelay.com/market/accept.json
issuer_uri: <the bidder's identity issuer URL>
to_issue: openbao-identity-oidc
actx: <the bidder's DID key>
token_path: /root/secrets/openbao/token
url_path: /root/secrets/digitalocean.com/serviceaccount/base_url
url_route: /v1/identity/oidc/token
subject: actx:{actx}:plc:{did-plc-key}:role:{role}
createdAt: "2026-11-15T06:10:53Z"

This is separate from the policy. Policy decides whether a workload gets scheduled at all, and WIF decides what it can authenticate as once it's running.

Fetching Secrets

run request --secrets <file> (a JSON array of {path, value}) stores your secrets in the requester's own vault instead of in the public compute.vm cloud-init user data. The VM fetches them at boot using its workload identity token.

The bidder runs an OpenBao identity issuer. The guest logs in by signing with its SSH host key, which binds that key to the VM, and gets a short-lived token whose sub follows the subject template above. Before the VM boots, the requester writes a com.fedproxy.rbac role record in its own repo naming the issuer, audience, and subject it will accept, and the bidder lets the guest mint a token for that audience.

The guest then sends that token to the requester's getSecrets route. The requester verifies the token and returns the secret bundle. No password is baked into the image, and nothing sensitive gets written to a public record.

Since each bid includes its WIF configuration, the requester knows which issuer and subject the VM will have before accepting. If a contract fails, the requester can accept another provider's bid and run the same flow. For background, see droplet-oidc-poc.

Exchange Flow

From bid to secret fetch, the exchange runs in five steps:

  1. The provider attaches a wif.simple config to its bid with its issuer, guest paths, exchange identifier, and subject template.
  2. Before the VM boots, the requester records what that issuer can authorize in its com.fedproxy.rbac role record.
  3. The provider puts the accept bundle in the guest's cloud-init user data so cloud-init writes it to accept_path on first boot.
  4. The guest signs a login with its SSH host key at the bidder's guest control plane and gets its token at token_path.
  5. The guest requests a token from the issuer for the requester's audience and calls the requester's getSecrets route with it. The token expires, and nothing longer-lived is issued.

For the full sequence, including the sealed fallback for a requester without an ingress, see guest-events.md.

See the record reference for how a bid, RFP, and receipt fit together: