Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Organised by **persona** — who's reading — not by topic.
| --- | --- | --- |
| `developer/` | Individual using OpenVTC to take part in VTCs | Personal VTA, OpenVTC TUI, joining a community |
| `community-manager/` | VTC operator | Bootstrap a VTC, policy authoring, ACL/registry management (mostly future) |
| `sysop/` | VTI infra operator | Explore stream (throwaway Ubuntu VM, interactive TUIs); Deploy stream placeholder (hardened Kubernetes + Vault — to be documented) |
| `sysop/` | VTI infra operator | Explore stream (throwaway Ubuntu VM, interactive TUIs); Deploy stream (hardened multi-tenant Kubernetes VTA Farm with HashiCorp Vault — index page pointing at the `ic3software/vtafarm`, `vtafarm-api`, and `vtafarm-k8s` repos) |

Each folder has a `README.md` that is the persona's entry point — a one-page index of the journey, with links into the per-topic pages.

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You operate a VTC: bootstrap the community, set join and role policies, manage t

You run the VTI services so the other two can do their jobs. Provision the host, stand up VTA + Mediator + DID Hosting Daemon.

→ [`sysop/`](sysop/) · **explore** the VTI end-to-end; a hardened **deploy** stream is planned
→ [`sysop/`](sysop/) · **explore** the VTI end-to-end on a throwaway VM, or **deploy** a hardened VTA Farm on Kubernetes

---

Expand Down Expand Up @@ -55,6 +55,7 @@ graph TB
| **DID Host** | [affinidi/affinidi-webvh-service](https://github.com/affinidi/affinidi-webvh-service) | Hosts `did:webvh` DID documents publicly |
| **Mediator** | [affinidi/affinidi-tdk-rs · affinidi-messaging-mediator](https://github.com/affinidi/affinidi-tdk-rs/tree/main/crates/messaging/affinidi-messaging-mediator) | DIDComm v2 relay and message routing |
| **OpenVTC** | [OpenVTC/openvtc](https://github.com/OpenVTC/openvtc) | CLI/TUI for joining and participating in VTCs |
| **VTA Farm** | [ic3software/vtafarm-k8s](https://github.com/ic3software/vtafarm-k8s) · [vtafarm-api](https://github.com/ic3software/vtafarm-api) · [vtafarm](https://github.com/ic3software/vtafarm) | Hardened multi-tenant Kubernetes platform that hosts VTAs, with master seeds held in HashiCorp Vault |

---

Expand Down
2 changes: 1 addition & 1 deletion community-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Future tutorials will cover authoring `join.rego` policies, role-credential issu

## Prerequisites you'll need before you start

- A running [VTI deployment](../sysop/) — your community VTA needs a host, a mediator to talk on, and a DID host to publish DIDs. The sysop [Explore stream](../sysop/explore/) is the currently documented path; a hardened Kubernetes deployment is planned.
- A running [VTI deployment](../sysop/) — your community VTA needs a host, a mediator to talk on, and a DID host to publish DIDs. The sysop [Explore stream](../sysop/explore/) is the quickest way to get one on a throwaway VM; the [Deploy stream](../sysop/deploy/) covers a hardened VTA Farm on Kubernetes.
- A clear policy stance on who gets in. The current OpenVTC initial-days default is "two existing members vouch via VRCs" — see [03 — Joining a Community](../developer/03-joining-a-community.md) for what that looks like from the applicant's side. You can change the rule, but you should know what you're changing from.
2 changes: 1 addition & 1 deletion developer/01-personal-vta.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

There are two ways to bring up a Personal VTA. Both end in the same place: a running VTA holding your master keys, reachable from your PNM. The downstream tutorials ([OpenVTC TUI](02-openvtc-tui.md), [Joining a Community](03-joining-a-community.md)) work the same regardless of which path you take.

- **[Path A — VTA Farm (streamlined, recommended)](#path-a--vta-farm-streamlined)** — [VTA Farm](https://vtafarm.firstperson.dev) spins up your VTA in a managed Kubernetes cluster. You provision it from a browser with a passkey and connect your local PNM to it. No server, no public domain, no DID hosting, no mediator wiring on your side.
- **[Path A — VTA Farm (streamlined, recommended)](#path-a--vta-farm-streamlined)** — [VTA Farm](https://vtafarm.firstperson.dev) spins up your VTA in a managed Kubernetes cluster (the sysop [Deploy stream](../sysop/deploy/) describes how a farm is built). You provision it from a browser with a passkey and connect your local PNM to it. No server, no public domain, no DID hosting, no mediator wiring on your side.
- **[Path B — VTA the hard way (self-hosted)](#path-b--vta-the-hard-way-self-hosted)** — run the VTA on a host you control, publish your own `did:webvh` DID log, and wire it to a community mediator yourself. More moving parts, more to learn.

Pick whichever fits how much infrastructure you want to manage. If you're new to the stack, take Path A.
Expand Down
4 changes: 2 additions & 2 deletions sysop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ You install and manage the VTI infrastructure: VTA, VTC, DIDComm Mediator, and D
| Stream | When to pick it | Shape |
| --- | --- | --- |
| [Explore](explore/) | "I want to play with the stack and learn how the pieces fit together." | Single VM, single root SSH session, build tools installed (Rust, build deps; Node.js only for the optional UI source build). Interactive TUI wizards. `nohup` for processes. **Do not put real keys here.** |
| [Deploy](deploy/) | "I want a hardened production deployment." | Hardened Kubernetes deployment with HashiCorp Vault as the secret store. _(To be documented.)_ |
| [Deploy](deploy/) | "I want a hardened production deployment." | Run your own **VTA Farm**: a multi-tenant Kubernetes platform (RKE2 on Hetzner, built with OpenTofu) with HashiCorp Vault as the secret store. Documented in the `ic3software/vtafarm-k8s`, `vtafarm-api`, and `vtafarm` repos; the [Deploy page](deploy/) tells you where to start. |

Both streams use the **offline sealed-bundle bootstrap** flow over DIDComm — the same flow you'd use to set up a VTI where the VTA is air-gapped from Mediator and DID Host, even when they happen to share a host.
Both streams use the **offline sealed-bundle bootstrap** flow over DIDComm — the same flow you'd use to set up a VTI where the VTA is air-gapped from Mediator and DID Host, even when they happen to share a host. The Explore stream walks it by hand; the Deploy stream runs the same recipes as Kubernetes Jobs when it provisions a full stack for a user.
60 changes: 57 additions & 3 deletions sysop/deploy/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,61 @@
# Deploy Stream

Stand up the VTI stack as a hardened production deployment on **Kubernetes**: TLS terminated at the ingress via cert-manager and Let's Encrypt, every secret in the cluster held in **HashiCorp Vault** (for full VTI stacks and standalone VTAs alike), and provisioning driven from TOML recipes using the offline sealed-bundle bootstrap over DIDComm.
Run the VTI stack as a hardened, multi-tenant production deployment on **Kubernetes**. This is the **VTA Farm**: the same platform that hosts the Personal VTAs developers get from [vtafarm.firstperson.dev](https://vtafarm.firstperson.dev) in [Path A of the developer guide](../../developer/01-personal-vta.md#path-a--vta-farm-streamlined). This stream is for running a farm of your own.

> _To be documented._
Where the [Explore stream](../explore/) puts everything on one root-owned VM and drives each service by hand, a farm gives every user their own Kubernetes namespace, keeps every VTA master seed encrypted in **HashiCorp Vault**, terminates TLS at the ingress with a cert-manager wildcard certificate, and provisions VTAs from a browser with a passkey.

Until this stream is written, use the [Explore stream](../explore/) to stand up and learn the stack — but do not put real keys or production data on an explore box.
## Same bootstrap flow, automated

A farm provisions each user's stack with the same **offline sealed-bundle bootstrap** over DIDComm that the [Explore walkthrough](../explore/02-walkthrough.md) steps through by hand. The API renders the same TOML recipes and runs them as one-off Kubernetes Jobs:

| Walkthrough step | What the farm runs |
| --- | --- |
| Step 1 — `vta setup` | A `vta setup --from` Job on the VTA's volume |
| Step 2 — `pnm setup`, then `vta import-did` | You still run `pnm setup` on your own machine and hand the admin DID to the farm. The farm runs the `vta import-did --role admin` Job for you, after the mediator and DID host steps and just before the VTA starts |
| Step 3 — mediator phase 1, `vta contexts reprovision`, mediator phase 2 | Three Jobs. The reprovision Job mounts both the VTA and mediator volumes so it can read `bootstrap-request.json` and write `bundle.armor`, exactly as the two home directories are used on the single host |
| Step 4 — DID host phase 1, `vta bootstrap provision-integration`, DID host phase 2, admin invite, `did-mgmt servers add` | The same three-Job handoff, then Jobs for the admin invite, for loading the VTA and mediator DID logs into the daemon, and for registering the daemon with the VTA |
| Step 5 — `vtc setup`, `contexts create` | Three Jobs: generate the VTC's setup key, grant it on the VTA, then `vtc setup --from` once VTA, mediator, and DID host are all reachable |
| `nohup <binary> &` | A Deployment per component |

The difference is who holds the secrets: every component stores them in the farm Vault via Kubernetes auth, so no secret sits in plaintext on a volume. The full mapping is in [`docs/full-stack-setup-design.md`](https://github.com/ic3software/vtafarm-api/blob/main/docs/full-stack-setup-design.md) in `vtafarm-api`.

This applies to **Full Stack** sessions, which provision VTA, mediator, DID host, and VTC per user. A **VTA Only** session, which is what a developer's Personal VTA is, points its VTA at the farm's shared mediator and DID host instead, so no bundle exchange is needed.

## The three repos

The deploy stream lives in three repositories under [ic3software](https://github.com/ic3software). Read them in this order.

| Repo | What it is | Start with |
| --- | --- | --- |
| [vtafarm-k8s](https://github.com/ic3software/vtafarm-k8s) | OpenTofu stacks that build the clusters and platform layer on Hetzner Cloud, plus the operator runbooks | The README's eight deploy steps, then [`docs/vault.md`](https://github.com/ic3software/vtafarm-k8s/blob/main/docs/vault.md) |
| [vtafarm-api](https://github.com/ic3software/vtafarm-api) | Go REST API that creates VTA setup sessions, isolates users into per-user namespaces, provisions their Vault policies, and drives the sealed-bundle bootstrap as Kubernetes Jobs | The README's **Production Deployment** section (TLS, Vault, secrets, Helm, migrations), then [`docs/vta-setup-design.md`](https://github.com/ic3software/vtafarm-api/blob/main/docs/vta-setup-design.md) and [`docs/full-stack-setup-design.md`](https://github.com/ic3software/vtafarm-api/blob/main/docs/full-stack-setup-design.md) |
| [vtafarm](https://github.com/ic3software/vtafarm) | React frontend: user portal, VTA creation, admin panel | The README, then [`docs/release.md`](https://github.com/ic3software/vtafarm/blob/main/docs/release.md) for publishing an image |

## What gets built

`vtafarm-k8s` builds five layers, each as its own OpenTofu stack, in this order:

1. A three-node high-availability **k3s** management cluster.
2. **Rancher**, running on that cluster.
3. An **RKE2** cluster that Rancher creates for the farm.
4. The platform inside that cluster: **cert-manager**, **Longhorn**, and **HashiCorp Vault** (Raft, HA, auto-unsealed by a separate transit Vault).
5. The `vtafarm` frontend and `vtafarm-api` backend, deployed via Helm.

Layers 1 and 2 are built once. Layers 3 to 5 make up one farm, so they repeat for every farm you run.

## Before you start

The [vtafarm-k8s prerequisites](https://github.com/ic3software/vtafarm-k8s#prerequisites) are the authoritative list. In short, you need:

- A Hetzner Cloud project, API token, private Object Storage bucket for OpenTofu state and etcd snapshots, and S3 credentials.
- A DNS zone you control. The farm domain must be on **Cloudflare**, because the API creates per-tenant DNS records there and Cloudflare is the only provider it supports today.
- OpenTofu 1.12+, `kubectl`, `helm`, and `jq` on your workstation.
- A `did:key` keypair for the API's DID hosting integration, generated with `make gen-keypair` in `vtafarm-api` and registered with the DID hosting service as a **Service** role.

## Day-two operations

The `vtafarm-k8s` [`docs/`](https://github.com/ic3software/vtafarm-k8s/tree/main/docs) folder holds the runbooks: operations, backup and restore, upgrades (cluster and Vault), cluster migration, teardown, troubleshooting, cost, and the design decisions behind the layout.

## Still learning the stack?

Use the [Explore stream](../explore/) first. It walks through every service's wizard by hand, which is the fastest way to understand what a farm automates. Just don't put real keys or production data on an explore box.
2 changes: 1 addition & 1 deletion sysop/explore/01-server-setup.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Explore 01: Server Setup

Provision an Ubuntu 26.04 host for the explore stream. Single DID Hosting topology; everything runs as root. For a hardened production deployment, see the [Deploy stream](../deploy/) (hardened Kubernetes — not yet documented).
Provision an Ubuntu 26.04 host for the explore stream. Single DID Hosting topology; everything runs as root. For a hardened production deployment, see the [Deploy stream](../deploy/) (a VTA Farm on hardened Kubernetes).

## Service configuration

Expand Down
2 changes: 1 addition & 1 deletion sysop/explore/02-walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Stand up the full VTI stack — VTA, Mediator, DID Hosting Daemon and VTC — by stepping through each tool's interactive wizard. Uses the offline sealed-bundle bootstrap flow over DIDComm.

> **⚠️ Explore stream — do not use for real keys.**
> The box runs everything as root in `/root/<svc>/` with no isolation between services. For a hardened production deployment, see the [Deploy stream](../deploy/) (hardened Kubernetes — not yet documented).
> The box runs everything as root in `/root/<svc>/` with no isolation between services. For a hardened production deployment, see the [Deploy stream](../deploy/) (a VTA Farm on hardened Kubernetes).

**Tested on:** Ubuntu Server 26.04 ([Explore 01: Server Setup](01-server-setup.md))

Expand Down
2 changes: 1 addition & 1 deletion sysop/explore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Stand up the VTI stack on a throwaway VM, as root, so you can play with it and learn how the pieces fit together. Everything installed, single DID Hosting topology, interactive wizards, processes launched with `nohup`.

> **⚠️ Do not use this stream for real keys, real users, or production data.**
> The box runs everything as root, leaves SSH wide open to the operator, and has no per-service isolation. For a hardened production deployment, see the [Deploy stream](../deploy/) (hardened Kubernetes — not yet documented).
> The box runs everything as root, leaves SSH wide open to the operator, and has no per-service isolation. For a hardened production deployment, see the [Deploy stream](../deploy/) (a VTA Farm on hardened Kubernetes).

## Path

Expand Down