Skip to content

fix(wininspect): bind read-only daemon explicitly to loopback in Wine - #138

Closed
mark-e-deyoung wants to merge 5 commits into
fix/wininspect-portable-path-resolution-20261023from
fix/wininspect-daemon-loopback-20261023
Closed

mark-e-deyoung wants to merge 5 commits into
fix/wininspect-portable-path-resolution-20261023from
fix/wininspect-daemon-loopback-20261023

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Independent second WinInspect startup correction — DRAFT STACKED ON #134

WineBot #136 first real-runtime test of exact #134 path resolver showed:

  • PASS: nested v0.4.4 App/WinInspect executables exist and resolver reports installed.
  • PASS: WineBot API healthy, synthetic Notepad visible, GET /windows 200; 7 synthetic layout tests passed in normal CI preflight.
  • FAIL: WinInspect process observed but no TCP response on 127.0.0.1:1985; /wininspect/capabilities and /wininspect/windows unavailable, fail-closed as designed.
  • Actual dependency versions: wine-10.0 (Debian 10.0~repack-6), Xvfb 2:21.1.16-1.3+deb13u1, Openbox 3.6.1-12+b2, Mesa DRI 25.0.7-2.

Upstream SemperSupra/WinInspect@v0.4.4:source/daemon/src/network_config.cpp has automatic container-private IPv4 binding when no explicit --bind. WineBot's current daemon invocation gives no arguments while its client targets loopback. This is a source-backed cause candidate, not yet proven solely from TCP observation.

Minimal patch

Force explicit --bind 127.0.0.1 --ipv4 --port <validated WineBot port> --no-config --no-discovery --no-mdns --headless --read-only when WineBot starts its own WinInspect daemon. No remote listener, discovery, VNC or raw mutators are enabled; read-only enforcement is deliberate until an independently admitted brokered mutating workflow exists. Incoming host overrides are still client-side only; automatic daemon listener is always local.

Add 3 synthetic negative/positive spawn tests to normal unit lane: exact loopback/discovery/read-only flags, no execution when installation absent, and no spawn on read-only status probe.

Gates

Based on draft #134 branch, not default main. Neither stacked PR is merge authorized. Existing #124 pinned archive/build fix, #125/#127/#129 security controls, #123 conformance red gate remain independently controlled. Next: additive exact-head update of disposable #136 RDTE and repeat actual API+Notepad test. Inspect WinInspect TCP/protocol separately; do not fabricate success if the daemon remains unreachable or handshake fails. No private data/CI/actions/recording/raw artifact publication.

Copy link
Copy Markdown
Collaborator Author

Git/DLE hygiene: completed stacked source rung, retained in successor #141

Loopback-only read-only WinInspect daemon launch with fail-closed missing-install/status safeguards is an exact source ancestor of active #141; subsequent #139 fixed the source-backed 0.3.0 RPC protocol. GitHub compare b3e9cc7ef5c0c4b79a94d5dd64586c20c8ff19d2 → efb69db7b348b727e4a97093109cc02c6b41d245 confirms ahead and 0 behind, so the current draft #141 contains all original source commits. Prior first failures and exact-source CI receipts remain at this historical PR; main has NOT absorbed the stack.

Disposition: CLOSE historical PR UNMERGED, preserve original branch/SHA until ownership/worktree reconciliation. Active product/security review remains #141, security #515, WinInspect-private #415/#461. The existing official WinInspect v0.4.4 response-ID defect still makes the actual Wine semantic RPC endpoint fail-closed; do not claim successful application observation or merge/release. No private CI minutes, public private-source projection or remote ref deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant