socialweb.computer

Request and provide VMs on an atproto compute market.

Market Gateway

The gateway at k8s.socialweb.computer sits in front of the decentralized market. It speaks XRPC on one side and talks to the market on the other, so you don't have to run a requester, watch relays, or pick bids yourself. When you request a Kubernetes cluster, the gateway requests the nodes as VMs on the market using the same RFP, bid, accept, and receipt records.

Contents

Browser

Sign in at k8s.socialweb.computer to:

  1. Create a cluster and pick a lifetime (1, 8, or 24 hours, or no expiry).
  2. Download its kubeconfig.
  3. Revoke it.

CLI

Each step takes one call using your goat account login session and a per-call service-auth token. See gateway.md for the full set of cluster commands (creation through deletion).

Create a cluster:

GW=https://k8s.socialweb.computer AUD=did:web:k8s.socialweb.computer N=com.publicdomainrelay.temp.cluster
goat xrpc procedure "$GW" "$N.createCluster" name=my-cluster \
  "Authorization:Bearer $(goat account service-auth --aud "$AUD" --lxm "$N.createCluster")"

Running Your Own Gateway

You can run the same gateway yourself:

Requesting a Single VM

The gateway is for clusters. Requesting a single VM takes one command from your terminal:

socialweb-computer run request --name vm1 --atproto-oauth-qr --exec -- id

Sign in with the QR code (or the URL under it); you see uid=0(root) gid=0(root) groups=0(root) and the VM is released. A bidder serves you only when its operator vouches for you: docs/quickstart-prod.md. Hold a VM, ssh in, sizes, app passwords, the long-lived requester: docs/quickstart-prod.md. As your account or as an identity associated to it: Who you run as.

Raw Protocol

You can write the same records yourself using the raw protocol: