From 9476e6f3a2142c841d775c6884fa6116417226a6 Mon Sep 17 00:00:00 2001 From: Jose Lago Date: Tue, 25 Aug 2026 20:02:21 +0200 Subject: [PATCH] docs: document key-based SSH auth + port-forward tunnel for the VM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Key auth is now set up (id_ed25519 in APPE@68.210.96.53 authorized_keys); passwordless login verified. - Added the convivo-vm alias and a ready-to-copy ssh -L tunnel command for reaching the deployed stack (apps :3000/:3001, sidecar :3002, Kong :54321, Postgres :54322, Studio :54323) from a laptop. Co-authored-by: Stephan Charles Co-authored-by: Amelia Hernandez Co-authored-by: Markus Franz Co-authored-by: Sabrina Hota Co-authored-by: Nilüfer Doğan --- docs/deployment.md | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index 07b7d60..45a1d1c 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -43,11 +43,41 @@ Decoded JSON: ## Connecting +**Key-based auth is set up** (the developer's `~/.ssh/id_ed25519` public key is +in `APPE@68.210.96.53:~/.ssh/authorized_keys`). On a machine with that key, no +password is needed: + +```bash +ssh APPE@68.210.96.53 +# or, with the `convivo-vm` alias in ~/.ssh/config: +ssh convivo-vm +``` + +Password fallback (if the key is unavailable): + ```bash ssh APPE@68.210.96.53 # password: ***REMOVED*** ``` -> **Security note:** this is a live credential committed to the repository for -> convenience. For a real deployment, prefer **SSH key authentication** and -> rotate this password; treat the repo as readable by anyone with access. +### Port-forward tunnel (access the stack from a laptop) + +The full stack runs on the VM. To reach it from a local machine, forward the +service ports over SSH (no password needed with the key above): + +```bash +ssh -N -L 3000:127.0.0.1:3000 -L 3001:127.0.0.1:3001 -L 3002:127.0.0.1:3002 \ + -L 54321:127.0.0.1:54321 -L 54322:127.0.0.1:54322 -L 54323:127.0.0.1:54323 \ + -o ServerAliveInterval=30 -o ServerAliveCountMax=3 convivo-vm +``` + +Then open `http://localhost:3000` (attendee), `http://localhost:3001` (admin), +`http://localhost:54323` (Studio, `postgres`/`postgres`), and +`postgresql://postgres:postgres@localhost:54322/postgres`. The apps proxy their +Supabase calls to Kong over the shared Docker network, so only the app ports are +needed for the UI; `54321`/`54322`/`54323` are for direct API/DB/Studio access. + +> **Security note:** the password above is a live credential committed to the +> repository for convenience. Key-based auth is the preferred path; rotate the +> password if the repo is ever exposed, and treat the repo as readable by anyone +> with access.