[repo] Lab capture: lab root on E:\build\play-remotely\lab (approved), build rule with TEMP/TMP on E:

This commit is contained in:
2026-11-25 13:03:10 +01:00
parent a2b834ed87
commit ab5404b0cf
3 changed files with 15 additions and 14 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:, approved for Play remotely) 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. |
+12 -11
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
@@ -33,8 +33,9 @@ The relay source is written but **has never been compiled** (the disk rule held
PowerShell scripts named below (`lab-install.ps1`, `lab-api.ps1`) are **not written yet**; they come with the first
build, for the build lead to read before anything runs.
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).
The lab root is on E: (approved for Play remotely). The relay is built in `E:uild\play-remotely\DomiStream-wt-lab`
with `TEMP`/`TMP` set to `E:uild\play-remotely mp`, `-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)
@@ -61,7 +62,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
@@ -70,7 +71,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:
@@ -85,8 +86,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
@@ -116,7 +117,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
@@ -236,7 +237,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
+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)]