[repo] Lab capture: lab root moves to E:\build\play-remotely\lab (F: is full); build rule and TLS fallback noted

This commit is contained in:
2026-11-25 12:32:11 +01:00
parent 26ce712e82
commit 8b968be489
3 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -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 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. |
| 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. |
| 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. |
+15 -9
View File
@@ -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 `F:\Akce\DomiStream-lab\`, are never printed, never on a command line that
- Lab keys and credentials live only under `E:\build\play-remotely\lab\`, are never printed, never on a command line that
survives, never in git, and are deleted at the end.
- Recordings stay under `F:\Akce\DomiStream-lab\captures\`, out of git. Only derived facts and test vectors go into
- Recordings stay under `E:\build\play-remotely\lab\captures\`, out of git. Only derived facts and test vectors go into
the docs.
- One UAC prompt in total.
## 0. Layout
```
F:\Akce\DomiStream-lab\
E:\build\play-remotely\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,6 +30,11 @@ F:\Akce\DomiStream-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).
## 1. Step (a): the old Sunshine is gone (read-only)
Mark has uninstalled it himself. We only check, changing nothing:
@@ -55,7 +60,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 <url> -OutFile F:\Akce\DomiStream-lab\downloads\Sunshine-Windows-AMD64-installer.msi`,
Download (not elevated): `Invoke-WebRequest -Uri <url> -OutFile E:\build\play-remotely\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
@@ -64,7 +69,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 <msi> /qn /norestart /l*v F:\Akce\DomiStream-lab\captures\msiexec.log` (quiet; elevated already).
1. `msiexec /i <msi> /qn /norestart /l*v E:\build\play-remotely\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:
@@ -79,8 +84,8 @@ publisher Microsoft Windows). Inside it, without further prompts:
lan_encryption_mode = 1
wan_encryption_mode = 1
min_log_level = debug
pkey = F:/Akce/DomiStream-lab/keys/sunshine-lab-key.pem
cert = F:/Akce/DomiStream-lab/keys/sunshine-lab-cert.pem
pkey = E:/build/play-remotely/lab/keys/sunshine-lab-key.pem
cert = E:/build/play-remotely/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
@@ -110,7 +115,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 `F:\Akce\DomiStream-lab\moonlight\`.
Download to `downloads\`, check the hash (pin and API digest), extract to `E:\build\play-remotely\lab\moonlight\`.
No installer, no admin.
Before its first start we snapshot (names only) the `moonlight\` folder tree and the key names under
@@ -230,7 +235,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 F: until the facts are in PROTOCOL.md and QA has its vectors; then they are deleted on the
8. The recordings stay on E: 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
@@ -240,6 +245,7 @@ re-encrypted with test keys generated in the test).
| sha256 mismatch | delete the file, stop, report |
| Sunshine will not bind 127.0.0.2 | fallback of section 4 (port +1000, encryption off for this capture) |
| Moonlight refuses `127.0.0.1` as a host | relay on `127.0.0.3` instead (any loopback address works) |
| The relay's TLS handshake with Moonlight or Sunshine fails (for example a cipher suite rustls does not offer) | restart the relay with `--https-passthrough`: HTTPS is then recorded as raw TLS, with the same losses as the next row |
| Moonlight's key not readable | HTTPS passes through untouched; we lose U4 and `rikey`, so U10, U11, U16, U17, U19, U20, U22 stay open unless Sunshine's debug log shows them |
| Pairing needs a `pairing_id` we cannot find (sunshine-api.md gap) | we watch the network calls of Sunshine's own local PIN page in our browser pane (black-box) and submit the PIN there ourselves |
| CPU or RAM above 90 % | wait (the relay build and the stream are both heavy) |
+2 -2
View File
@@ -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"F:\Akce\DomiStream-lab\captures";
pub const DEFAULT_CAPTURE_DIR: &str = r"E:\build\play-remotely\lab\captures";
/// Where lab keys live unless told otherwise.
pub const DEFAULT_KEY_DIR: &str = r"F:\Akce\DomiStream-lab\keys";
pub const DEFAULT_KEY_DIR: &str = r"E:\build\play-remotely\lab\keys";
/// Transport of a relayed port.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]