dhnt kbAll pages

runbook · candidate

Provision a satellite on DigitalOcean (bashy infra provision digitalocean; not verified live)

Documented-but-unverified path to stand up a satellite droplet with bashy infra provision digitalocean, then harden it (firewall, reserved IP) — WHEN a satellite must run on DigitalOcean instead of AWS; run every step as a dry run first (keywords: satellite, provision, digitalocean, droplet, infra provision, infra harden, firewall, reserved ip, enrollment)

Verified 2026-11-07
2026-11-07: from bashy infra provision/harden/destroy --help and yoke pkg/fleet/infra_builtin.go (DO defaults r1/img are fixtures; token from DIGITALOCEAN_ACCESS_TOKEN) and pkg/provider/aws/firewall.go (rule set mirror); NOT run live · Bashy revision 536fc71bf21457eaa21ab4bb35cd574788d12f97

Status: NOT verified live (2026-11-07). Assembled from bashy infra --help and the yoke provider source; the AWS path is the verified one. Treat every step as a dry run first.

Variables

SATELLITE_ID=<new satellite name>
DO_TOKEN_SECRET=<vault name of the DO token for the team that holds satellites>
OWNER_TOKEN_SECRET=<vault name of an owner bearer with the satellites scope>
DO_REGION=<region slug, e.g. sfo3>
DO_IMAGE=<image slug, e.g. ubuntu-24-04-x64>

Steps

  1. Check and register the satellite name at the master exactly as on AWS (steps 1-2 of the AWS satellite page).

  2. Dry run, then live. Always pass --region and --image: the built-in DigitalOcean defaults (r1, img) are test-fixture values, not real slugs. bashy infra reads the token from DIGITALOCEAN_ACCESS_TOKEN, not from doctl’s saved context:

bashy secret exec "$DO_TOKEN_SECRET=DIGITALOCEAN_ACCESS_TOKEN" -- \
  bashy infra provision digitalocean --satellite "$SATELLITE_ID" \
  --region "$DO_REGION" --size s-1vcpu-1gb --image "$DO_IMAGE" --dry-run
bashy secret exec "$DO_TOKEN_SECRET=DIGITALOCEAN_ACCESS_TOKEN" "$OWNER_TOKEN_SECRET=BASHY_FLEET_TOKEN" -- \
  bashy infra provision digitalocean --satellite "$SATELLITE_ID" \
  --region "$DO_REGION" --size s-1vcpu-1gb --image "$DO_IMAGE"
  1. Harden after create. Unlike AWS, the DO adapter does not reserve an address first or apply a firewall during create; the first-boot script learns the address from DO metadata. Reconcile firewall membership and a reserved IP afterwards (preview with --dry-run):
DROPLET_ID=<id printed by the create>
bashy secret exec "$DO_TOKEN_SECRET=DIGITALOCEAN_ACCESS_TOKEN" -- \
  bashy infra harden --droplet "$DROPLET_ID" --firewall <satellite-firewall> --reserved-ip --dry-run

The satellite firewall should allow tcp 80, 443, 6443, 10250 and udp 8475-8476, with no internet-facing ssh (the AWS adapter applies the same rule set).

  1. Sign-in and pairing codes: as on AWS (owner console via the master’s Satellites page, Hosts, Generate invite code).

  2. Tear down with bashy infra destroy digitalocean --name "$DROPLET_ID" --yes, or DigitalOcean’s soft delete bashy infra trash / bashy infra restore. Never touch a droplet you did not create.

Unverified points