Skip to content

bug: frontend: the Windows auto-updater downloads and installs upstream OBS Studio #1729

Closed

Description

@zackees

Found while fixing the same problem on macOS (#1727).

What happens

On Windows, OBS-Studio-Rust's updater talks to upstream OBS Studio's servers:

  • frontend/utility/AutoUpdateThread.cpp.hpp: WIN_MANIFEST_URL, WIN_MANIFEST_BASE_URL, WIN_BRANCHES_URL and WIN_UPDATER_URL are all under https://obsproject.com/update_studio/.
  • frontend/updater/updater.cpp.hpp: kCDNUrl, kCDNUpdateBaseUrl and kPatchManifestURL are on cdn-fastly.obsproject.com and obsproject.com.
  • frontend/cmake/os-windows.cmake builds the updater unconditionally.

Upstream signs these manifests with its own key, and the updater accepts them. So a Windows OBS-Studio-Rust build can offer, download and install upstream OBS Studio over itself, replacing the Rust build.

Expected

Until obs-rust publishes its own signed update feed (see the follow-up issue for macOS), the Windows updater is off: no update check and no Help > Check for Updates. Users update from obs-rust releases.

Test

Add it to ci/test_no_upstream_updater.py (#1727): fail if any updater URL in the frontend points at obsproject.com while the updater is built. Show it RED first.

Activity

  1. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Claiming: #1729 (Windows updater off until obs-rust has its own feed, #1730).

    Plan (one PR, stacked on #1727 while it is open):

    1. RED: extend ci/test_no_upstream_updater.py to fail while the Windows updater (AutoUpdateThread / updater.exe) points at obsproject.com and is built by default.
    2. GREEN: ENABLE_WIN_UPDATER CMake option (default OFF) in frontend/cmake/os-windows.cmake; when off, no updater subdirectory, no AutoUpdateThread, no update checks, and Help > Check for Updates / Repair and the settings update group are removed, like macOS without Sparkle.
    3. Features ledger line. PR today.
  2. added
    claimed
    on Oct 22, 2026
  3. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Artifact-level verification only. The live self-update test is still pending: release run 39768853006 built every platform, but the publish step is blocked by the hybrid approval gate, so no certified release or feed exists to update from.

    What I checked: the obs-studio-rust-windows-x64 artifact from run 39768853006 (head 71382af39, OBS-Studio-Rust-0.1.0-beta.20261022-windows-x64.zip). #1742 (merge 77cd0e47d) is an ancestor of 71382af39. I ran strings and strings -el over every .exe and .dll.

    1. No upstream updater in the package. It contains no updater.exe and no file with "updat" in its name; os-windows.cmake no longer builds it (build: publish a signed Windows update manifest and turn ENABLE_WIN_UPDATER back on #1736). No binary contains cdn-fastly.obsproject.com, update_studio/getpatchmanifest or an obsproject.com manifest.json. That source (frontend/updater/updater.cpp.hpp:24-27) is still in the tree but is not compiled.
    2. The obs-rust feed is present in obs64.exe:
      https://github.com/obs-rust/obs-studio/releases/latest/download/manifest.json
      https://github.com/obs-rust/obs-studio/releases/latest/download/branches.json
      https://github.com/obs-rust/obs-studio/releases/download/
      
    3. Upstream's signing key is not shipped. data/obs-studio/OBSPublicRSAKey.pem (RSA-4096, ...AramOrg+JnU+xAYh7WYbU...) matches the obs-rust key at 71382af39 (it differs only in CRLF line endings). It is not upstream's key (...Al3sverw9HQ+rYQNn9Ca7..., from 5abfc7c56). obs64.exe does not embed either key; it loads the .pem at runtime. The other BEGIN PUBLIC KEY hits are generic PEM parser strings in libcurl, Qt6Network and obs-outputs, plus Chromium's own key in libcef.

    Remaining obsproject.com strings that are not install paths:

    • https://obsproject.com/update_studio/whatsnew.json (WhatsNewInfoThread). It is checked against the same obs-rust key, so upstream's signature should fail and nothing gets installed.
    • Help, Discord and auth links.
    • rtmp-services.dll and win-capture.dll use obs2_update/ data feeds for service and offset lists. These are not app updates.

    Tests: #1727 was closed without merging. Its ci/test_no_upstream_updater.py landed through #1742 and was extended for Windows. test_windows_updater_is_on_and_does_not_build_upstream_updater_exe asserts that updater.exe is absent, and the publish checks assert there is no cdn-fastly.obsproject.com. These tests check the source and workflows; none of them inspects the built binaries.

  4. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Evidence for certified release 20261022 is in #1730 (comment). In short:

    • The Windows x64 and macOS arm64 updaters point only at the obs-rust feeds (releases/latest/download/ and releases/download/continuous/).
    • The bundled RSA key and the Sparkle key are the obs-rust keys.
    • The feed signatures verify with the repo key and fail with upstream's key.
    • A simulated update check reports up to date for 20261022 and update available for older versions.

    Not done yet: a true install-then-self-update test needs a second certified release built with the new updater.

  5. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Evidence: the 20261022 Windows build cannot install upstream OBS (tested on Linux, 2026-10-22)

    The test used the published obs-studio-rust-v0.1.0-beta.20261022 (certified) and obs-studio-rust-v0.1.0-beta.20261023 (certified, now Latest). The source at the 20261022 tag (9f37f663b) has the same frontend/utility/ as current master.

    Checks run on the real 20261022 artifacts

    Check Result
    OBS-Studio-Rust-0.1.0-beta.20261022-windows-x64.zip has no updater.exe, the upstream per-file installer (find -iname '*updater*') PASS: none shipped
    strings of every non-plugin .exe/.dll in the zip contains no cdn-fastly.obsproject.com, getpatchmanifest or update_studio/manifest PASS: no hits
    Update URLs in bin/64bit/obs64.exe (from strings) Only https://github.com/obs-rust/obs-studio/releases/latest/download/{manifest,branches}.json, .../releases/download/continuous/, and .../releases/download/ (the download-prefix check)
    Key shipped at data/obs-studio/OBSPublicRSAKey.pem Same as frontend/data/OBSPublicRSAKey.pem except for CRLF line endings. It is a different key from upstream's (sha256 of upstream's PEM: 660c3276…)
    Upstream https://obsproject.com/update_studio/manifest.json, with its signature taken from the live X-Signature header, checked against the obs-rust key (RSA PKCS#1 v1.5 SHA-512, the scheme FetchAndVerifyFile uses) PASS: INVALID
    Control: the same upstream manifest against upstream's key VALID, so the harness works
    Live obs-rust latest/download/manifest.json against upstream's key INVALID
    Upstream manifest given to the real ParseObsRustManifest taken from the tag's AutoUpdateThread.cpp.hpp (pulled out with awk and built with g++ and nlohmann 3.12) PASS: rejected (key 'version' not found). The manifest would also fail the tag == obs-studio-rust-v<version> and URL-prefix checks.

    So an upstream feed fails at the signature check, and also at the manifest parse if the signature check were bypassed. The only download prefix accepted is https://github.com/obs-rust/obs-studio/releases/download/<tag>/<name>.

    Simulated, not run on Windows

    • I extracted the PowerShell installer step (Expand-Archive, then robocopy /E) and imitated it on Linux with cp -a: the 20261023 x64 zip copied over an extracted 20261022 tree. The resulting tree matches the 20261023 zip exactly (2255 files, compared by sha256), and obs64.exe reports 0.1.0-beta.20261023. Both trees have the same file list, so robocopy /E leaves no stale files for this update.

    Not tested

    • I did not run the real obs64.exe or the PowerShell/robocopy installer on Windows. wine and pwsh are not available on this host, and robocopy has no Linux equivalent.
    • I did not test an elevated (runas) install into Program Files, the restart, or the GUI update dialog.

    Observation, not a #1729 risk: obs64.exe still embeds https://obsproject.com/update_studio/whatsnew.json. It is reached only from the Help > What's New action (or when WHATSNEW_ENABLED is set, which is OFF by default). It is verified with the obs-rust key, so upstream content fails verification and nothing is installed from it.

  6. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    The maintainer confirmed this stays closed (2026-10-23). The install-then-self-update test from 20261022 to 20261023 passed: #1729 (comment).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions