diff --git a/CLAUDE.md b/CLAUDE.md index e85128e..bc4d0bd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,7 +8,7 @@ A documentation-only repository — no build system, no tests, no application co ## Layout -Organised by **persona** — who's reading — not by topic. +Organized by **persona** — who's reading — not by topic. | Folder | Reader | Contents | | --- | --- | --- | diff --git a/README.md b/README.md index 284009c..ff15a0a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Setup guides for the **Verifiable Trust Infrastructure** stack — VTA, DID Host, and the DIDComm Mediator — and for the things people do on top of it. -The repo is organised by **who you are**, not by which service you're touching. Pick your role and follow the path. +The repo is organized by **who you are**, not by which service you're touching. Pick your role and follow the path. --- @@ -34,10 +34,13 @@ Each guide states the builds it was verified with in a **Verified with** table n Until then they are out of sync: -- The [explore stream](sysop/explore/) was verified on the **2026-10-17 nightly**. Nightly builds are only kept for a week or two, so those exact builds will soon be gone. -- The [developer guides](developer/) were verified on builds that **predate** the VTI-Eucalyptus release, and are out of date in places. +- [Explore 01 and 02](sysop/explore/) were verified on the first VTI-Fig release candidate, **VTI-Fig-RC-0**. +- [Explore 03](sysop/explore/03-verifiable-git-infrastructure.md) was verified on the **2026-10-22 nightly**. Nightly builds are only kept for a week or two, so those exact builds are gone. +- The [developer guides](developer/) were verified on **VTI-Fig-RC-0** too, except for the VTA Farm path of 01, which its page marks as not yet re-verified. -Both will be re-verified on VTI-Fig, which is expected shortly. +Every run is automated: the terminal tools are driven through tmux on a fresh Ubuntu server, and the browser and passkey screens through headless Chromium with a virtual passkey. Nothing is tested on macOS, Windows/WSL, or with a hardware security key unless a page says so. + +All of them will be re-verified on the final VTI-Fig release. --- diff --git a/developer/01-personal-vta.md b/developer/01-personal-vta.md index c05e2f6..6675bf4 100644 --- a/developer/01-personal-vta.md +++ b/developer/01-personal-vta.md @@ -1,15 +1,15 @@ # Personal VTA **Description:** Stand up a Personal VTA — the per-developer trust anchor that mints and manages your own DIDs and keys. -**Tested on:** [Ubuntu Server](../sysop/explore/01-server-setup.md) (Path B only — Path A runs in VTA Farm's managed cluster) +**Tested on:** [Ubuntu Server](../sysop/explore/01-server-setup.md) 26.04 (Path B only — Path A runs in VTA Farm's managed cluster) **Verified with:** -| VTA Version | Mediator Version | DID Hosting Daemon Version | -| --- | --- | --- | -| 0.39.0 | 0.28.36 | 0.8.3 | +| Release | VTA | PNM | Mediator | DID Hosting | +| --- | --- | --- | --- | --- | +| VTI-Fig-RC-0 | 0.87.2 | 0.66.2 | 0.56.0 | 0.12.0 | -> **⚠️ Out of date until VTI-Fig.** Verified on the builds above, which predate the VTI-Eucalyptus release. Where a prompt, flag or output differs, trust the tool. This page will be re-verified on VTI-Fig; see [Versions](../README.md#versions). +**Path B was verified by an automated run** on a fresh Ubuntu 26.04 server: every wizard was driven through tmux and its screens compared with this page. Not tested on macOS, Windows/WSL, or with a hardware security key. **Path A has not been re-verified on VTI-Fig yet**: its PNM step below matches the RC-0 `pnm`, but its VTA Farm screens past the sign-up form are from an earlier release. This page will be re-verified on the final VTI-Fig release; see [Versions](../README.md#versions). ## Two paths @@ -25,7 +25,7 @@ Pick whichever fits how much infrastructure you want to manage. If you're new to ### Prerequisites - A computer with **passkey** support. -- **PNM installed locally.** PNM is a CLI tool and can run on your computer — it does not need its own server. [Download the PNM](https://firstperson.dev/#downloads). PNM changes quickly and some of its changes break older VTAs, so take it from the same release as your VTA. +- **PNM installed locally.** PNM is a CLI tool and can run on your computer — it does not need its own server. Download it for [Linux (x86-64)](https://download.firstperson.dev/pnm/latest/pnm) or [macOS](https://download.firstperson.dev/releases/latest/macOS/pnm) (the macOS build has not been tested by us). PNM changes quickly and some of its changes break older VTAs, so take it from the same release as your VTA. The following values will be collected during setup. Save each one as prompted — they are needed across steps. @@ -38,7 +38,7 @@ The following values will be collected during setup. Save each one as prompted #### Step 1: Create the VTA in VTA Farm -1. Create an account at the [VTA Farm](https://vtafarm.firstperson.dev). +1. At the [VTA Farm](https://vtafarm.firstperson.dev), click **Set up an account**, enter your email address, and click **Create account with Passkey**. 2. Complete the passkey prompt on your computer. 3. Click **Create VTA**. 4. Enter a **name** for your VTA, leave the default image selected, and click **Create session**. @@ -60,17 +60,23 @@ When prompted: | --- | --- | | What would you like to do?: | Choose **Connect to an existing non-TEE VTA** | | Name for this VTA: | Enter the **same name** you used in Step 1 | -| VTA DID: | Paste the **Personal VTA DID** from 1a | +| VTA DID (leave blank to finish setup later): | Paste the **Personal VTA DID** from 1a | -PNM prints a `vta import-did` command containing a generated Temp DID unique to this session: +PNM first generates a temporary admin identity and prints it, with a **Next steps** list, before it asks for the name. After you paste the VTA DID, it stores the session and prints it again: ```text -vta import-did --did did:key:z6Mk... --role admin +Session stored for ''. + + VTA slug: + VTA DID: did:webvh:... + Temp DID: did:key:z6Mk... ``` +PNM then checks whether the VTA accepts the Temp DID yet. It doesn't, so PNM prints a `vta import-did` command for it. That command is for a self-hosted VTA; on the VTA Farm you paste the DID into the browser instead. + > **⚠️ SAVE THIS** (2a) > -> The **Temp DID** — the `did:key:z6Mk...` value from PNM's output. You'll paste it into VTA Farm in the next step. Don't copy the entire line; just the DID, for example: **did:key:z6MkqYgeCR8hJS9A5Eu98hfMBiYHb8MZ8S9R2Mz4PqErZyLF** +> The **Temp DID**: the `Temp DID:` line from PNM's output. You'll paste it into VTA Farm in the next step. Copy just the DID, for example: **did:key:z6MkqYgeCR8hJS9A5Eu98hfMBiYHb8MZ8S9R2Mz4PqErZyLF** #### Step 3: Provision the agent @@ -136,7 +142,7 @@ When prompted, use the values below. Replace the host placeholders (see Prerequi | --- | --- | | Config file path [config.toml]: | Press **Enter** (use default) | | VTA name (leave empty to skip): | Enter a name for this VTA | -| Services to enable (select at least one): | Also select TSP and press **Enter** (all three services selected) | +| Services to enable (select at least one): | Press **Enter** (REST, DIDComm and TSP are all selected by default) | | Server host [0.0.0.0]: | Press **Enter** (use default) | | Server port [8100]: | Press **Enter** (use default) | | VTA REST URL [http://localhost:8100]: | `https://vta.yourdomain.com` | @@ -144,13 +150,11 @@ When prompted, use the values below. Replace the host placeholders (see Prerequi | Log format: | Press **Enter** (default: **text**) | | Audit-log retention (days) [28]: | Press **Enter** (use default) | | Data directory [data/vta]: | Press **Enter** (use default) | -| Configure advanced server options (CORS, trusted proxy header, WebAuthn)? [y/N] | Press **Enter** (use default) | +| Configure advanced server options (CORS, trusted proxy CIDRs, WebAuthn)? [y/N] | Press **Enter** (use default) | | Seed storage backend: | Press **Enter** (default: Config file) | | Enable hardened configuration? (encrypts the fjall store...) y/N | Press **Enter** (use default) | -**Seed storage backend:** - -- Choose: **Config file (hex-encoded seed in config.toml)** +**Seed storage backend:** the default, **Config file (hex-encoded seed in config.toml)**, is first in the list. The other choices are **Encrypted file (passphrase, systemd-creds or TPM key)** and **Plaintext file (NOT recommended)**. **DIDComm Messaging:** @@ -158,18 +162,22 @@ When prompted, use the values below. Replace the host placeholders (see Prerequi | --- | --- | | DIDComm messaging: | Choose **Use an existing mediator DID** | | Mediator DID: | Paste the **Community Mediator DID** from 0a (e.g. `did:webvh:...:did-host.com:mediator`) | -| Mediator hostname for vsock-bridged TEE deployments: | Press **Enter** (skip) | -| Automatically provision ACL on mediator after connecting? y/N | Press **Enter** (use default) | +| Mediator hostname for vsock-bridged TEE deployments (leave empty to skip): | Press **Enter** (skip) | +| Automatically provision ACL on mediator after connecting? (enable if mediator uses ExplicitAllow mode) [y/N] | Press **Enter** (use default) | + +The wizard then checks the mediator and prints `Mediator did:webvh:... advertises TSP.` If it says the mediator advertises no TSP service instead, TSP is dropped from your VTA's services; DIDComm still works. **VTA DID:** | Prompt | Action | | --- | --- | -| VTA DID: | Choose **Create a new `did:webvh` DID** | -| VTA DID URL: | `https://did-host.com/your-did-path` | -| DID creation mode: | Press **Enter** (default: **Simple — VTA creates keys and document**) | +| VTA DID: | Press **Enter** (default: **Create a new did:webvh DID (recommended for production)**) | +| VTA DID URL [http://localhost:8000/]: | `https://did-host.com/your-did-path` | +| DID creation mode: | Press **Enter** (default: **Simple — VTA creates keys and document (recommended)**) | | Make this DID portable (can move to a different domain later)? [Y/n]: | Press **Enter** → **Y** | | Number of pre-rotation keys [1]: | Press **Enter** (use default) | +| Present this VTA's DIDs as: | Press **Enter** (default: **did:webvh (recommended; what every existing peer expects)**) | +| List the did:scid alias in alsoKnownAs, so peers can also use that form? [Y/n] | Press **Enter** → **Y** | **BIP-39 mnemonic:** @@ -182,22 +190,23 @@ When prompted, use the values below. Replace the host placeholders (see Prerequi | --- | --- | | Save DID log to file [VTA-did.jsonl]: | Press **Enter** (use default) | -When all prompts are complete, the wizard prints: +When all prompts are complete, the wizard prints `To self-host this DID, upload VTA-did.jsonl to the DID URL.` (that is Step 2) and then: ```text -Setup complete! - Config saved to: config.toml - Seed stored in configured backend - Seed backend: config file (hex-encoded in config.toml) - VTA Name: - VTA REST URL: https://vta.yourdomain.com - VTA DID: did:webvh:...:did-host.com:your-did-path - Services: REST, DIDComm - Server: 0.0.0.0:8100 - Mediator DID: did:webvh:...:did-host.com:mediator - Contexts: vta (m/26'/2'/0') +Setup complete. + Config: config.toml + Data dir: data/vta + Name: + URL: https://vta.yourdomain.com + VTA DID: did:webvh:...:did-host.com:your-did-path + Mediator: did:webvh:...:did-host.com:mediator + + ACL is empty. Seed the first admin: + ... ``` +The rest of the summary describes two ways to add the first admin. Step 3 uses the first, `vta import-did`. + > **⚠️ SAVE THIS** (1b) > > From the summary above: @@ -264,12 +273,16 @@ When prompted: | --- | --- | | What would you like to do?: | Choose **Connect to an existing non-TEE VTA** | | Name for this VTA: | Enter a name for this VTA | -| VTA DID: | Paste the **Personal VTA DID** from 1b | +| VTA DID (leave blank to finish setup later): | Paste the **Personal VTA DID** from 1b | -PNM will output a `vta import-did` command. Note it down — it contains a generated temp DID unique to this session: +PNM first generates a temporary admin identity and prints it, with a **Next steps** list, before it asks for the name. After you paste the VTA DID, it stores the session, prints the `Temp DID:`, and checks whether the VTA accepts it yet. The VTA isn't running, so expect an error like this, followed by the command to run: ```text -vta import-did --did did:key:z6Mk... --role admin +Could not reach did:webvh:... to check whether it accepts did:key:z6Mk...: tsp transport error: + TSP relationship failed: ... status(403) ... "Message not accepted for delivery" ... +If the VTA has not granted this identity admin access yet, ask your VTA admin to run: + + vta import-did --did did:key:z6Mk... --role admin ``` Run that command in the `~/vta` directory on the machine where you installed the VTA: @@ -298,6 +311,25 @@ cd ~/vta nohup vta > log.txt 2>&1 & ``` +#### Step 4: Get DID hosting for your personas + +OpenVTC, in the next two guides, mints a `did:webvh` persona for each community you join. It asks your VTA to create the persona on a **DID hosting server**, and that server must let your VTA in. A VTA Farm VTA comes with this already; a self-hosted one does not. Without it, creating a persona stalls at `Creating persona DID via did-hosting-daemon…`. The VTA retries every 30 seconds, and the server's log says `trust task refused: sender has no ACL entry`. + +Ask the operator of a DID Hosting Daemon (on an [explore box](../sysop/explore/02-walkthrough.md#step-4-set-up-did-hosting-daemon), that's you) to add your **Personal VTA DID** (1b) to its ACL. The command needs the daemon stopped, so it is a short restart: + +```bash +cd ~/dids +pkill -f did-hosting-daemon +did-hosting-daemon add-acl --did --label personal-vta +nohup did-hosting-daemon >> log.txt 2>&1 & +``` + +The default role, `owner`, is enough. Then, from your PNM, register that server with your VTA, using the daemon's own DID (**DID Host DID (4b)** on an explore box): + +```bash +pnm did-mgmt servers add --id did-hosting-daemon --did +``` + ### Verification Confirm the VTA is responding: @@ -314,7 +346,7 @@ You can also check it from the machine running the PNM: pnm health ``` -It should return the status of a number of checks it runs against the VTA, the Mediator and DIDComm/TSP trust pings. +It should return the status of a number of checks it runs against the VTA, the Mediator and DIDComm/TSP trust pings, each marked ✓. The first successful connection also replaces PNM's temporary DID with a long-lived one. ### Next diff --git a/developer/02-openvtc-tui.md b/developer/02-openvtc-tui.md index d431338..e4c008a 100644 --- a/developer/02-openvtc-tui.md +++ b/developer/02-openvtc-tui.md @@ -1,15 +1,15 @@ # OpenVTC TUI Setup **Description:** Install and configure the OpenVTC TUI — the interactive text interface for working with your Personal VTA. Used for minting persona DIDs, managing community contexts, and exchanging credentials. -**Tested on:** Arch Linux desktop & macOS +**Tested on:** Ubuntu Server 26.04 **Verified with:** -| OpenVTC Version | VTA Version | Mediator Version | DID Hosting Daemon Version | -| --- | --- | --- | --- | -| 0.3.1 | 0.39.0 | 0.28.36 | 0.8.3 | +| Release | OpenVTC | VTA | PNM | Mediator | DID Hosting | +| --- | --- | --- | --- | --- | --- | +| VTI-Fig-RC-0 | 0.9.0 | 0.87.2 | 0.66.2 | 0.56.0 | 0.12.0 | -> **⚠️ Out of date until VTI-Fig.** Verified on the builds above, which predate the VTI-Eucalyptus release. Where a prompt, flag or output differs, trust the tool. This page will be re-verified on VTI-Fig; see [Versions](../README.md#versions). +**Verified by an automated run** on a fresh Ubuntu 26.04 server, against a Personal VTA set up with [Path B of 01](01-personal-vta.md#path-b--vta-the-hard-way-self-hosted): the wizard was driven through tmux and its screens compared with this page. Secrets were kept with `OPENVTC_SECURE_STORE=file`, as on a headless machine. Not tested on macOS, Windows/WSL, with a desktop OS keyring, or with a hardware security key. This page will be re-verified on the final VTI-Fig release; see [Versions](../README.md#versions). ## Prerequisites @@ -33,38 +33,47 @@ The following values will be collected during setup. Save each one as prompted. #### Option A: Download pre-built binary (recommended) -Saves the Rust toolchain install and ~2–5 minutes of build time: +Saves the Rust toolchain install and ~2–5 minutes of build time. On Linux (x86-64): ```bash curl -O https://download.firstperson.dev/openvtc/latest/openvtc chmod +x openvtc && sudo mv openvtc /usr/local/bin/ ``` +The Linux build includes hardware-token support, so it needs the PC/SC library even if you have no token. Without it, `openvtc` stops with `error while loading shared libraries: libpcsclite.so.1`. On Debian or Ubuntu: + +```bash +sudo apt install -y libpcsclite1 +``` + +A [macOS build](https://download.firstperson.dev/releases/latest/macOS/openvtc) is also available; it has not been tested by us. + #### Option B: Build from source -Requires a Rust toolchain (1.94.0 or newer): +Requires a Rust toolchain (1.95.0 or newer). OpenVTC is published on crates.io; this builds the same release as the table above: ```bash -cd ~ -git clone https://github.com/OpenVTC/openvtc.git -cd openvtc -cargo install --path openvtc --no-default-features +cargo install openvtc --version 0.9.0 --locked --no-default-features ``` If you have a hardware token (OpenPGP card / YubiKey) and the PC/SC libraries available on the host, build with default features instead to enable hardware-token support: ```bash -cargo install --path openvtc +cargo install openvtc --version 0.9.0 --locked ``` +To build from a checkout instead, `git clone https://github.com/OpenVTC/openvtc.git`, `git checkout VTI-Fig-RC-0`, then `cargo install --path openvtc` with the same feature flags. + The binary lands in `~/.cargo/bin/`. #### Confirm ```bash -openvtc --help +openvtc --version ``` +It prints `openvtc 0.9.0`. + ### Step 2: Run the setup wizard > **ℹ️ NOTE: Decide on the profile before you start** @@ -104,7 +113,13 @@ You point OpenVTC at your VTA and authorise it through PNM. Only the PNM step ne | --- | --- | | Connect to your VTA | At **Enter the VTA's DID:**, paste your **Personal VTA DID**, then press **Enter** | -**Authorise the setup DID via PNM.** OpenVTC mints a temporary admin `did:key` for this session and shows it as the **Setup DID**. Below it is a **Context id** field, pre-filled with `openvtc`, and a ready-to-copy `pnm contexts create` command built from both. Leave the context id as it is unless you need a different one; the command updates as you type, and **Esc** resets it to `openvtc`. Press **F2** to copy the command, then run it in the PNM session you set up in [01 — Personal VTA](01-personal-vta.md): +**Run the PNM command.** OpenVTC mints a temporary admin `did:key` for this session and shows it as the **Setup DID**. Below it are a **Context id** field, pre-filled with `openvtc`, and a **Transport** row, `Automatic (TSP → DIDComm → REST)`, which **Tab** changes; leave both as they are unless you need otherwise. The page then lists three ready-to-copy commands built from them, which update as you type: + +- **F2**, *New context*: `pnm contexts create`. This is the one for a first setup. +- **F3**, *Context already exists, or re-granting*: `pnm acl create`. +- **F4**, *Re-granting? Delete the old entry first*: `pnm acl delete`. + +Press **F2** to copy the command, then run it in the PNM session you set up in [01 — Personal VTA](01-personal-vta.md): ```bash pnm contexts create --id openvtc --name "OpenVTC" \ @@ -113,7 +128,7 @@ pnm contexts create --id openvtc --name "OpenVTC" \ `--admin-holder` also lets OpenVTC manage your own identity (attributes, profiles and disclosures), which sits above any single context. Without it, the **My Identity** panel's Attributes, Profiles and Disclosures tabs are refused. -`--admin-handoff` lets the one-hour setup DID roll over once to the long-term admin DID the VTA mints at the end of setup. Without it, that last step is refused with `VTI-ACL-053`, and the flag can't be added to the context afterwards. If you already created the context without it, replace the setup DID's grant instead (OpenVTC's setup page prints these commands too): +`--admin-handoff` lets the one-hour setup DID roll over once to the long-term admin DID the VTA mints at the end of setup. Without it, that last step is refused with `VTI-ACL-058`, and the flag can't be added to the context afterwards. If you already created the context without it, replace the setup DID's grant instead with **F4** and then **F3**: ```bash pnm acl delete did:key:z6Mk... @@ -121,28 +136,30 @@ pnm acl create --did did:key:z6Mk... --role admin --contexts openvtc \ --expires 1h --handoff --capabilities persona-holder ``` -Switch back to the TUI and press **Enter**. The grant lasts 1 hour — see [Known issues](#known-issues--edge-cases) if you overrun it. +Wait for PNM to print `Admin ACL entry created`, then switch back to the TUI and press **Enter**. If PNM says the context `already exists … NOT added` instead, nothing was granted; use **F3**. The grant lasts 1 hour and the setup DID can use it once; see [Known issues](#known-issues--edge-cases) if you overrun it. -**Bootstrapping with the VTA.** The wizard now works on its own, ticking off each check as it goes: the ephemeral `did:key` authenticates to the VTA, the VTA mints a long-term admin DID for OpenVTC and rotates the ephemeral key out, and the wizard opens a TSP or DIDComm session against the VTA — whichever the VTA advertises in its DID document. When it reports `Bootstrap complete — admin key rotated, ephemeral setup DID retired.`, press **Enter**. If it fails, Enter returns you to the PNM page to check the grant and retry. +**Connect to the VTA.** The wizard now works on its own, ticking off each check as it goes: the ephemeral `did:key` authenticates to the VTA, the VTA mints a long-term admin DID for OpenVTC and rotates the ephemeral key out, and the wizard opens a TSP or DIDComm session against the VTA — whichever the VTA advertises in its DID document. When it reports `Bootstrap complete — admin key rotated, ephemeral setup DID retired.`, press **Enter**. If it fails, **R** retries and **B** goes back to the PNM page, which then shows a banner naming the cause and the F-key command that fixes it. -**If the context is already in use.** When the context you chose already holds an OpenVTC account (for example, from an earlier setup), the wizard stops at **This Trust Context is already in use** and lists what it contains. Press **R** to recover that account, **B** to go back and use a different context (the existing one is left untouched), or **C** to continue anyway and add a second account to it. A first-time setup never sees this page. +**This Trust Context is already in use.** On VTI-Fig-RC-0, a first-time setup stops here too. The page reports `Contains 1 persona` and lists a `did:key`: that is the long-term admin DID the VTA has just minted for OpenVTC, not an earlier account. Press **C** to continue. (This is an OpenVTC bug.) The page is meant for a context that really does hold an OpenVTC account, for example from an earlier setup; then press **R** to recover that account or **B** to go back and use a different context, which leaves the existing one untouched. **C** adds a second account to it. #### 2.3 Profile Security The unlock code encrypts your keys, configuration and private data. -If your `openvtc` build includes hardware-token support (the default for `cargo install --path openvtc`), this section opens with **Step 1/6: Set up hardware token**. Press **S** to skip it unless you have an OpenPGP-compatible token (NitroKey or YubiKey) plugged in. +If your `openvtc` build includes hardware-token support (the pre-built download and the default `cargo install` both do), this section opens with **Set up hardware token**. Press **S** to skip it unless you have an OpenPGP-compatible token (NitroKey or YubiKey) plugged in. | Page | Action | | --- | --- | -| Step 1/2: Set up unlock code | Press **Enter** to accept **Yes, require unlock code (recommended)** | -| Step 2/2: Enter unlock code | Type your unlock code (2a), press **Tab**, type it again under **Confirm unlock code:**, then press **Enter** | +| Set up unlock code | Press **Enter** to accept **Yes, require unlock code (recommended)** | +| Enter unlock code | Type your unlock code (2a), at least 8 characters, press **Tab**, type it again under **Confirm unlock code:**, then press **Enter** | + +Use **Tab** to move to the confirm field: **Enter** submits the page, so pressing it after the first field reports `Unlock codes do not match.` **Esc** goes back a page. Choosing **No, do not require unlock code** instead takes you to a **SECURITY WARNING** page and, if you confirm, leaves the config unencrypted. #### 2.4 Setup Complete -The **Profile configuration** page shows an **Account Summary** with your VTA DID and the context (`openvtc` unless you changed it). Press **Enter** to leave the wizard for the dashboard. +The **Profile configuration** page shows an **Account Summary** with your VTA DID and the context (`openvtc` unless you changed it). Press **Enter** to leave the wizard. A **Ready** page follows while OpenVTC connects in the background; press **Enter** again for the dashboard. ```text OpenVTC Dashboard No active community @@ -154,7 +171,7 @@ OpenVTC Dashboard No active community │ * Vetting ││ Find a Verifiable Trust Community and │ │ * My Identity ││ choose who it will know you as. │ │ * Settings ││ │ -│ * VTA Service ││ Press j to join your first community. │ +│ * VTA Service ││ Press n to join your first community. │ │ * TSP Relationships ││ │ │ * Logs ││ │ │ * Help / Status ││ │ @@ -175,7 +192,7 @@ openvtc setup -p alice openvtc -p alice ``` -There is no `openvtc profiles list` or `openvtc profiles delete`. Inspect with `ls ~/.config/openvtc/`; remove one profile by deleting its `config-.json` and clearing the matching keyring entry (e.g. `secret-tool clear service openvtc account ` on libsecret-based systems). Wipe everything with `rm -rf ~/.config/openvtc/` plus the corresponding keyring entries. You will also need to delete the contexts created in the PNM (e.g. `pnm contexts delete openvtc`). +There is no `openvtc profiles list` or `openvtc profiles delete`. Inspect with `ls ~/.config/openvtc/`; remove one profile by deleting its `config-.json` and clearing the matching keyring entry (e.g. `secret-tool clear service openvtc username ` on libsecret-based systems), or, with file storage, its file in `~/.config/openvtc/secrets/`. Wipe everything with `rm -rf ~/.config/openvtc/` plus the corresponding keyring entries. You will also need to delete the contexts created in the PNM (e.g. `pnm contexts delete openvtc`). ## Verification @@ -188,7 +205,7 @@ Where a **Persona** row would sit, you instead get `Status: Ready — join a com ## Known issues / edge cases -- **PNM grant is 1 hour.** If you take longer than that between running `pnm contexts create` and pressing Enter on the wizard's **Authorise the setup DID via PNM** page, provisioning fails. Re-running the wizard mints a fresh setup DID — re-run `pnm contexts create` against the new one. +- **PNM grant is 1 hour.** If you take longer than that between running `pnm contexts create` and pressing Enter on the wizard's **Run the PNM command** page, provisioning fails and you are sent back to that page with a banner. Re-grant the same setup DID with **F4** (`pnm acl delete`) and then **F3** (`pnm acl create`). Running `pnm contexts create` again does not work: the context already exists, so PNM grants nothing. - **TUI eats stdout.** For tracing output, set `OPENVTC_DEBUG_LOG=/tmp/openvtc.log` before launching: the TUI writes structured logs to that file while you use the UI. ## Next diff --git a/developer/03-joining-a-community.md b/developer/03-joining-a-community.md index f65ce22..0db59d8 100644 --- a/developer/03-joining-a-community.md +++ b/developer/03-joining-a-community.md @@ -1,21 +1,21 @@ # Joining a Community **Who you are:** A developer who is not yet a member of the target Verifiable Trust Community (VTC). -**What you'll have at the end:** A join request submitted from your Personal Verifiable Trust Agent (VTA) under a persona DID, approved by a community admin, with your persona listed as a member in the community's ACL and trust registry. +**What you'll have at the end:** A join request submitted from your Personal Verifiable Trust Agent (VTA) under a persona DID, approved by a community admin, with your persona listed as a member in the community's ACL (and in its trust registry, if you consent). **Verified with:** -| OpenVTC Version | VTA Version | Mediator Version | DID Hosting Daemon Version | VTC Version | -| --- | --- | --- | --- | --- | -| 0.3.1 | 0.39.0 | 0.28.36 | 0.8.3 | 0.11.58 | +| Release | OpenVTC | VTA | PNM | Mediator | DID Hosting | VTC | +| --- | --- | --- | --- | --- | --- | --- | +| VTI-Fig-RC-0 | 0.9.0 | 0.87.2 | 0.66.2 | 0.56.0 | 0.12.0 | 0.35.2 | -> **⚠️ Out of date until VTI-Fig.** Verified on the builds above, which predate the VTI-Eucalyptus release. Where a prompt, flag or output differs, trust the tool. This page will be re-verified on VTI-Fig; see [Versions](../README.md#versions). +**Verified by an automated run** on a fresh Ubuntu 26.04 server, joining the community from the [explore walkthrough](../sysop/explore/02-walkthrough.md): OpenVTC was driven through tmux, and the admin's side in the VTC console through headless Chromium with a virtual passkey. Not tested on macOS, Windows/WSL, or with a hardware security key. This page will be re-verified on the final VTI-Fig release; see [Versions](../README.md#versions). ## Prerequisites - **A Personal VTA and the OpenVTC TUI**, from [01](01-personal-vta.md) and [02](02-openvtc-tui.md). - **The target community's DID.** Published on the community's home page — see Step 4. -- **A community admin who will act on your request.** A community that accepts open join requests still admits nobody until an admin approves. If it issues invitation credentials (VICs) instead, create your persona first (Step 3), give its DID to the admin, and paste the VIC they send you into the join prompt to skip the wait. +- **A community admin who will act on your request.** A new community's default join criteria send an open request to its administrators for review, so it admits nobody until one approves. (A community can change that.) If it issues invitation credentials (VICs) instead, create your persona first (Step 3), give its DID to the admin, and paste the VIC they send you into the join prompt to skip the wait. ## Path @@ -31,7 +31,7 @@ Follow [02 — OpenVTC TUI Setup](02-openvtc-tui.md). You finish on the OpenVTC ### Step 3 — Create a persona DID -A **persona** is a `did:webvh` identity you present to a community. It is what you join as — never your Personal VTA's primary DID, and never a persona you already use elsewhere (see [How joining works](#how-joining-works) below). Setup in [02](02-openvtc-tui.md) deliberately leaves you without one: personas are community-scoped, so the first is minted here or during the join. +A **persona** is a DID you present to a community, a `did:webvh` unless you choose otherwise. It is what you join as — never your Personal VTA's primary DID, and never a persona you already use elsewhere (see [How joining works](#how-joining-works) below). Setup in [02](02-openvtc-tui.md) deliberately leaves you without one: personas are community-scoped, so the first is minted here or during the join. This step is optional. If you have no persona when you join in Step 5, OpenVTC mints one for you. Make one here if the community will send you an invitation credential (VIC): an invitation is bound to a persona DID, so the community admin needs yours before you join. @@ -40,7 +40,7 @@ From the dashboard, select **My Identity** in the Menu panel and press **Enter** | Prompt | Action | | --- | --- | | What should this persona be called? | Enter a name (e.g. `alice`), then press **Enter** | -| Where should this persona's DID live on the hosting server? | Press **Enter** to create it with a path the server picks (press `p` first if you want to type the path yourself) | +| Where should this persona's DID live on the hosting server? | Press **Enter** to create it with a path the server picks (press `p` first if you want to type the path yourself, or `m` to change the DID method) | The name is only for you: communities are shown the DID, not the name, and you can rename it later. It also names the VTA sub-context the persona's keys live in (`openvtc/alice` for the default profile). @@ -52,7 +52,7 @@ The name is only for you: communities are shown the DID, not the name, and you c │ did:webvh:QmPersona…:dids.example.com:quiet-harbor │ │ │ │ (copied to clipboard) │ -│ c: copy again ⏎/esc close │ +│ c: copy again · Enter/Esc: close │ └──────────────────────────────────────────────────────────┘ ``` @@ -60,27 +60,23 @@ The name is only for you: communities are shown the DID, not the name, and you c > > Save the **persona DID**. It is how the community's admin console identifies you, and the only way to find your own request in their queue. -The DID host is chosen for you, and so is the path (`quiet-harbor` above) unless you pressed `p`. You don't upload anything. Without DID hosting rights on your VTA the mint fails outright: +The DID host is chosen for you, and so is the path (`quiet-harbor` above) unless you pressed `p`. You don't upload anything. If your VTA has no DID hosting server registered, the mint fails outright: ```text No WebVH server available from the VTA (serverless mint not yet supported). ``` +If the server is registered but hasn't let your VTA in, the overlay stays on `Creating persona DID via did-hosting-daemon…` with no error, while the VTA retries every 30 seconds. On a self-hosted VTA, that means [01, Path B, Step 4](01-personal-vta.md#step-4-get-did-hosting-for-your-personas) hasn't been done yet. The mint completes on the next retry once it has. + If the mint fails with a **502** or **504** instead, the VTA's call to its DID hosting server failed. The fault is between those two, not in OpenVTC or your setup, and `pnm health` passing does not rule it out. Report it to your VTA operator (for VTA Farm, the Farm team) with the time it happened. Skipping this step won't get you past it: a join mints a persona through the same server. ### Step 4 — Copy the community DID -The community publishes its DID on its home page: - -```text -COMMUNITY DID did:webvh:QmRoot…:dids.example.com:example-vtc -``` - -Copy it. OpenVTC works out the route to the community on its own. +The community publishes its DID on its home page, on a card headed **Community DID** with a QR code and a **Copy** button. Copy it. OpenVTC works out the route to the community on its own. ### Step 5 — Submit the join request -Back in the OpenVTC dashboard, select **Communities** in the Menu panel and press `j`. +Back in the OpenVTC dashboard, select **Communities** in the Menu panel, press **Enter** to move into the Content panel, then press `n`. ```text ┌ Join a community ────────────────────────────────────────────────────┐ @@ -96,10 +92,12 @@ Back in the OpenVTC dashboard, select **Communities** in the Menu panel and pres │ If you were handed an invitation credential (VIC), paste the JSON │ │ here instead — it names the community, so it fills the DID in for │ │ you, and it rides along with the join request. │ -│ [Ctrl+V] paste from the clipboard │ +│ [Ctrl+V] paste from the clipboard — a DID goes in the field, an │ +│ invitation is loaded │ │ │ │ Examples: │ │ • did:webvh:QmRoot…:community.example.com │ +│ • did:scid:vh:1:QmRoot…?src=community.example.com │ │ • community.example.com/@acme │ │ │ │ [ESC] to cancel | [ENTER] to join │ @@ -120,7 +118,9 @@ Paste the Community DID and press **Enter**. What comes next depends on whether │ ▸ alice │ │ did:webvh:QmPersona…:dids.example.com:quiet-harbor │ │ ✦ Be someone new to this community │ -│ A fresh did:webvh — nothing links it to your other communities │ +│ A fresh persona DID — nothing links it to your other │ +│ communities │ +│ Presented as your account's default [m] change │ │ │ │ [↑/↓] select [ENTER] choose [ESC] cancel │ └──────────────────────────────────────────────────────────────────────┘ @@ -167,6 +167,14 @@ A persona from Step 3 already has its own sub-context (`openvtc/alice`), so the A community that vets its members, or asks applicants to tell it about themselves, adds a page here first. It sets out what the community requires or asks, and what would be sent, before anything leaves. An open-request community shows neither. +Every join then stops on **Review and send**. Nothing has been sent yet. The page lists what the community will receive: your identity, invitation and vetting, and how it decides (`with no invitation or vetting, the request goes to its moderators to decide`). It also says what the community's member directory would show about you. At the bottom is one checkbox: + +```text + [ ] Publish my membership in this community's trust registry +``` + +Leave it unticked and the community will not publish your membership in its public trust registry, even after it admits you. Tick it with **Space** to allow that. You can't change the answer after joining except by leaving and joining again. Press **Enter** to send the request. + OpenVTC prepares the sub-context, submits the request, and reports: ```text @@ -195,6 +203,8 @@ OpenVTC prepares the sub-context, submits the request, and reports: │ Status: Pending · not yet acknowledged │ │ Sent over: TSP │ │ Invitation: None · open request (awaiting approval) │ +│ Registry: Not consented · the community will not publish │ +│ this membership │ │ │ │ It's now in your Communities list, marked Pending — it will update │ │ there as the community responds. │ @@ -207,18 +217,18 @@ OpenVTC prepares the sub-context, submits the request, and reports: └──────────────────────────────────────────────────────────────────────┘ ``` -The community now appears in your **Communities** panel marked `Pending`, with the request ID and the persona you presented. +The community now appears in your **Communities** panel marked `Pending`, with the persona you presented, its context, and the request ID. **c** on that entry cancels the join. ### Step 6 — The community decides -A community admin reviews the request in the VTC admin console — **Join requests** → your request → **Review**. The detail page shows your applicant DID, submission time, status, and any VP claims you presented — empty on an open request, whose policy asks for no credentials. +A community admin reviews the request in the VTC admin console: **Join requests** lists it with your persona DID, when you sent it, and whether you consented to registry publication; **Review** opens it. The same request also appears under **Actions**. Every decision in the console is a signed document, so the admin must have completed **Set up signing** (see [the walkthrough's Step 6](../sysop/explore/02-walkthrough.md#step-6-set-up-vtc)) and hold the `vtc.join.decide` capability. The detail page shows a summary (your DID, submission time, status, registry consent) and any vetting or credentials you presented, which are empty on an open request, then a **Decide** section. The admin then either: -- **Approve** — creates the member and ACL row atomically, and fires VMC + role-VEC issuance to your persona. -- **Reject** — closes the request with a reason. You may resubmit. +- **Approve**, confirmed in an **Approve join request?** dialog: creates the member and ACL row atomically, and issues your persona its credentials, a VMC and a role VAC. +- **Reject**: closes the request, with an optional reason. You may resubmit. -After approval your persona appears under **Members** with role `member` and a joined timestamp. +After approval your persona appears under **Members** with role `member` and a joined timestamp. OpenVTC's activity log shows the credentials arriving (`credential-exchange/issue/0.1`). You are not involved in this step; the outcome reaches you over TSP or DIDComm. @@ -234,16 +244,15 @@ On the OpenVTC side, open the **My Identity** panel. Your persona is listed on t ▸ ● did:webvh:QmPersona…:dids.example.com:quiet-harbor alice · active · known to 1 community -↑/↓ select n: new persona g: agent names d: remove unused ⇥/⇧⇥: tab +↑/↓: select · n: new persona · g: agent names · Tab/→: next tab · Shift+Tab/←: previous tab · Esc: back ``` -Read that carefully: `known to 1 community` says the persona is bound to a community, **not** that the community accepted you. Acceptance is what the credentials prove: on approval the VTC issues your persona a **VMC** (membership) and an initial role **VEC**, and both land in **My Credentials**. The checks that should pass are: +Read that carefully: `known to 1 community` says the persona is bound to a community, **not** that the community accepted you. Acceptance is what the credentials prove: on approval the VTC issues your persona a **VMC** (membership) and an initial role **VAC**, and both land on the **Membership** tab of **My Credentials**, labeled **Membership** and **Role: member**, next to an **Acknowledgement**. The checks that should pass are: - Your persona resolves via the community's DID host. -- **My Credentials** lists a VMC and a role VEC, both issued by the community. +- **My Credentials** lists a Membership and a Role credential, both issued by the community. - Your VMC presents against the community's status list as not-revoked. -- Your persona is listed as `Active` in the community's trust registry. -- You can receive TSP and/or DIDComm messages addressed to your persona via the **members-only mediator**, not just the public/join one. +- If you ticked the registry checkbox, and the community publishes, your persona is listed in the community's trust registry. The admin can see it in the console under **Recognition** → **Trust registry records**, as `recognise` · `member of this community`. At that point you have graduated to Member Developer _(not yet written)_. @@ -253,8 +262,8 @@ At that point you have graduated to Member Developer _(not yet written)_. - **Present a persona, never your Personal VTA's primary DID.** Substituting the latter links all your communities together. - **Personas are scoped to a single community.** Don't re-present an old one if you leave and rejoin; mint a new one. - **The mnemonic for your Personal VTA backs every persona you mint.** Losing it loses every community identity you hold — see [01 — Personal VTA](01-personal-vta.md) for recovery. -- **Trust-registry publication is off.** A join request carries a `registryConsent` flag, and OpenVTC always sends `false`, so your persona is not externally listed. The TUI has no setting to opt in. -- **There's a REST alternative to the TSP and DIDComm paths.** Communities that publish their VTC service over HTTPS also accept `POST /v1/join-requests` (unauthenticated, rate-limited) with the same VP body. On REST the VP must carry a **holder-binding signature** from your persona, since there is no TSP or DIDComm envelope to authenticate you. Use whichever the community advertises. +- **Trust-registry publication is your choice.** The **Review and send** page asks on every join, unticked by default, and sends the answer as the request's `registryConsent` flag. +- **The VTC also has a REST join endpoint**, `POST /v1/join-requests`, but OpenVTC doesn't use it for a `did:webvh` persona: it accepts `did:key` applicants only. OpenVTC joins over TSP or DIDComm. ## How joining works @@ -262,7 +271,7 @@ If you want to understand why the path above is shaped the way it is, read on. > **ℹ️ NOTE** > -> Join policy is per-community: each community decides what it will accept and writes that into its own policy. The walkthrough above follows an **open-request** policy — present no credentials, an admin decides by hand. The **two-VRC** policy described below is only an **example** of what a community could require; OpenVTC does not prescribe it. The wire shape of a join request is the same whatever the policy. +> Join policy is per-community: each community publishes the **join criteria** it accepts and decides how each is admitted. A new community starts with three: an invitation (admitted automatically), a membership credential (automatic) and a review (an admin decides). The walkthrough above is the review route: present no credentials, an admin decides by hand. The **two-VRC** policy described below is only an **example** of what a community could require; OpenVTC does not prescribe it. The wire shape of a join request is the same whatever the policy. ### Your Personal VTA holds many DIDs, not just one @@ -278,27 +287,18 @@ A VRC carries two kinds of attestation from the issuer: an **identity attestatio _Note: The VTC spec (§6.1) lists Verifiable Invitation Credentials (VICs, issued by community admins) as the natural credential type for gating joins. A VRC-based policy like this example is an alternative: VRCs are peer-issued, member-to-member trust edges, so any two existing members can admit a new one rather than routing applicants through an admin-controlled invitation funnel. The trade-off is that peer-vouching does not scale to communities large enough that "two members vouching" stops representing meaningful trust. Which approach suits a community is that community's decision. The two-claim VRC body (identity attestation + membership recommendation) in this example is also ahead of the spec, which currently leaves the VRC payload undefined._ -### Two mediators, two purposes - -The community runs two DIDComm mediators: - -- A **public/join mediator** that accepts traffic from anyone. Its only job is to relay join-related messages to the community's **VTC service**. Because it has to be reachable by outsiders, it is the community's natural DoS surface — and is sized and protected with that in mind. -- A **members-only mediator** that filters incoming traffic against the community's current membership allowlist, derived from an ACL backed by the community's trust registry. Any DID not on that list is dropped at the mediator boundary. This is the messaging fabric for day-to-day community life and is what members use after acceptance. - -As an outside developer you only ever interact with the public/join mediator. The members-only mediator is the hand-off into the Member Developer flow. - ### How the submission reaches the VTC -The OpenVTC TUI assembles your VP and sends it to the community's VTC service, routed through the public/join mediator. It sends over TSP when the community's DID document offers TSP and your persona's mediator carries it, and falls back to DIDComm when the community also offers DIDComm and your mediator doesn't carry TSP. The progress page tells you which it used (`Sent over:`). Either envelope authenticates the sender — your persona — so the VP itself does not need a separate holder-binding signature (the envelope already binds the message to the persona it was sealed from). +The OpenVTC TUI assembles your submission and sends it to the community's VTC service, routed through the community's mediator. It sends over TSP when the community's DID document offers TSP and your persona's mediator carries it, and falls back to DIDComm when the community also offers DIDComm and your mediator doesn't carry TSP. The progress page tells you which it used (`Sent over:`). Either envelope authenticates the sender, your persona, and the submission document itself also carries your persona's signature (an `eddsa-jcs-2022` proof). -Every wire operation in OpenVTC carries a Trust Task URL identifying the protocol and version (in DIDComm, the message `type` field). The join-request task is `https://trusttasks.org/spec/vtc/join-requests/submit/0.2`. The VTC's immediate reply on the same thread is a `https://trusttasks.org/spec/vtc/join-requests/submit-receipt/0.1` message — an acknowledgement only. The actual policy outcome, and any credentials issued on `Approved`, are delivered separately. +Every wire operation in OpenVTC carries a Trust Task URL identifying the protocol and version (in DIDComm, the message `type` field). The join-request task is `https://trusttasks.org/spec/vtc/join-requests/submit/0.3`. The VTC's immediate reply on the same thread is its `#response`, carrying the verdict so far (on an open request, that it is pending review). Credentials issued on `Approved` are delivered separately. ### The policy engine decides; admins set the policy -Your join request is _addressed to_ the community's **VTC service** — the daemon that runs community lifecycle, holds the ACL, and issues community credentials — and _routes through_ the public/join mediator. The mediator is transport; the VTC service is the decider. +Your join request is _addressed to_ the community's **VTC service** — the daemon that runs community lifecycle, holds the ACL, and issues community credentials — and _routes through_ the community's mediator. The mediator is transport; the VTC service is the decider. -When the VTC receives your request it runs the community's currently-active **join policy** against your submission. The join policy is just code — a Rego module (`join.rego`) evaluated by an engine embedded in the VTC — and admins author it. The policy returns a boolean `allow`. Under the two-VRC example the rule is simple: `allow` is true if your submission carries at least two valid VRCs whose issuers are both `Active` members in the community's trust registry. On `allow=true`, the VTC mints a **VMC** and an initial role **VEC** for your persona, writes your persona's DID into the community's ACL and trust registry as `Active`, and sealed-transfers the bundle back within seconds — no human approval step. The same machinery gates any other policy a community chooses (more issuers, role-specific issuers, additional credential types); admins write the policy that fits their community and activate it, and the wire shape of a join request does not change. +When the VTC receives your request it matches it against the community's published **join criteria**. Each criterion names what it accepts (credentials, described with DCQL and the issuers the community trusts; an invitation; or vetting statements from existing members) and whether a match is admitted **automatically** or goes to **review**. Admins manage them in the console under **Vetting → Requirements**. A community can also run a Rego policy (`join.rego`), which returns a decision: `allow`, `refer`, `deny` or `request_more`. A policy can never admit a submission that doesn't meet its criterion, or one under a review criterion, and a join can never grant `admin`. -If the policy returns `allow=false`, your request is recorded with status `Rejected` and a rationale; you cannot retry without a submission the current policy will accept. If the policy cannot complete cleanly — for example, a trust-registry check times out, or the community policy explicitly holds borderline cases — your request is recorded with status `Pending` (or `Deferred`) and queued for a community admin _(not yet written)_ to review manually. +On an automatic admission, the VTC mints a **VMC** and an initial role **VAC** for your persona, writes your persona's DID into the community's ACL (and, if you consented, its trust registry), and sends the credentials back within seconds, with no human approval step. A `refer` (or a review criterion) records your request as `Pending` for an admin. `request_more` records it as `Deferred`: the community wants something more from you, such as a missing credential. `deny` records it as `Rejected`, with a rationale. You can also withdraw a request yourself (`Withdrawn`). -Under a VRC-gated policy that manual-review path is the fallback for cases automation can't decide on its own. Under an open-request policy every submission lands there — which is why Step 6 of the walkthrough is an admin clicking **Approve**. +The two-VRC example above would be a credential criterion that asks for two VRCs from issuers who are current members. Under the default review criterion, every open request lands with an admin, which is why Step 6 of the walkthrough is an admin clicking **Approve**. diff --git a/developer/README.md b/developer/README.md index 49fbfd6..c328dc5 100644 --- a/developer/README.md +++ b/developer/README.md @@ -4,7 +4,7 @@ You use OpenVTC to take part in one or more VTCs. You'll run a Personal VTA that You do **not** run the community's infrastructure. That's the [sysop](../sysop/). You don't bootstrap or administer a community — that's a [community manager](../community-manager/). -> **⚠️ Out of date until VTI-Fig.** These guides were verified on the builds in each page's **Verified with** table, which predate the VTI-Eucalyptus release. Prompts, flags and outputs may have changed since; where they differ, trust the tool. Take PNM, the VTA and OpenVTC from the same release so their versions match. All three guides will be re-verified on the upcoming VTI-Fig release. See [Versions](../README.md#versions). +> **Verified on VTI-Fig-RC-0, by automated runs.** The self-hosted path of 01, and all of 02 and 03, were run on a fresh Ubuntu server with the release candidate's builds: the terminal tools through tmux, the browser and passkey screens through headless Chromium with a virtual passkey. 01's VTA Farm path has not been re-run yet; its page says so. Take PNM, the VTA and OpenVTC from the same release so their versions match. See [Versions](../README.md#versions). ## Your path @@ -25,7 +25,9 @@ Unless you use the [VTA Farm](https://vtafarm.firstperson.dev), you will need th PNM and OpenVTC run under WSL, with a few extra steps. This section has not yet been tested end to end by the maintainers; if something here doesn't match what you see, please open an issue. -**Building from source** (OpenVTC Option B, or PNM with `cargo install`) needs these packages first. The pre-built downloads don't: +**The pre-built OpenVTC download** needs the PC/SC library, even without a hardware token: `sudo apt install -y libpcsclite1`. + +**Building from source** (OpenVTC Option B, or PNM with `cargo install`) needs these packages first: ```bash sudo apt install -y build-essential pkg-config libssl-dev libpcsclite-dev pcscd libdbus-1-dev diff --git a/sysop/deploy/README.md b/sysop/deploy/README.md index b15972d..2eca17b 100644 --- a/sysop/deploy/README.md +++ b/sysop/deploy/README.md @@ -14,12 +14,13 @@ A farm provisions each user's stack with the same **offline sealed-bundle bootst | 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 | +| Step 5 — Trust Registry | Nothing by default. The registry is an opt-in add-on to a Full Stack, off unless the owner enables it, at creation or later on a running stack; see [`docs/optional-trust-registry-design.md`](https://github.com/ic3software/vtafarm-api/blob/main/docs/optional-trust-registry-design.md) | +| Step 6 — `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 &` | 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. +This applies to **Full Stack** sessions, which provision VTA, mediator, DID host, and VTC per user, plus a Trust Registry if the owner opts in. 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 diff --git a/sysop/explore/01-server-setup.md b/sysop/explore/01-server-setup.md index 4a48532..f3b5afd 100644 --- a/sysop/explore/01-server-setup.md +++ b/sysop/explore/01-server-setup.md @@ -126,75 +126,75 @@ Saves 15–40 minutes of build time depending on your hardware. > **Not integrity-checked.** `download.firstperson.dev` does not publish checksums or signatures yet, so nothing below verifies these binaries beyond HTTPS. That is acceptable only on a throwaway explore host: do not copy them to a machine that holds real keys. -#### Nightly builds (what the walkthrough was verified on) +#### Latest release: VTI-Fig RC-0 (what the walkthrough was verified on) -Builds from each project's `nightly` branch, published without checksums or signatures. Until the VTI-Fig release, these are what the [walkthrough](02-walkthrough.md) matches: it was verified on the 2026-10-17 nightly. Nightly builds are only kept for a week or two, so the server may already be serving newer ones. The Trust Registry has no `nightly` branch, so its line below fetches the last build from `main` instead. +The `latest/` downloads track the newest named release. Today that is the first release candidate of VTI-Fig, `VTI-Fig-RC-0`, which is what the [walkthrough](02-walkthrough.md) was verified on. ```bash -curl -O https://download.firstperson.dev/vta/nightly/vta +curl -O https://download.firstperson.dev/vta/latest/vta chmod +x vta && mv vta /usr/local/bin/ -curl -O https://download.firstperson.dev/vtc/nightly/vtc +curl -O https://download.firstperson.dev/vtc/latest/vtc chmod +x vtc && mv vtc /usr/local/bin/ # pnm-server: the server build of PNM — secrets live in plaintext config # rather than an OS keyring, which a headless host has no access to. # Do not "correct" this back to the pnm/ path. -curl -O https://download.firstperson.dev/pnm-server/nightly/pnm +curl -O https://download.firstperson.dev/pnm-server/latest/pnm chmod +x pnm && mv pnm /usr/local/bin/ # cnm-server: the same server build of CNM, the community administrator's # tool, used from this box in Explore 03. Same rule: not the cnm/ path. -curl -O https://download.firstperson.dev/cnm-server/nightly/cnm +curl -O https://download.firstperson.dev/cnm-server/latest/cnm chmod +x cnm && mv cnm /usr/local/bin/ -curl -O https://download.firstperson.dev/mediator/nightly/mediator +curl -O https://download.firstperson.dev/mediator/latest/mediator chmod +x mediator && mv mediator /usr/local/bin/ -curl -O https://download.firstperson.dev/mediator/nightly/mediator-setup +curl -O https://download.firstperson.dev/mediator/latest/mediator-setup chmod +x mediator-setup && mv mediator-setup /usr/local/bin/ -curl -O https://download.firstperson.dev/did-hosting-daemon/nightly/did-hosting-daemon +curl -O https://download.firstperson.dev/did-hosting-daemon/latest/did-hosting-daemon chmod +x did-hosting-daemon && mv did-hosting-daemon /usr/local/bin/ -curl -O https://download.firstperson.dev/trust-registry/main/trust-registry +# trust-registry: built with the VTA, TSP and fjall features the walkthrough +# needs (see Option B for the exact feature list). +curl -O https://download.firstperson.dev/trust-registry/latest/trust-registry chmod +x trust-registry && mv trust-registry /usr/local/bin/ ``` -#### Latest tagged release: VTI-Eucalyptus (older than the walkthrough) +#### Nightly builds (ahead of the walkthrough) -VTI-Eucalyptus predates the builds the walkthrough was verified on, so some prompts and outputs will differ from what it shows. Use the nightly builds above until VTI-Fig. +Builds from each project's `nightly` branch, published without checksums or signatures. They may be ahead of the walkthrough, so some prompts and outputs can differ from what it shows. Nightly builds are only kept for a week or two. If you use them, take every binary from the same night's builds, so the services all match each other. ```bash -curl -O https://download.firstperson.dev/vta/latest/vta +curl -O https://download.firstperson.dev/vta/nightly/vta chmod +x vta && mv vta /usr/local/bin/ -curl -O https://download.firstperson.dev/vtc/latest/vtc +curl -O https://download.firstperson.dev/vtc/nightly/vtc chmod +x vtc && mv vtc /usr/local/bin/ # pnm-server: the server build of PNM — secrets live in plaintext config # rather than an OS keyring, which a headless host has no access to. # Do not "correct" this back to the pnm/ path. -curl -O https://download.firstperson.dev/pnm-server/latest/pnm +curl -O https://download.firstperson.dev/pnm-server/nightly/pnm chmod +x pnm && mv pnm /usr/local/bin/ # cnm-server: the same server build of CNM, the community administrator's # tool, used from this box in Explore 03. Same rule: not the cnm/ path. -curl -O https://download.firstperson.dev/cnm-server/latest/cnm +curl -O https://download.firstperson.dev/cnm-server/nightly/cnm chmod +x cnm && mv cnm /usr/local/bin/ -curl -O https://download.firstperson.dev/mediator/latest/mediator +curl -O https://download.firstperson.dev/mediator/nightly/mediator chmod +x mediator && mv mediator /usr/local/bin/ -curl -O https://download.firstperson.dev/mediator/latest/mediator-setup +curl -O https://download.firstperson.dev/mediator/nightly/mediator-setup chmod +x mediator-setup && mv mediator-setup /usr/local/bin/ -curl -O https://download.firstperson.dev/did-hosting-daemon/latest/did-hosting-daemon +curl -O https://download.firstperson.dev/did-hosting-daemon/nightly/did-hosting-daemon chmod +x did-hosting-daemon && mv did-hosting-daemon /usr/local/bin/ -# trust-registry: built with the VTA, TSP and fjall features the walkthrough -# needs (see Option B for the exact feature list). -curl -O https://download.firstperson.dev/trust-registry/latest/trust-registry +curl -O https://download.firstperson.dev/trust-registry/nightly/trust-registry chmod +x trust-registry && mv trust-registry /usr/local/bin/ ``` @@ -202,7 +202,7 @@ chmod +x trust-registry && mv trust-registry /usr/local/bin/ The setup script installed Rust and the C/C++ build toolchain, so you can also build the binaries yourself. The DID Hosting UI build also needs Node.js, which that step installs. -The checkouts below default to the latest tagged release. Until VTI-Fig, check out `nightly` instead where a repo has that branch, to match what the [walkthrough](02-walkthrough.md) was verified on. +The checkouts below use the `VTI-Fig-RC-0` tag, which every repository here carries, so the source matches what the [walkthrough](02-walkthrough.md) was verified on. Check out `nightly` instead for the nightly branch. #### VTA, CNM, and PNM @@ -211,7 +211,7 @@ cd ~ mkdir fpp && cd fpp git clone https://github.com/OpenVTC/verifiable-trust-infrastructure.git cd verifiable-trust-infrastructure -git checkout VTI-Eucalyptus # latest tagged release, or 'git checkout nightly' for the nightly branch +git checkout VTI-Fig-RC-0 ``` ```bash @@ -230,7 +230,7 @@ cd ~ mkdir affinidi && cd affinidi git clone https://github.com/affinidi/affinidi-messaging-mediator.git cd affinidi-messaging-mediator -git checkout v0.42.0 # latest tagged release, or 'git checkout nightly' for the nightly branch +git checkout VTI-Fig-RC-0 ``` ```bash @@ -238,15 +238,13 @@ cargo install --path crates/affinidi-messaging-mediator --no-default-features -- cargo install --path crates/affinidi-messaging-mediator/tools/mediator-setup ``` -The mediator moved out of `affinidi-tdk-rs` into its own repository, which has no `VTI-Eucalyptus` tag; `v0.42.0` is its first release. - #### DID Hosting Daemon ```bash cd ~/affinidi git clone https://github.com/affinidi/affinidi-webvh-service.git cd affinidi-webvh-service -git checkout VTI-Eucalyptus # latest tagged release, or 'git checkout nightly' for the nightly branch +git checkout VTI-Fig-RC-0 ``` ```bash @@ -267,7 +265,7 @@ The default build of the registry has no VTA integration, so the feature list ma cd ~/affinidi git clone https://github.com/affinidi/affinidi-trust-registry-rs.git cd affinidi-trust-registry-rs -git checkout trust-registry-v0.26.0 # latest tagged release, or just stay on main (this repo has no nightly branch) +git checkout VTI-Fig-RC-0 ``` ```bash diff --git a/sysop/explore/02-walkthrough.md b/sysop/explore/02-walkthrough.md index 460b383..844b425 100644 --- a/sysop/explore/02-walkthrough.md +++ b/sysop/explore/02-walkthrough.md @@ -9,11 +9,11 @@ Stand up the full VTI stack — VTA, Mediator, DID Hosting Daemon, Trust Registr **Verified with:** -| Build | VTA Version | Mediator Version | DID Hosting Daemon Version | Trust Registry Version | VTC Version | -| --- | --- | --- | --- | --- | --- | -| Nightly, 2026-10-17 | 0.62.0 | 0.43.0 | 0.10.0 | 0.26.0 | 0.11.58 | +| Release | VTA | PNM | Mediator | DID Hosting | Trust Registry | VTC | +| --- | --- | --- | --- | --- | --- | --- | +| VTI-Fig-RC-0 | 0.87.2 | 0.66.2 | 0.56.0 | 0.12.0 | 0.32.0 | 0.35.2 | -**Verified on a nightly, not a release.** Nightly builds are only kept for a week or two, so these exact builds will soon be gone from the download server. This page will be re-verified on the upcoming VTI-Fig release, after which every guide in this repo tracks a coordinated release. +**Verified on a release candidate, by an automated run.** These are the `VTI-Fig-RC-0` builds that the `latest/` downloads in [Server Setup, Step 5](01-server-setup.md#step-5-install-service-binaries) serve. The wizards were driven through tmux on a fresh Ubuntu 26.04 server, and the browser and passkey screens (the DID Hosting Daemon's enrollment, and the VTC's claim, sign-in and signing set-up) through headless Chromium with a virtual passkey. Not tested with a hardware security key. This page will be re-verified on the final VTI-Fig release. ## Prerequisites @@ -33,7 +33,7 @@ The following values will be collected during setup. Save each one as prompted | 5a | SHA-256 digest (Trust Registry bundle) | Step 5 | | 5b | Trust Registry DID | Step 6 | | 6a | VTC DID | Step 6 | -| 6b | VTC Admin DID | Re-minting the install URL | +| 6b | VTC Admin DID | Optional CLI access to the VTC | ## Steps @@ -62,7 +62,7 @@ When prompted, use the values below. Replace `yourdomain.com` with your actual d | Log format: | Press **Enter** (default: **text**) | | Audit-log retention (days) [28]: | Press **Enter** (use default) | | Data directory [data/vta]: | Press **Enter** (use default) | -| Configure advanced server options (CORS, trusted proxy header, WebAuthn)? [y/N] | Press **Enter** (use default) | +| Configure advanced server options (CORS, trusted proxy CIDRs, WebAuthn)? [y/N] | Press **Enter** (use default) | | Seed storage backend: | Press **Enter** (default: Config file) | | Enable hardened configuration? (encrypts the fjall store...) y/N | Press **Enter** (use default) | @@ -74,7 +74,7 @@ When prompted, use the values below. Replace `yourdomain.com` with your actual d | Trust context for the mediator DID [mediator]: | Press **Enter** (use default) | | Mediator URL: | `https://mediator.yourdomain.com/mediator/v1` | | Mediator WebSocket URL: [wss://mediator.yourdomain.com/mediator/v1/ws] | Press **Enter** (use default) | -| mediator DID URL [http://mediator.yourdomain.com/mediator/v1]: | `https://dids.yourdomain.com/mediator` | +| mediator DID URL [https://mediator.yourdomain.com/mediator/v1]: | `https://dids.yourdomain.com/mediator` | | Mediator hostname for vsock-bridged TEE deployments (leave empty to skip): | Press **Enter** (leave empty) | | Upstream routing-key DIDs for this mediator (comma-separated, leave empty to skip): | Press **Enter** (leave empty) | | Automatically provision ACL on mediator after connecting? y/N | Press **Enter** (use default) | @@ -88,6 +88,8 @@ When prompted, use the values below. Replace `yourdomain.com` with your actual d | DID creation mode: | Press **Enter** (default: **Simple — VTA creates keys and document**) | | Make this DID portable (can move to a different domain later)? [Y/n]: | Press **Enter** (use default) | | Number of pre-rotation keys [1]: | Press **Enter** (use default) | +| Present this VTA's DIDs as: | Press **Enter** (default: **did:webvh**) | +| List the did:scid alias in alsoKnownAs, so peers can also use that form? [Y/n] | Press **Enter** (use default) | The wizard then displays a 24-word mnemonic. @@ -107,10 +109,13 @@ When all prompts are complete, the wizard prints: Setup complete. Config: config.toml Data dir: data/vta - Name: Ada VTA - URL: https://vta.ada.ic3.dev - VTA DID: did:webvh:...:dids.yourdomain.com:vta - Mediator DID: did:webvh:...:dids.yourdomain.com:mediator + Name: My VTA + URL: https://vta.yourdomain.com + VTA DID: did:webvh:...:dids.yourdomain.com:vta + Mediator: did:webvh:...:dids.yourdomain.com:mediator + + ACL is empty. Seed the first admin: + ... ``` > **⚠️ SAVE THESE** (1b, 1c) @@ -118,7 +123,9 @@ Setup complete. > From the summary above: > > - **VTA DID** (1b): the `VTA DID:` line -> - **Mediator DID** (1c): the `Mediator DID:` line +> - **Mediator DID** (1c): the `Mediator:` line + +The summary goes on to explain how to seed the first admin. Step 2 does that with `vta import-did`, so you can ignore the `bootstrap-admin` option it also lists. ### Step 2: Connect PNM to VTA @@ -132,16 +139,26 @@ When prompted: | Prompt | Action | | --- | --- | | What would you like to do?: | Choose **Connect to an existing non-TEE VTA** | -| Name for this VTA: | Enter a name for this VTA | -| VTA DID: | Paste the **VTA DID** from 1b | -PNM will output a `vta import-did` command; copy it: +Before it asks anything else, PNM generates its admin identity and prints a **Next steps** list. Copy the `vta import-did` command from it: ```text -vta import-did --did did:key:z6Mk... --role admin + b. Or, on an already-running VTA: + vta import-did --did did:key:z6Mk... --role admin ``` -Then run that command in the `~/vta` directory: +The list says the command is for an already-running VTA, but it works just as well on this VTA, which is not running yet. Ignore the other options in the list (`vta setup --from setup.toml` and `pnm setup continue`); they belong to other setup paths. + +Then answer the remaining prompts: + +| Prompt | Action | +| --- | --- | +| Name for this VTA: | Enter a name for this VTA | +| VTA DID (leave blank to finish setup later): | Paste the **VTA DID** from 1b | + +PNM then tries to reach the VTA and prints a few `did:webvh resolution fetch failed ... 502` errors and a `502 Bad Gateway` page. That is expected: nothing is serving the VTA's DID yet (the DID Hosting Daemon starts in Step 4). PNM stores the session anyway and prints the `vta import-did` command again. + +Run that command in the `~/vta` directory: ```bash cd ~/vta @@ -177,7 +194,7 @@ mediator-setup | Prompt | Action | | --- | --- | | Decide whether the VTA should...: | Choose **Pick up pre-provisioned mediator (offline export)** | -| Which VTA context should the admin credential live in?: | `mediator` | +| Which VTA context should the admin credential live in?: | Press **Enter** (default: `mediator`) | The wizard outputs: @@ -205,6 +222,9 @@ vta contexts reprovision --id mediator --recipient bootstrap-request.json --out The command outputs the bundle details: ```text +Minted fresh admin key 'm/26'/2'/1'/3'' in context 'mediator' +Created ACL entry for did:key:z6Mk... in context 'mediator' + ╔══════════════════════════════════════════════════════════════╗ ║ Context provision bundle (sealed — hand off armored output) ║ ╚══════════════════════════════════════════════════════════════╝ @@ -219,11 +239,14 @@ Armored bundle written to bundle.armor Bundle-Id: Producer DID: did:key:z6Mk... SHA-256 digest: + +Communicate the digest to the recipient out-of-band so they can run: + pnm bootstrap open --bundle --expect-digest ``` > **⚠️ SAVE THIS** (3a) > -> Save the **SHA-256 digest** — you will paste it in the Mediator session for OOB verification. +> Save the **SHA-256 digest** — you will paste it in the Mediator session for OOB verification. Ignore the `pnm bootstrap open` command printed under it: the mediator wizard checks the digest itself. Move the bundle to the mediator directory: @@ -238,7 +261,7 @@ mv ~/vta/bundle.armor ~/mediator/ | Prompt | Action | | --- | --- | | Enter a path to bundle.armor, or paste its contents. | `/root/mediator/bundle.armor` | -| Type the SHA-256 digest your VTA admin showed you. Leave blank to skip the OOB check. | Paste the **SHA-256 digest** (3a) | +| Type the SHA-256 digest your VTA admin showed you on a separate channel. It is required. | Paste the **SHA-256 digest** (3a) | The wizard completes the VTA integration and displays: @@ -255,7 +278,7 @@ Bundle opened successfully — sealed handoff complete. did:webvh:...:dids.yourdomain.com:vta ── Bundle contents ───────────────────────────────────────── - Keys: 3 signing + 1 key-agreement + Keys: 2 signing + 1 key-agreement DID document: included (matches exported DID) did.jsonl: included (will be written next to mediator.toml) @@ -280,7 +303,7 @@ Press **Enter** to continue. | --- | --- | | Configure transport security: | Choose **No SSL (use TLS-terminating proxy)** (default) | | Configure authentication tokens: | Choose **Generate a fresh JWT signing key (recommended)** (default) | -| Network access posture: | Choose **Open network** (default) | +| Network access posture: | Choose **Open network (default)**. The cursor may start on **Closed network**, so move up to it before pressing Enter | | CORS policy: | Choose **Allow any origin** | **Database:** @@ -376,7 +399,7 @@ The recipe runner prints: [setup-recipe:offline-prepare] seed stored in configured secret backend ``` -Nothing needs saving from this output. The `client_did` is the ephemeral bootstrap key, not the admin DID. +Nothing needs saving from this output. The `client_did` is the ephemeral bootstrap key, not the admin DID. The runner then prints a short **Next steps** list (ferry the request to the VTA, seal it, edit the recipe, re-run); the rest of this step walks through exactly that. Move the bootstrap request to the VTA directory and create the WebVH context: @@ -410,11 +433,15 @@ Integration provisioned — sealed bundle written to bundle.armor Secrets: 1 Outputs: 1 SHA-256 digest: + +Communicate the digest to the integration's operator out-of-band so they can + verify the bundle on first boot: + pnm bootstrap open --bundle --expect-digest ``` > **⚠️ SAVE THESE** (4a, 4b) > -> - Save the **SHA-256 digest** (4a) — you will put it in the recipe for phase 2. +> - Save the **SHA-256 digest** (4a) — you will put it in the recipe for phase 2. Ignore the `pnm bootstrap open` command printed under it: the recipe's `expect_digest` does that check. > - Save the **Integration DID** (4b) — this is the DID Host DID you will register with the VTA. Move the bundle to the dids directory: @@ -486,11 +513,14 @@ cd ~/dids did-hosting-daemon invite --role admin --did ``` -The command outputs a one-time use URL and a claim code: +The command outputs a one-time use URL and a claim code, valid for 24 hours: ```text + Send these two over DIFFERENT channels (e.g. the link by email, + the code by chat or phone). Either one alone redeems nothing. + Enrollment URL: - https://dids.yourdomain.com/enroll?token=... + https://dids.yourdomain.com/enroll#token=... Claim code: XXXX-XXXX-XXXX @@ -503,6 +533,13 @@ cd ~/dids nohup did-hosting-daemon > log.txt 2>&1 & ``` +The daemon's `log.txt` fills with warnings on this box, none of which stop anything in this walkthrough: + +- `DID not yet resolvable — retrying` for the mediator DID, until you upload its log below. +- `request from a peer outside server.trusted_proxy_cidrs claims Forwarded / X-Forwarded-Host; ignoring the header`. Nginx sends that header, and `trusted_proxy_cidrs` in the daemon's `config.toml` is empty, so the daemon falls back to `public_url`, which is correct here. +- `Wallet sign-in is not set up`, with a list of services to add to the daemon's DID document. This walkthrough signs in with a passkey, not a wallet, so you can leave the DID as it is. +- `bootstrap_domains empty — falling back to legacy public_url host`, which gives the same result. + Visit the Enrollment URL in a browser, enter the claim code, then save a passkey when prompted. > The enrollment URL is **single-use**. If you missed it or the passkey prompt failed, see [DID Enrollment URL is single-use](#did-enrollment-url-is-single-use). @@ -536,6 +573,8 @@ cd ~/mediator nohup mediator > log.txt 2>&1 & ``` +The mediator's log shows `VTA integration DEGRADED — booted from LAST-KNOWN CACHED secrets`. That is expected: the VTA is not running yet, so the mediator starts from the keys in its sealed bundle and refreshes them once it can reach the VTA. It also warns that every new DID accepts messages from anyone (that is the **Open network** posture you chose), that inter-mediator relay is enabled implicitly, that no `local_endpoints` are set, and that `server.trust_xff_cidrs` is empty. None of these matter on this box. + Wait one minute for the mediator to fully initialize, then start the VTA: ```bash @@ -550,7 +589,7 @@ cd ~/vta pnm did-mgmt servers add --id did-hosting-daemon --did ``` -## Verification +**Check the DID Hosting Daemon:** Visit the DID Hosting Manager admin panel and confirm you can log in: @@ -725,14 +764,17 @@ When prompted, use the values below. Replace `yourdomain.com` with your actual d | Prompt | Action | | --- | --- | | Config file path [config.toml]: | Press **Enter** (use default) | -| VTC base URL: | `https://vtc.yourdomain.com` | -| VTA DID: | Paste the **VTA DID** from 1b | +| VTC base URL (no trailing slash, no /v1, e.g. `https://vtc.example.com`): | `https://vtc.yourdomain.com` | +| VTA DID (e.g. `did:webvh:vta.example.com:abc`): | Paste the **VTA DID** from 1b | | Context name at the VTA for this community [default]: | Press **Enter** (use default) | | Trust registry DID (blank for none): | Paste the **Trust Registry DID** from 5b (see note below) | | Second administrator DID (blank for none): | Press **Enter** (use default) | | Run as a single-administrator community? [y/N] | Select **y** | -| DIDComm messaging [Use the VTA's mediator]: | Press **Enter** (use default) | +| Messaging mediator (TSP / DIDComm): | Press **Enter** (default: **Use the VTA's mediator**) | | Transports (space to toggle, enter to confirm): | Press **Enter** (use default: TSP & DIDComm) | +| Provisioning transport: | Press **Enter** (default: **Automatic (TSP → DIDComm → REST)**) | + +The wizard prints a paragraph of explanation before most of these prompts. The prompts themselves are the lines ending in a colon or `[y/N]`. > The registry DID you give the wizard is used for one thing only: a `TrustRegistry` referral in the VTC's DID document, so that clients holding the community's DID can find its registry. It is **not** copied into the VTC's own configuration. The setting that makes the VTC itself talk to the registry is added to `config.toml` below, before the VTC starts. @@ -746,19 +788,26 @@ Authorize this ephemeral DID at the VTA before continuing: DID: did:key:z6Mk... Context: default -Run on a machine with PNM admin access to the VTA (did:webvh:QmTR...:dids.example.com:vta): +Run on a machine with PNM admin access to the VTA (did:webvh:...:dids.yourdomain.com:vta): pnm contexts create --id default --name "VTC" \ - --admin-did did:key:z6Mk... --admin-expires 1h + --admin-did did:key:z6Mk... --admin-expires 1h --admin-handoff + + If the context already exists, grant admin access to the ephemeral DID instead: + + pnm acl create --did did:key:z6Mk... \ + --role admin --contexts default --expires 1h --handoff ``` -In another terminal, run that command: +In another terminal, run the first command exactly as the wizard printed it, including `--admin-handoff`: ```bash pnm contexts create --id default --name "VTC" \ - --admin-did did:key:z6Mk... --admin-expires 1h + --admin-did did:key:z6Mk... --admin-expires 1h --admin-handoff ``` +The `default` context does not exist yet on a fresh VTA, so you do not need the `pnm acl create` alternative. + Then switch back to the terminal running the wizard: | Prompt | Action | @@ -769,8 +818,9 @@ Then switch back to the terminal running the wizard: | Prompt | Action | | --- | --- | +| DID method of the community's own DID: | Press **Enter** (default: **did:webvh**) | | Where should the VTC DID be published?: | Press **Enter** (use default: did-hosting-daemon) | -| WebVH path (blank → server-assigned): | `vtc` | +| did:webvh path (blank → server-assigned) []: | `vtc` | **Seed storage backend:** @@ -781,29 +831,36 @@ The wizard then displays: ```text ✅ VTC setup complete. -VTC DID: did:webvh:QmR2...:vtc.example.com +VTC DID: did:webvh:...:dids.yourdomain.com:vtc Admin DID: did:key:z6Mk... Config: config.toml Data dir: data +Single-administrator mode: on ([acl] single_admin_mode in config.toml; VTI-APV-022) + +Admin key: data/keys/admin-key.json (owner-only; needed for CLI access as the admin DID — ...) ``` > **⚠️ SAVE THESE** (6a, 6b) > > - Save the **VTC DID** (6a), the `VTC DID:` line. It goes into the Trust Registry's `ADMIN_DIDS` below. -> - Save the **VTC Admin DID** (6b), the `Admin DID:` line. It is the `did:key` the install URL binds your passkey to, and you need it to mint a new install URL if this one expires (see [VTC install URL expired or already used](#vtc-install-url-expired-or-already-used)). - -| Prompt | Action | -| --- | --- | -| Display the admin private key now? It's needed for CLI access and is shown only once [y/N] | Press **Enter** (use default) | +> - Save the **VTC Admin DID** (6b), the `Admin DID:` line. This is a CLI identity, **not** the administrator the install URL creates. The install URL makes the `did:key` of the passkey you register the first administrator. The Admin DID gets no access unless you grant it yourself, which the wizard explains at the end (see the note after the install URL). ```text Install URL (one-shot, 15 min TTL): - https://vtc.example.com/admin/install?token=eyJ0... + https://vtc.yourdomain.com/admin/install?token=eyJ0... Claim code (required at claim time): NDKH... + +... + +The admin DID above is not made an administrator by the install URL. +To grant it (CLI access, or instead of a browser), with the daemon stopped: + vtc --config config.toml acl add --did did:key:z6Mk... --role admin --label "first admin" ``` +The install URL expires 15 minutes after it is printed, so do the rest of this step without a break. The `acl add` command is optional, and this walkthrough does not use it. The Admin DID's private key is in `data/keys/admin-key.json`; if you do not plan to use the CLI as that DID, you can leave it there. + **Finish and start the Trust Registry:** Now that the VTC DID exists, put it in the registry's `.env` from Step 5: @@ -826,18 +883,20 @@ cd ~/trust-registry nohup trust-registry > log.txt 2>&1 & ``` -Give it a few seconds, then check it: +Give it about half a minute, then check it: ```bash curl -s http://127.0.0.1:3232/health ``` -A healthy registry answers `{"status":"OK"}`. A `degraded` status means the mediator refused the ACL-mode update; `detail` says why. Then confirm from the log that it fetched its identity from the VTA and authenticated to the mediator: +A healthy registry answers `{"status":"OK","writes":"ok"}`. In its first seconds it can answer `degraded`, with `writes` `unavailable` and `the mediator connection dropped; reconnecting` in `detail`: the mediator closes the registry's first connections as duplicates (`replaced by a newer connection` in the log) while it settles. Wait a few seconds and check again. A `degraded` status that persists means something else is wrong; `detail` says what, for example that the mediator refused the ACL-mode update. Then confirm from the log that it fetched its identity from the VTA and authenticated to the mediator: ```bash grep -iE 'vta|mediator' ~/trust-registry/log.txt ``` +Look for `Connected to VTA (DIDComm)`, `Loaded fresh secrets from VTA` and `receiving from the mediator`. Warnings about `environments.json` and a `WebSocket channel not set` for the registry's admin `did:key` are expected on this box. + The registry's DID is also listed at `https://dids.yourdomain.com/dids`, published by the DID Hosting Daemon under the `trust-registry` path. **Start the VTC:** @@ -849,11 +908,13 @@ cd ~/vtc vi config.toml ``` -Find the `[registry]` section (add it if it is not there) and add the following line under it: +The wizard already wrote a `[registry]` section with the probe and timeout settings. Add a `did` line directly under its header (if the section is missing, add the header too): ```toml [registry] did = "" +health_probe_interval_seconds = 60 +# ...the other keys the wizard wrote stay as they are ``` The DID is enough on its own. The VTC reaches the registry over whichever transport both DID documents advertise, TSP first and then DIDComm; a `url` key is only needed for a REST-only registry. @@ -865,16 +926,18 @@ cd ~/vtc nohup vtc > log.txt 2>&1 & ``` -Open the **Install URL** in a browser and paste the **Claim code** in the input box on the browser page. - -You are then prompted to save a passkey, so go ahead and save it. +Open the **Install URL** in a browser. The page is titled **Claim administrator access**. Enter the **Claim code** and press **Continue**. -Ignore the **Claim Admin Passkey** screen for now. This is currently not used. +You are then prompted to save a passkey, so go ahead and save it. The page shows **Admin set up ✅** with your new administrator DID, which is your passkey's own `did:key`. Navigate to `https://vtc.yourdomain.com/admin` and sign in with your new passkey. +Straight after you sign in, the console shows **Set up signing**. Every administrator action in the console is a signed document, and this step gives your browser the key it signs them with, so the console is unusable until you complete it. Keep or change the suggested name under **Name this browser**, press **Set up signing with your passkey**, then **Use passkey** in the **Confirm with your passkey** dialog, and confirm with your passkey. The key lasts up to 30 days, and the console reminds you to renew it before then. It belongs to this browser and this address only, so another browser, profile or private window sets up its own. + You now have access to the VTC Admin Dashboard and can set up access for the community manager(s) of the VTC. +Open the dashboard's **Recognition** page and check that the trust registry's status is **active**. + ## Next Put a GitHub organization under the community: [03 — Verifiable Git Infrastructure](03-verifiable-git-infrastructure.md). @@ -906,9 +969,11 @@ nohup did-hosting-daemon > log.txt 2>&1 & Then visit the new Enrollment URL in a browser and save a passkey when prompted. +This only works while the DID has no passkey yet. If the first enrollment did succeed, the command refuses with `already has a login passkey; it adds another from its own session`: sign in with the passkey you have and add another from inside the console. + ### VTC install URL expired or already used -The install URL from `vtc setup` is single-use and expires 15 minutes after it is minted. If the browser shows **Install URL expired or already used**, mint a fresh one for the same admin DID. The command opens the VTC's store directly, which it can only do while the daemon is stopped: +The install URL from `vtc setup` is single-use and expires 15 minutes after it is minted. If the browser shows **Install URL expired or already used**, mint a fresh passkey invitation. The command opens the VTC's store directly, which it can only do while the daemon is stopped: **1.** Stop the running VTC: @@ -916,11 +981,11 @@ The install URL from `vtc setup` is single-use and expires 15 minutes after it i kill $(pgrep -x vtc) ``` -**2.** Mint a new install URL for the **VTC Admin DID** (6b). If you did not save it, it is the `Admin DID:` line from the `vtc setup` summary, and also the DID in the `vtc --config config.toml acl add --did ...` hint the wizard printed at the end. The default lifetime is 15 minutes; `--ttl` sets it in seconds: +**2.** Mint a new install URL. Leave out `--did`: without it the command makes a passkey invitation, and the passkey you register becomes the administrator, as with the first URL. With `--did` it makes a *wallet* invitation instead, which the holder of that DID claims by signing with their wallet, not with a browser passkey. The default lifetime is 15 minutes; `--ttl` sets it in seconds: ```bash cd ~/vtc -vtc --config config.toml admin invite --did --ttl 3600 +vtc --config config.toml admin invite --ttl 3600 ``` **3.** Restart the VTC: @@ -929,7 +994,9 @@ vtc --config config.toml admin invite --did --ttl 3600 nohup vtc > log.txt 2>&1 & ``` -Then open the new install URL, enter the new claim code, and save a passkey as before. The command also grants the DID its admin ACL entry if the first install was never claimed, so nothing else needs repairing. +Then open the new install URL, enter the new claim code, and save a passkey as before. The daemon writes the new administrator's ACL entry when the claim completes, so nothing else needs repairing. The install page may still say the URL expires after 15 minutes; `--ttl` is what applies. + +Because the invitation was written while the daemon was stopped, the console then lists it under **Actions** as an offline change for every administrator to acknowledge. That is expected. Once you have an administrator, you can invite another without stopping the daemon, from the console's **Access** → **Invite admin**. ### Trust Registry context already exists diff --git a/sysop/explore/03-verifiable-git-infrastructure.md b/sysop/explore/03-verifiable-git-infrastructure.md index 7bd0d78..295f05f 100644 --- a/sysop/explore/03-verifiable-git-infrastructure.md +++ b/sysop/explore/03-verifiable-git-infrastructure.md @@ -408,7 +408,7 @@ GitHub's own **Verified** badge is a separate axis. The commit is validly signed The bridge is released often, and most releases exist to track the VTA, the mediator and the Trust Task versions the VTC speaks, so a bridge left behind stops working against a newer stack before anything in its own feature set changes. The versions in `cargo search vgi-bridge`, the [releases page](https://github.com/OpenVTC/verifiable-git-infrastructure/releases) and the newest tag can briefly disagree while a release is being built; the release page is the one with the tarball. Verified with the upgrade from 0.20.0 to 0.30.0 on 2026-11-02. -Before upgrading, check the box's VTA is new enough for the release: since bridge 0.26.0 the bridge pages its context's keys and app-state with Trust Task versions that need vta-service 0.67 or later ([BRIDGE.md, *The VTA's version*](https://github.com/OpenVTC/verifiable-git-infrastructure/blob/main/docs/BRIDGE.md)). The nightly builds [Server Setup](01-server-setup.md) installs are. Everything under `/root/vgi-bridge` carries over: the configuration, the VTA credential, the bridge's DID and the state it keeps in the VTA. Nothing is set up again. +Before upgrading, check the box's VTA is new enough for the release: since bridge 0.26.0 the bridge pages its context's keys and app-state with Trust Task versions that need vta-service 0.67 or later ([BRIDGE.md, *The VTA's version*](https://github.com/OpenVTC/verifiable-git-infrastructure/blob/main/docs/BRIDGE.md)). The VTI-Fig-RC-0 builds [Server Setup](01-server-setup.md) installs are: they carry vta-service 0.87.2. VGI tags the bridge release that goes with each VTI release with the same name, so on that box the matching bridge is the `VTI-Fig-RC-0` tag, which is bridge 0.37.0. Everything under `/root/vgi-bridge` carries over: the configuration, the VTA credential, the bridge's DID and the state it keeps in the VTA. Nothing is set up again. **1. Download and verify the release**, as in [Step 3](#step-3-install-the-bridge), into a fresh directory: