The careful, boring engineering behind Rig

Rig Cloud runs on AWS in London (eu-west-2) across three availability zones, with disaster-recovery copies in Ireland (eu-west-1). An organisation policy blocks every other region. It uses six separate AWS accounts (management, security, backup, tooling, production, staging). Apps run on ECS Fargate in private subnets behind an Application Load Balancer with AWS WAF. Data lives in RDS PostgreSQL 18 (Multi-AZ for the core database), ElastiCache Valkey, EFS and S3, all encrypted with KMS and TLS. The database can be restored to any point in the last 35 days; daily backups are copied to a locked vault in Ireland, and monthly backups are kept a year. GuardDuty, Security Hub (AWS Foundational Best Practices and CIS benchmarks) and Inspector watch the accounts. Every change goes through CodePipeline, automated checks and a manual approval before production.

https://userig.app/infrastructure

How Rig is built

How Rig Cloud is built and protectedThe Rig production stack

Where Rig Cloud runs, how your data is protected and backed up, and how every change is checked before it reaches you. Switch to Geek mode for the technical detail.AWS, two regions, six accounts, all defined as infrastructure as code (CDK). Every detail on this page is taken from that code.

rig / cloud · prodlive

Rig Cloud, at a glance$ rig-infra describe --env prod

  • Runs in Londonregion eu-west-2 (London)
  • Spread over 3 separate data centresazs eu-west-2a · 2b · 2c
  • A second copy of your data in Irelanddr eu-west-1 (Ireland) · backup + restore
  • Locked to those two places onlyscp deny non-global actions outside 2 regions
  • Encrypted everywhere, at rest and in transitkms per-env CMKs · rotation on · TLS end to end
  • Backups nobody can delete early, us includedvault-lock 35–400 d · deletes denied to all principals
  • 2countries, London and IrelandAWS regions, SCP-locked
  • 3data centres in Londonavailability zones
  • 6separate locked roomsAWS accounts in one org
  • 35days we can rewind todays PITR + DR copies
  • 365days of monthly backupsdays monthly AWS Backup
  • 0open security findingsopen Aikido findings (137/140 fixed)
Where it lives

Runs in London. Backed up in Ireland.eu-west-2 primary, eu-west-1 DR

Dublin, Irelandeu-west-1Your backup countryDR: backups, S3 CRR, ECR, secrets
London, UKeu-west-2Where Rig runsprimary · 3 AZs

Rig Cloud runs in Amazon’s London data centres. Not one building: three separate ones, miles apart, each with its own power and network. If one has a bad day, the other two carry on.

Every night, and continuously for the database, copies of your data travel to a second country, Ireland, into a vault in a completely separate account.

And there’s a rule over the whole lot: nothing can be switched on anywhere else. Not by accident, not by us in a hurry. Your data lives in London and Ireland, full stop.

  • Primary eu-west-2, 3 AZs. VPC with public / app (NAT egress only) / isolated data subnet tiers.
  • Region lock org SCP denies every non-global action outside eu-west-2 and eu-west-1.
  • DR data eu-west-1: RDS automated-backup replication (35 d, DR CMK), AWS Backup copy to a locked vault in a dedicated backup account, S3 cross-region replication, ECR replication, Secrets Manager replicas.
Follow a request

What happens when you press a buttonRequest path, edge to vault

Five stops, each with its own job and its own lock.Single ingress via ALB (HTTPS) and a mesh NLB (Headscale join, DERP, STUN). Nothing else accepts internet traffic.

  1. 01

    Youclient

    The Mac app, your browser or your iPhonemacOS · web · iOS over HTTPS

  2. 02

    The front doorALB + AWS WAF

    Checks every visitor and turns away known bad onesACM TLS · IP reputation · common rules · bad inputs · 300 req/5 min on /api/auth

  3. 03

    Rig’s appsECS Fargate

    Running twice over, spread across the three data centresGraviton ARM64 · 11 services, 14 tasks · private subnets, no public IPs

  4. 04

    Your dataRDS · Valkey · EFS · S3

    Kept in two data centres at once, always encryptedPostgres 18.6 Multi-AZ · Valkey 8 Multi-AZ + failover · all KMS

  5. 05

    The vaultAWS Backup → eu-west-1

    Backups in Ireland that can’t be deleted early, even by usVault Lock 35–400 d · separate backup account · deny-delete policy

Six locked rooms

If one room is broken into, the others stay shutMulti-account org, blast radius by design

Rig isn’t one big Amazon account. It’s six, each with one job, so a mistake or a break-in in one can’t spread to the rest.AWS Organizations with separate management, security, backup, tooling and environment accounts. Guardrails apply org-wide as one SCP.

  • Production

    Where Rig actually runs. Nothing else lives here.VPC, ECS, RDS, Valkey, EFS, S3, ALB/NLB, WAF

  • Security

    Keeps the record of everything that happens, locked for a year.CloudTrail archive (Object Lock, compliance, 1 y) · GuardDuty / Security Hub / Inspector delegated admin

  • Backup

    The vault in Ireland. Only backups go in; nothing comes out early.eu-west-1 vaults · Vault Lock · deny-delete

  • Tooling

    Builds Rig and stores the finished parts, checked for flaws.CodePipeline · CodeBuild · ECR (immutable tags, Inspector scans, replicated to DR)

  • Management

    Sets the house rules and the spending limits. Runs nothing.Organizations · SCP guardrails · org trail · budgets + anomaly alerts

  • Staging

    A spare room for testing. Empty for now, to keep costs down.account kept; stacks torn down 24 Oct 2026

Layers, not a wall

Five layers between the internet and your dataDefence in depth

Each layer assumes the one outside it might fail. That’s the point.Each control is in code and enforced by tests or cdk-nag; findings without a written reason fail the synth.

01At the doorEdge

Every visit is encrypted, checked against lists of known attackers, and slowed down if it hammers the sign-in page.TLS (ACM, ELB recommended policy) · AWS WAF managed rule groups · rate-based rule on /api/auth · HTTP→HTTPS 301

02In the buildingNetwork

Rig’s apps sit in private rooms with no front door to the internet. The database sits deeper still, with no way out at all.Private app subnets (NAT egress only) · isolated data subnets · SG-to-SG rules only, no CIDRs · Route 53 Resolver DNS Firewall · VPC Flow Logs

03Who can do whatIdentity

Each part of Rig gets only the keys it needs. People sign in with two-factor. Some actions are simply forbidden for everyone.Per-service task roles · no long-lived keys · Identity Center + MFA · SCP: no root, no IAM users/access keys, can’t disable logging

04The data itselfData

Encrypted when it’s stored and when it moves, even between our own machines. Database passwords change every 30 days.KMS CMKs with rotation (RDS, PI, Valkey, EFS, S3, Secrets, Logs, SNS) · TLS forced on RDS, Valkey, EFS · 30-day secret rotation

05Someone always watchingDetection

Automatic guards look for anything odd, check us against industry security standards, and email us the moment something looks wrong.GuardDuty (S3, RDS login, ECS runtime) · Security Hub: AWS FSBP v1.0.0 + CIS v3.0.0 · Inspector on every image · Config 730 d

Your datacustomer data

And the things that matter most never reach us readable: your Continuity backups and secrets are locked on your Mac before they leave. More on that in Security.Client-side: Continuity backups are AES-256-GCM encrypted on the Mac before upload; vault values use a per-Mac key. We hold ciphertext only. Details on /security.

Mesh

Your Macs find each other, wherever they areHeadscale mesh · WireGuard · our DERP relay

Mesh joins your Macs into one private network. From the office you can reach the machine at home, wake it, and screen into it. Everything between them is encrypted, and nobody else can read it.Headscale is the control plane, WireGuard the data plane. Devices go direct wherever NAT allows, and fall back to our DERP relay in London where it doesn’t.

Address bookHeadscaleKnows each Mac’s address and public key. Never sees files.node map · public keys · mesh addresses
Your Mac, at homenode: home
Your Mac, at the officenode: office
Rig’s relay, LondonDERP rig-lonPasses on encrypted packets it can’t openTLS 443 · relayed bytes metered per Mac

The two Macs talk straight to each other. Fastest, and nothing in the middle.WireGuard over UDP · hole-punched with STUN (UDP 3478) · ChaCha20-Poly1305

Same encrypted traffic, one hop through London. Used only when a direct path is blocked.Relayed WireGuard packets · DERP region 900 · TLS 443 on the mesh NLB

  1. 01

    Join oncejoin

    Each Mac enrols with Rig and gets its own private address on your meshjoin.mesh.userig.app:40644 · TLS on 8443 · Headscale node registration

  2. 02

    Find each othercontrol

    Macs swap addresses and public keys through our coordination server. Never your files.Headscale node map · WireGuard public keys + mesh addresses · pushed to every node

  3. 03

    Connect directlyWireGuard

    When two Macs can reach each other, the traffic goes straight between themUDP tunnel · ChaCha20-Poly1305 · STUN on UDP 3478 for NAT hole-punching

  4. 04

    Relay when blockedDERP rig-lon

    A strict firewall in the way? The same encrypted traffic goes via Rig’s relay in Londonregion 900 · derp.userig.app · TLS 443 on the mesh NLB · relayed bytes metered per Mac

  5. 05

    Wake and screen inwake + Screen Sharing

    Wake a sleeping Mac through another on its network, then open Apple’s own screen sharing over the meshWake-on-LAN via a peer on the same LAN · VNC over the mesh address · no third-party desktop

The relay sees that encrypted packets flowed, and how many. It can’t see what’s inside them.DERP forwards ciphertext only: node public keys, packet sizes and timing are visible, payloads are not.

Teleport

Move a project to another Mac in one goFleet teleport, six reported steps

Teleport moves a project from one of your Macs to another, through Rig Cloud. The new Mac gets the code, the secrets and a running app. The old one hands over and stops.teleport_to_device runs check → fit → clone → secrets → make → handoff. Each step reports back to Rig Cloud as it runs.

Old MacsourceStops here at the endhandoff: stop + move Live Link
Rig Cloudfleet command queueCarries the job, step by stepteleport_to_device · progress reported per step
New MactargetDoes the workcheck → fit → clone → secrets → make
  1. 01Find it in your catalogcheckRig looks the project up and needs a Git address to clone it from.catalog lookup · git url required (or a linked local path)
  2. 02Make sure there’s roomfitThe target needs free disk space before anything is copied.free disk ≥ 2 GB and roughly 3× the repo size
  3. 03Copy the code overcloneA fresh clone on the new Mac, or the folder you already have there.git clone into ~/Developer/<repo> · or register an existing path
  4. 04Bring the secretssecretsYour encrypted vault comes down. If that fails, the run goes on without it.vault pull · on failure fills .env from .env.example and continues
  5. 05Make it workmakeInstall the packages, set up the database and start the app.makeProjectWork: install → database → start · recover on port conflict
  6. 06Hand it overhandoffThe old Mac stops the project and its Live Link moves to the new one.source stopped · Live Link moved · only when the handoff flag is set

Want to push your last commits first? Teleport can do that on the old Mac before it starts.push_first: pushes unpushed commits on the source before the target clones

Continuity

Your setup, backed up and locked before it leavesClient-side encrypted snapshots

Continuity saves a copy of how your Rig is set up: your projects, their database connection settings and your vault values. It is scrambled on your Mac first, so all we ever hold is ciphertext.Encrypted setup snapshot, daily or weekly. Never source code. We store ciphertext only, and the recovery key is never on our side.

  1. SnapshotsnapshotcollectContinuitySnapshot()collectContinuitySnapshot()
  2. ScramblescrambleAES-256-GCM, client-sideAES-256-GCM, client-side
  3. Uploaduploadciphertext only → Rig Cloudciphertext only → Rig Cloud
  4. RestorerestoreRIG-CONT-… or RIG-MASTER-… unwraps the keyRIG-CONT-… or RIG-MASTER-… unwraps the key
Your Maclocal · plaintext
projects: 4database settings: 4vault: 12 namessetup: prefs, lanes
Daily or weeklyschedule: daily | weekly
Rig Cloudeu-west-2 · ciphertext
9f2c 41aa e07b 0d3e7b10 c9d4 2a8f e61103de aa70 58c1 b94fe4a2 7f09 d1c3 6b88
We can’t read thisno key on our side
RIG-CONT-…RIG-MASTER-…Either key opens the backupshown once at enable · unwrap or master
New Macrestore target
projects: 4database settings: 4vault: 12 namessetup: prefs, lanes
  1. 01

    Take a snapshotsnapshot

    Daily or weekly, or whenever you ask. Your setup, never your source code.projects · database connection settings · vault values · no source trees, ever

  2. 02

    Lock it on your MacAES-256-GCM

    Encrypted with a key that stays on your machine, before anything is uploadedencrypted client-side · master key kept encrypted on this Mac · plaintext never leaves it

  3. 03

    Upload the scrambled copyRig Cloud

    Only ciphertext reaches Rig Cloud, in London, with the same Ireland copies as the resteu-west-2 primary · eu-west-1 copies under the platform backup rules

  4. 04

    Restore on a new MacRIG-CONT-… key

    Your recovery key opens it. Lose the key and nobody can open the backup, us included.shown once at enable · RIG-MASTER-… copy also restores · we never hold either

Keep the recovery key safe. It is shown once, with a second copy in another format that also restores. Lose both and that backup is gone for good, and we can’t recover it for you.No key escrow. Two copies are shown once at enable: RIG-CONT-… and RIG-MASTER-…. Losing both makes the snapshot unrecoverable by design.

Rewind

How far back we can goRetention, by tier

If something goes wrong, we can put things back the way they were. Here’s how far back each kind of copy reaches.A failed, aborted or expired backup or copy job pages us by email. Vault Lock becomes immutable 7 days after creation.

A week7 dSnapshots of the fast cacheValkey daily snapshots
Five weeks35 dRewind the database to any second, plus nightly copies in IrelandRDS PITR · DR replication · daily AWS Backup + DR copy
A year365 dA full backup on the 1st of every monthmonthly AWS Backup, cold after 30 d
The lock≤400 dHow long the Ireland vault can hold things, untouchableVault Lock max retention (min 35 d)
Shipping

How a change reaches youCommit to prod

No one pushes a change straight to the live system. Every change takes the same path, every time.CodePipeline + CodeBuild in the tooling account; 11 image pipelines, 3 secret-free PR check projects, a self-mutating infra pipeline.

  1. 1WrittenPR → betaA change is made and reviewedCodeConnections, no GitHub Actions
  2. 2CheckedCodeBuildRobots test it, including 27 safety rules for the infrastructuretypecheck · 27 guardrail tests · cdk synth + cdk-nag
  3. 3Built and scannedECRPackaged, stamped with an unchangeable label, checked for known flawstag = full commit SHA, immutable · Inspector enhanced scan
  4. 4A human says yesApproveProdNothing reaches you until a person approves itmanual approval in rig-infra (CDK Pipelines)
  5. 5Rolled out gentlyECS rollingNew versions replace old ones a bit at a time, and undo themselves if they stumblemin healthy 100% · circuit breaker + auto-rollback
Eyes on it

We hear about problems before you doObservability

  • Health checks every 15 secondsALB health checks · 15 s · 2 to pass

    An unwell app is taken out of rotation automatically.Unhealthy targets drained; per-service unhealthy-target alarms.

  • Alarms on everythingCloudWatch alarms → SNS → email

    Busy databases, struggling apps, unusual traffic, failed jobs: each one emails us, and emails again when it’s fixed.RDS/Valkey CPU+memory, ALB 5xx, per-service CPU/mem > 90%, NAT and relay egress, mesh join/relay health, cron failures. OK actions on.

  • Crash reports, kept in EuropeSentry (EU ingest)

    When something breaks, we see the error, not your personal details.api, web, mesh-control; scrubber strips cookies and auth before send.

  • Spending limitsBudgets + Cost Anomaly Detection

    If the bill does anything strange, we know that day. Free credits don’t hide it.Monthly + daily budgets, anomaly alerts from $20, credits excluded so spend is real.

Want the long version?Want the rest?

Security explains exactly what leaves your Mac. Partners thanks the companies whose help built all this./security covers client-side crypto, MCP approvals, Mesh and subprocessors. Found something? help@userig.tech, subject Security.