From fbb8833f3db11371ad29ade2090269ced7930e1a Mon Sep 17 00:00:00 2001 From: mnovak Date: Wed, 25 Nov 2026 12:34:46 +0100 Subject: [PATCH] [repo] Lab capture: lab root back on F:\Akce\DomiStream-lab (move to E: cancelled) --- docs/CLEAN_ROOM.md | 2 +- docs/LAB_CAPTURE.md | 24 +++++++++++------------- tools/lab-relay/src/config.rs | 4 ++-- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/docs/CLEAN_ROOM.md b/docs/CLEAN_ROOM.md index 94d06c3..06f5726 100644 --- a/docs/CLEAN_ROOM.md +++ b/docs/CLEAN_ROOM.md @@ -12,7 +12,7 @@ GPL-licensed implementation. This file says what may be read, what may not, and | [Moonshine](https://github.com/hgaiser/moonshine) | BSD-2-Clause | May be read. Facts taken are logged below. Code is not copied; if a snippet is ever borrowed, it keeps Moonshine's copyright line and licence text in the file that holds it. | | RFCs and standards (RTP RFC 3550, RTSP RFC 2326, SDP RFC 4566, Opus RFC 6716 / RFC 7845, AES FIPS 197, GCM/CBC NIST SP 800-38D/38A, PKCS #1 RFC 8017, X.509 RFC 5280) | open standards | Read freely. | | Crate docs (docs.rs, crates.io, crate READMEs) | per crate | Read freely. | -| Our own measurements | ours | Captures through our own relay ([tools/lab-relay](../tools/lab-relay)). Mark allowed **one** capture on his PC (answer 16, 2026-11-25), done exactly as [LAB_CAPTURE.md](LAB_CAPTURE.md) says; never his TV, never 192.168.100.217. Recordings stay local, on E: under `E:\build\play-remotely\lab\`, out of git; only facts and test vectors derived from them go in, with the date and setup. | +| Our own measurements | ours | Captures through our own relay ([tools/lab-relay](../tools/lab-relay)). Mark allowed **one** capture on his PC (answer 16, 2026-11-25), done exactly as [LAB_CAPTURE.md](LAB_CAPTURE.md) says; never his TV, never 192.168.100.217. Recordings stay on F: under `F:\Akce\DomiStream-lab\`, out of git; only facts and test vectors derived from them go in, with the date and setup. | | Official Sunshine and Moonlight PC **binaries** in that capture | GPL-3.0 (we only run them) | Black-box peers: run, observe their traffic, their `--help` output, their own logs and the files/registry keys they write. Never open their source, never disassemble or decompile them. | | READMEs and wikis of forbidden projects | n/a | For facts only (licence, release notes, compatibility statements). Never their source files. | diff --git a/docs/LAB_CAPTURE.md b/docs/LAB_CAPTURE.md index 3cd468e..82e9b9d 100644 --- a/docs/LAB_CAPTURE.md +++ b/docs/LAB_CAPTURE.md @@ -11,16 +11,16 @@ the files they write. We never open their source, never disassemble them ([CLEAN Hard limits: - One stream of the **Desktop** app, no game. Nothing touches the TV or 192.168.100.217. - Every listening socket is on loopback: Sunshine on `127.0.0.2`, the relay on `127.0.0.1`. -- Lab keys and credentials live only under `E:\build\play-remotely\lab\`, are never printed, never on a command line that +- Lab keys and credentials live only under `F:\Akce\DomiStream-lab\`, are never printed, never on a command line that survives, never in git, and are deleted at the end. -- Recordings stay under `E:\build\play-remotely\lab\captures\`, out of git. Only derived facts and test vectors go into +- Recordings stay under `F:\Akce\DomiStream-lab\captures\`, out of git. Only derived facts and test vectors go into the docs. - One UAC prompt in total. ## 0. Layout ``` -E:\build\play-remotely\lab\ +F:\Akce\DomiStream-lab\ downloads\ Sunshine MSI and the Moonlight portable zip, as downloaded (untrusted until the sha256 matches) moonlight\ the extracted Moonlight portable folder keys\ lab-only TLS material (ACL: Mark's account + SYSTEM): Sunshine lab cert/key, Moonlight lab cert/key @@ -30,10 +30,8 @@ E:\build\play-remotely\lab\ Our scripts and the relay come from this repo (`tools/lab-relay/`) and run from it, never from `downloads\`. -The lab root is on E: (F: is over 90 % full). Mark's "recordings stay on F:" meant local and out of git; the build lead -tells the orchestrator they are on E:. The relay is built in the worktree `E:uild\play-remotely\DomiStream-wt-lab` -with `TEMP`/`TMP` set to `E:uild\play-remotely mp` for that command, `-j 2`, and only while CPU, RAM, D: and E: -are all below 90 % (DomiStream CLAUDE.md). +The relay is built with `-j 2` and only while CPU, RAM and every drive the build writes to are below 90 % +(DomiStream CLAUDE.md). ## 1. Step (a): the old Sunshine is gone (read-only) @@ -60,7 +58,7 @@ sha256 `1d7fed8beecd5889dc7ff14cf9f42d6d38f37c3066c13c6c2a5f4e91847e0ccf`, The same digest is checked twice: against this pin and against the release API's `digest` field fetched at download time. A mismatch on either = delete the file and stop. -Download (not elevated): `Invoke-WebRequest -Uri -OutFile E:\build\play-remotely\lab\downloads\Sunshine-Windows-AMD64-installer.msi`, +Download (not elevated): `Invoke-WebRequest -Uri -OutFile F:\Akce\DomiStream-lab\downloads\Sunshine-Windows-AMD64-installer.msi`, then `Get-FileHash -Algorithm SHA256`. Nothing is run from `downloads\` before the hash matches. **Why one elevated script, not a bare `msiexec`:** Sunshine's first start must already be bound to loopback, and @@ -69,7 +67,7 @@ on all interfaces with no credentials. So we start **one** elevated PowerShell ( with our script `tools/lab-relay/scripts/lab-install.ps1`). That is the one UAC prompt ("Windows PowerShell", publisher Microsoft Windows). Inside it, without further prompts: -1. `msiexec /i /qn /norestart /l*v E:\build\play-remotely\lab\captures\msiexec.log` (quiet; elevated already). +1. `msiexec /i /qn /norestart /l*v F:\Akce\DomiStream-lab\captures\msiexec.log` (quiet; elevated already). 2. `Stop-Service SunshineService` as soon as the MSI returns (the MSI starts it; until our config is in, it has no credentials, so nobody can pair or call its API). 3. Write `C:\Program Files\Sunshine\config\sunshine.conf` with only these lines: @@ -84,8 +82,8 @@ publisher Microsoft Windows). Inside it, without further prompts: lan_encryption_mode = 1 wan_encryption_mode = 1 min_log_level = debug - pkey = E:/build/play-remotely/lab/keys/sunshine-lab-key.pem - cert = E:/build/play-remotely/lab/keys/sunshine-lab-cert.pem + pkey = F:/Akce/DomiStream-lab/keys/sunshine-lab-key.pem + cert = F:/Akce/DomiStream-lab/keys/sunshine-lab-cert.pem ``` Forward slashes in paths: how the config parser treats backslashes is not documented. Encryption mode 1 ("if the client supports it") rather than 2: if Moonlight PC lacks one kind of encryption, a @@ -115,7 +113,7 @@ so they expose nothing. Changing them needs admin and is left to Arena Day 1. **Pin** (release API, S-19): `v6.2.0` (2026-10-04), `MoonlightPortable-x64-6.2.0.zip`, 37,242,232 bytes, sha256 `6f91d268b41ed5ca8066d9d7578dc403b8db190991ff48f00b1700465f8f7ebf`, `https://github.com/moonlight-stream/moonlight-qt/releases/download/v6.2.0/MoonlightPortable-x64-6.2.0.zip`. -Download to `downloads\`, check the hash (pin and API digest), extract to `E:\build\play-remotely\lab\moonlight\`. +Download to `downloads\`, check the hash (pin and API digest), extract to `F:\Akce\DomiStream-lab\moonlight\`. No installer, no admin. Before its first start we snapshot (names only) the `moonlight\` folder tree and the key names under @@ -235,7 +233,7 @@ re-encrypted with test keys generated in the test). 5. Keep `secrets\sunshine-lab.cred` until Arena's Day 1 takeover rotates the credentials into Custos, then delete it. 6. Delete `downloads\Moonlight*.zip`. Keep the Sunshine MSI (Arena Day 1 pins the same version). 7. Sunshine **stays installed**, bound to 127.0.0.2, ready for Arena's Day 1 takeover. -8. The recordings stay on E: until the facts are in PROTOCOL.md and QA has its vectors; then they are deleted on the +8. The recordings stay on F: until the facts are in PROTOCOL.md and QA has its vectors; then they are deleted on the build lead's word. ## 6. If something fails diff --git a/tools/lab-relay/src/config.rs b/tools/lab-relay/src/config.rs index a49b7c8..e22a46b 100644 --- a/tools/lab-relay/src/config.rs +++ b/tools/lab-relay/src/config.rs @@ -7,9 +7,9 @@ use std::time::Duration; use crate::record::Protocol; /// Where recordings go unless told otherwise. -pub const DEFAULT_CAPTURE_DIR: &str = r"E:\build\play-remotely\lab\captures"; +pub const DEFAULT_CAPTURE_DIR: &str = r"F:\Akce\DomiStream-lab\captures"; /// Where lab keys live unless told otherwise. -pub const DEFAULT_KEY_DIR: &str = r"E:\build\play-remotely\lab\keys"; +pub const DEFAULT_KEY_DIR: &str = r"F:\Akce\DomiStream-lab\keys"; /// Transport of a relayed port. #[derive(Clone, Copy, Debug, PartialEq, Eq)]