Multi-Cloud Runner Bootstrap
Run Ferro on AWS EC2, Google Cloud (GCP Compute Engine), DigitalOcean, Vultr, OVHcloud, Azure, or on-prem bare metal today with zero inbound firewall ports.
Zero inbound ports in Relay Mode — no cloud API keys required
ferro-agent is a single static Linux binary (x86_64 and aarch64) that connects outbound over HTTPS (443) to your Ferro Control Plane. In default Relay Mode, you do not need to open any inbound Security Group or VPC firewall ports—and you never need to store AWS, GCP, DigitalOcean, Vultr, or OVHcloud API keys in Ferro.
1. Universal BYO-Metal Agent vs. Native API Provisioning
Ferro supports two ways to attach compute to your fleet. Use the Universal BYO-Metal Agent on any cloud or bare-metal Linux machine today, or connect Hetzner Cloud in Settings → Cloud Providers Vault for native one-click provisioning and ephemeral autoscaling pools.
| Capability | Universal BYO-Metal Agent (Any Cloud Today) | Native API Provisioning & Autoscaling |
|---|---|---|
| Supported infrastructure | Any Linux host (x86_64 or ARM64): AWS EC2, GCP Compute Engine, Azure VMs, DigitalOcean, Vultr, OVHcloud, or on-prem bare metal. | Hetzner Cloud today. AWS EC2 (cross-account IAM Role + Spot), DigitalOcean, Vultr, and OVHcloud are on the roadmap. |
| Cloud credentials in Ferro | None. Only a scoped frn_... node token lives on the host under /etc/ferro/node-token (chmod 600). | AES-256-GCM vaulted provider credential (Hetzner API token today; short-lived cross-account IAM Role planned for AWS). |
| Networking & inbound ports | Outbound HTTPS (443) Relay Mode by default — zero inbound firewall or Security Group ports required. Optional pinned-TLS Direct Mode over private LAN/VPN. | Default-closed Hetzner firewall + outbound HTTPS Relay Mode, with opt-in SSH CIDR allowlists and Direct Offload. |
| Provisioning & autoscaling | Self-managed via EC2 Auto Scaling Groups, GCP Managed Instance Groups, Terraform, or long-lived warm bare-metal servers. | One-click VPS provisioning and ephemeral autoscaling pools with automated idle scale-down directly from Dashboard → Fleet Nodes. |
2. Register a node & mint a token
Before launching a VM on AWS, GCP, DigitalOcean, Vultr, or OVHcloud, open Dashboard → Fleet Nodes → Add Linux server to register the runner and mint a one-time frn_... node token. Ferro stores only the SHA-256 hash of that token and also generates a ready-to-paste bash bootstrap script for your node.
Private release mirror note: Replace https://ferro.example.com and frn_YOUR_NODE_TOKEN in the snippets below. If your release artifacts are hosted on a private mirror/CDN, point FERRO_AGENT_DOWNLOAD_BASE_URL at your mirror.
3. AWS EC2 (Ubuntu 24.04 User-Data)
Works on both x86_64 (for example c7i / m7i) and ARM64 AWS Graviton (c7g / c8g) On-Demand or Spot instances. Attach a Security Group with zero inbound rules and standard outbound HTTPS (443) access—or place the runner in a private subnet behind a NAT Gateway.
The User-Data script below blocks the EC2 instance metadata service (169.254.169.254) for non-root UIDs via nftables so CI jobs running under ferro-job cannot read User-Data or instance metadata credentials.
#!/usr/bin/env bashset -euo pipefail# Ferro BYO-Metal Agent — AWS EC2 Ubuntu 24.04 User-Data (Relay Mode: 0 inbound ports)export FERRO_CONTROL_PLANE="https://ferro.example.com"export FERRO_NODE_TOKEN="frn_YOUR_NODE_TOKEN"export FERRO_LABELS="linux,aws,ec2"export FERRO_MAX_CONCURRENCY="4"export DEBIAN_FRONTEND=noninteractiveapt-get update -yapt-get install -y --no-install-recommends curl ca-certificates git nftables polkitd# Block AWS EC2 IMDS (169.254.169.254) for non-root users so CI jobs cannot read user-data or IAM credsnft add table inet ferro_metadata_guardnft 'add chain inet ferro_metadata_guard output { type filter hook output priority 0; policy accept; }'nft flush chain inet ferro_metadata_guard outputnft add rule inet ferro_metadata_guard output ip daddr 169.254.169.254 meta skuid != 0 reject# Run your Control Plane's hosted verified installer (downloads & verifies SHA256SUMS + Cosign,# configures /etc/ferro/node-token via systemd LoadCredential, Polkit sandbox rules, and ferro-agent.service)curl -fsSL --proto '=https' --tlsv1.2 "${FERRO_CONTROL_PLANE}/install-agent.sh" | bash# Launch an Ubuntu 24.04 runner with zero inbound Security Group ports (Relay Mode)# Tip: You can also save the script from Dashboard → Fleet Nodes → Add Linux server as ferro-ec2-userdata.shaws ec2 run-instances \ --image-id resolve:ssm:/aws/service/canonical/ubuntu/server/24.04/stable/current/amd64/hvm/ebs-gp3/ami-id \ --instance-type c7i.2xlarge \ --security-group-ids sg-0123456789abcdef0 \ --metadata-options "HttpTokens=required,HttpEndpoint=enabled" \ --user-data file://ferro-ec2-userdata.sh \ --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=ferro-runner-ec2-01}]'4. Google Cloud (GCP Compute Engine)
Bootstrap Ubuntu 24.04 runners on GCP Compute Engine by passing a startup script via --metadata=startup-script=... (or --metadata-from-file=startup-script=... using the generated script from Fleet Nodes). Pass --no-service-account --no-scopes for least privilege and rely on outbound HTTPS Relay Mode with zero VPC ingress rules.
# Create an Ubuntu 24.04 runner on Google Cloud Compute Engine (zero inbound VPC firewall rules required)gcloud compute instances create ferro-runner-gcp-01 \ --zone=us-central1-a \ --machine-type=c3-standard-8 \ --image-family=ubuntu-2404-lts-amd64 \ --image-project=ubuntu-os-cloud \ --boot-disk-size=100GB \ --boot-disk-type=pd-ssd \ --no-service-account \ --no-scopes \ --metadata=startup-script='#!/usr/bin/env bashset -euo pipefailexport FERRO_CONTROL_PLANE="https://ferro.example.com"export FERRO_NODE_TOKEN="frn_YOUR_NODE_TOKEN"export FERRO_LABELS="linux,gcp"export DEBIAN_FRONTEND=noninteractiveapt-get update -y && apt-get install -y --no-install-recommends curl ca-certificates git nftables polkitd# Block GCP metadata server (169.254.169.254) for non-root UIDs (ferro / ferro-job)nft add table inet ferro_metadata_guardnft "add chain inet ferro_metadata_guard output { type filter hook output priority 0; policy accept; }"nft flush chain inet ferro_metadata_guard outputnft add rule inet ferro_metadata_guard output ip daddr 169.254.169.254 meta skuid != 0 reject# Install ferro-agent via your Control Plane hosted verified installer (LoadCredential + Polkit + OS sandbox)curl -fsSL --proto "=https" --tlsv1.2 "${FERRO_CONTROL_PLANE}/install-agent.sh" | bash'# Or pass the generated bootstrap script directly from Dashboard → Fleet Nodes → Add Linux server:# gcloud compute instances create ferro-runner-gcp-01 \# --zone=us-central1-a --machine-type=c3-standard-8 \# --image-family=ubuntu-2404-lts-amd64 --image-project=ubuntu-os-cloud \# --metadata-from-file=startup-script=./ferro-bootstrap.sh5. DigitalOcean, Vultr & OVHcloud (cloud-init YAML)
DigitalOcean Droplets, Vultr Cloud Compute / Bare Metal, and OVHcloud Public Cloud instances all support standard #cloud-config user-data on Ubuntu 24.04. Paste the YAML below when creating your server—no inbound firewall rules are required.
#cloud-config# Ferro BYO-Metal Runner — Ubuntu 24.04 cloud-init (DigitalOcean, Vultr, OVHcloud, Hetzner Cloud)package_update: truepackages: - curl - ca-certificates - git - nftables - polkitdruncmd: - | set -euo pipefail # Block cloud metadata service (169.254.169.254) for non-root UIDs nft add table inet ferro_metadata_guard nft 'add chain inet ferro_metadata_guard output { type filter hook output priority 0; policy accept; }' nft flush chain inet ferro_metadata_guard output nft add rule inet ferro_metadata_guard output ip daddr 169.254.169.254 meta skuid != 0 reject # Run your Control Plane's hosted verified installer (SHA-256 + Cosign, LoadCredential, Polkit, OS sandbox) export FERRO_CONTROL_PLANE="https://ferro.example.com" export FERRO_NODE_TOKEN="frn_YOUR_NODE_TOKEN" export FERRO_LABELS="linux,cloud-init" export FERRO_MAX_CONCURRENCY="4" curl -fsSL --proto '=https' --tlsv1.2 "${FERRO_CONTROL_PLANE}/install-agent.sh" | bash# DigitalOcean (doctl)doctl compute droplet create ferro-runner-do-01 \ --region nyc3 \ --size s-4vcpu-8gb-amd \ --image ubuntu-24-04-x64 \ --user-data-file ferro-cloud-init.yaml# Vultr / OVHcloud# Paste ferro-cloud-init.yaml into the "User Data" / "Post-installation script" field# when launching an Ubuntu 24.04 instance (or pass --user-data in OpenStack / Terraform).6. Direct Mode (optional) & Health Verification
If your workstation shares a private VPC, WireGuard, or Tailscale network with your cloud runners and you want sub-second direct CLI delta sync without relaying blobs through the Control Plane, set FERRO_BIND_ADDR=<private-ip>:7420 and FERRO_DIRECT_URL=https://<private-ip>:7420 in /etc/ferro/agent.env. The agent auto-generates a self-signed TLS certificate and pins its SHA-256 fingerprint automatically.
sudo systemctl status ferro-agentsudo journalctl -u ferro-agent -n 50 --no-pagercurl -kfsS https://127.0.0.1:7420/healthNeed systemd hardening details or sandbox isolation notes? See Agent Install & systemd and Security Model.