Repository navigation
Update ChangeDetection.io to 0.70.2 - #14
Conversation
helix-white
left a comment
There was a problem hiding this comment.
Changes requested
[P2] Preserve the HTTPS origin for MCP OAuth discovery. With Manage Access → Private and MCP enabled, following the new instructions using a reachable StartOS HTTPS address still fails unless Public MCP address is manually set. The daemon serves HTTP behind StartOS's TLS terminator, but neither its environment nor the LinuxServer image enables USE_X_SETTINGS. In upstream 0.70.2, oauth.issuer() therefore derives an http:// URL from request.url_root; /mcp/v1 advertises HTTP discovery in WWW-Authenticate, and secure_issuer() rejects authorization/token requests with “Sign-in needs https”. This affects the newly advertised OAuth setup, not just installations using an alternate hostname.
The proposal enables upstream's trusted-proxy mode with USE_X_SETTINGS=1, records the origin-preservation contract next to the setting, and updates both guides. StartOS supplies trusted forwarded headers by default for this binding and strips client-supplied values, so HTTPS discovery can work without an override while plaintext access remains plaintext. Please verify the adopted fix through the StartOS HTTPS interface with Public MCP address blank; the existing explicit-address OAuth path should continue to work.
Source references: upstream issuer and HTTPS check, proxy-mode switch, and StartOS TLS termination contract.
The reviewed head merges cleanly with master. I also checked the upstream release range, browser-fetcher selection/custom-URL precedence, password-hash compatibility, datastore migration and downgrade guard, and the published amd64/arm64 image metadata. Both CI architecture builds passed. No builds or tests were run during this review; the proposal is unverified.
Proposed changes: 55aba12...proposal/14
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Addressed the HTTPS-origin review in 815058b. Adopted Reproduced the original HTTP issuer/resource discovery through StartOS HTTPS with Public MCP address blank. With the fix installed on StartOS, both blank-address and explicit-address paths passed real-browser consent, PKCE exchange, scoped MCP access, code replay rejection, refresh rotation, old-token rejection, and grant revocation. HTTPS discovery and MCP authentication challenges advertise HTTPS; the plaintext proxy stays HTTP. Forged forwarded headers were stripped on both proxy paths. Both local architecture builds, type checking, formatting, and diff checks passed. Clean uninstall/reinstall, first-run behavior, watch capture, exact snapshot persistence, and both Manage Access modes also passed. Native StartOS backup/restore remains blocked by a repeated backup stall at 100/110 before OS-data finalization; the PR body records that limitation separately from successful server-local recovery. The test server was returned healthy with its baseline access settings and both backup targets available. |
helix-white
left a comment
There was a problem hiding this comment.
Approved at 815058bc9606e4736afaa0ff02680ace91ee79ae. The follow-up resolves my HTTPS-origin finding: USE_X_SETTINGS=1 enables upstream's proxy handling for StartOS's trusted headers, preserves plaintext behavior and the explicit-address override, and documents the contract beside the setting and in both guides. No further correctness findings.
Reviewed the author's regression evidence for blank/explicit MCP addresses, forwarded-header stripping, upgrade, clean reinstall, and successful native backup/restore. The head merges cleanly with master; both x86 and ARM CI builds passed. Static review only; I ran no builds or tests.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Summary
Updates the application, preserves the Node.js/Brotli security upgrades, adds localized release highlights and recovery guidance, documents MCP access, and checks image availability in UPDATING.md.
The upstream version check found application 0.70.3, but LinuxServer's newest published image when checked was 0.70.2-ls325, available for both architectures.
Integration testing exposed an existing browser configuration problem: a custom WebSocket browser without browser steps selected Selenium and failed with
Not supported URL scheme ws. Setting upstream'sPLAYWRIGHT_DRIVER_URLselects Playwright. Users still need to configure and select their external browser; this package provides no browser companion.The review follow-up enables
USE_X_SETTINGS=1so MCP OAuth derives its issuer from StartOS's trusted forwarded headers. Both guides now explain automatic HTTPS discovery and the optional explicit-address override.Evidence
After: Installed the original 0.70.2:0 artifact; confirmed schema 34, retained watch/history/password, new snapshots, restart persistence, and private/public transitions.
make x86andmake arm; version 0.70.2:0, SDK 3.1.0, correct architectures, and blocked downgrades verified. Verified both managed settings in the running service and the packed manifest architecture/version/migration ranges. Type checking, Prettier, andgit diff --checkpassed.815058bx86 artifact over an existing0.60.9:1service on a second StartOS server. Schema 33 → 34 preserved the original watch, all 35 historical snapshots (content hashes matched), API credential, and access/notification settings. A temporary muted watch captured the public page and survived restart with the same snapshot hash; the original history also survived restart. Removed the temporary watch before backup. A ChangeDetection-only native backup finalized in about 15 seconds with successful server/package reports. Observed uninstall and restore; StartOS reinstalled0.70.2:0at815058bfrom the backup. The original watch and all 35 snapshots matched again, as did the API credential and settings; both managed environment settings were present, the UI/API worked, MCP stayed disabled, and health stayed green beyond the first minute. No test watches remain.Earlier native-backup attempts on a development OS build stalled after copying, before finalization. The successful native round trip above was completed on a second StartOS server; the earlier filesystem investigation remains separate from this package update.
Both local architecture builds and both CI architecture jobs passed for
815058b(CI run).Merge Danger
Door: one-way
Upstream migrates the datastore automatically (schema 33 → 34 in the tested upgrade). The packed manifest allows migration from
<=0.70.2:0and only to=0.70.2:0; returning to an older version requires a backup made with that version.Blast Radius: service
Changes the application image, browser-fetcher selection, and trusted-proxy handling for this service. MCP remains opt-in with separate tokens and permissions.