[repo] Lab capture: lab root back on F:\Akce\DomiStream-lab (move to E: cancelled)
This commit is contained in:
+1
-1
@@ -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. |
|
| [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. |
|
| 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. |
|
| 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. |
|
| 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. |
|
| READMEs and wikis of forbidden projects | n/a | For facts only (licence, release notes, compatibility statements). Never their source files. |
|
||||||
|
|
||||||
|
|||||||
+11
-13
@@ -11,16 +11,16 @@ the files they write. We never open their source, never disassemble them ([CLEAN
|
|||||||
Hard limits:
|
Hard limits:
|
||||||
- One stream of the **Desktop** app, no game. Nothing touches the TV or 192.168.100.217.
|
- 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`.
|
- 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.
|
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.
|
the docs.
|
||||||
- One UAC prompt in total.
|
- One UAC prompt in total.
|
||||||
|
|
||||||
## 0. Layout
|
## 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)
|
downloads\ Sunshine MSI and the Moonlight portable zip, as downloaded (untrusted until the sha256 matches)
|
||||||
moonlight\ the extracted Moonlight portable folder
|
moonlight\ the extracted Moonlight portable folder
|
||||||
keys\ lab-only TLS material (ACL: Mark's account + SYSTEM): Sunshine lab cert/key, Moonlight lab cert/key
|
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\`.
|
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
|
The relay is built with `-j 2` and only while CPU, RAM and every drive the build writes to are below 90 %
|
||||||
tells the orchestrator they are on E:. The relay is built in the worktree `E:uild\play-remotely\DomiStream-wt-lab`
|
(DomiStream CLAUDE.md).
|
||||||
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)
|
## 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
|
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.
|
time. A mismatch on either = delete the file and stop.
|
||||||
|
|
||||||
Download (not elevated): `Invoke-WebRequest -Uri <url> -OutFile E:\build\play-remotely\lab\downloads\Sunshine-Windows-AMD64-installer.msi`,
|
Download (not elevated): `Invoke-WebRequest -Uri <url> -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.
|
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
|
**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",
|
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:
|
publisher Microsoft Windows). Inside it, without further prompts:
|
||||||
|
|
||||||
1. `msiexec /i <msi> /qn /norestart /l*v E:\build\play-remotely\lab\captures\msiexec.log` (quiet; elevated already).
|
1. `msiexec /i <msi> /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
|
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).
|
credentials, so nobody can pair or call its API).
|
||||||
3. Write `C:\Program Files\Sunshine\config\sunshine.conf` with only these lines:
|
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
|
lan_encryption_mode = 1
|
||||||
wan_encryption_mode = 1
|
wan_encryption_mode = 1
|
||||||
min_log_level = debug
|
min_log_level = debug
|
||||||
pkey = E:/build/play-remotely/lab/keys/sunshine-lab-key.pem
|
pkey = F:/Akce/DomiStream-lab/keys/sunshine-lab-key.pem
|
||||||
cert = E:/build/play-remotely/lab/keys/sunshine-lab-cert.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
|
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,
|
**Pin** (release API, S-19): `v6.2.0` (2026-10-04), `MoonlightPortable-x64-6.2.0.zip`, 37,242,232 bytes,
|
||||||
sha256 `6f91d268b41ed5ca8066d9d7578dc403b8db190991ff48f00b1700465f8f7ebf`,
|
sha256 `6f91d268b41ed5ca8066d9d7578dc403b8db190991ff48f00b1700465f8f7ebf`,
|
||||||
`https://github.com/moonlight-stream/moonlight-qt/releases/download/v6.2.0/MoonlightPortable-x64-6.2.0.zip`.
|
`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.
|
No installer, no admin.
|
||||||
|
|
||||||
Before its first start we snapshot (names only) the `moonlight\` folder tree and the key names under
|
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.
|
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).
|
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.
|
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.
|
build lead's word.
|
||||||
|
|
||||||
## 6. If something fails
|
## 6. If something fails
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ use std::time::Duration;
|
|||||||
use crate::record::Protocol;
|
use crate::record::Protocol;
|
||||||
|
|
||||||
/// Where recordings go unless told otherwise.
|
/// 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.
|
/// 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.
|
/// Transport of a relayed port.
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
|
|||||||
Reference in New Issue
Block a user