Repository navigation
Conversation
#1736) Writes manifest.json (BLAKE2b-160 hash and size of every file in the release's x64 zip) and its detached hex RSA-SHA512 signature to the update-feed release, and points AutoUpdateThread's manifest, branches and updater.exe URLs at it. ENABLE_WIN_UPDATER stays OFF: updater.exe still downloads per-file payloads from its built-in CDN, which obs-rust does not host yet.
Member
Author
|
Superseded by #1742. Per the maintainer's decision, the updaters stay on and offer only certified obs-rust releases (daily builds are pre-releases; a certify dispatch promotes one and attaches a signed feed). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1736. Stacked on #1737 (
fix/1730-obs-rust-update-feed, itself on #1733 and #1727). Base is that branch, so no auto-merge; retarget to master once the stack lands.What this does
ci/win_update_manifest.py(stdlib +openssl, run withuv run): unzips the release'sOBS-Studio-Rust-<ver>-windows-x64.zip(rejects../absolute entries) and writesmanifest.jsonin thefrontend/updater/manifest.hppschema: onecorepackage with every file's BLAKE2b-160hash,size, emptycompressed_hash(so the updater fetches the raw file, no.zst), the version as uint8 fields (dailybeta.YYYYMMDDcounts as beta 1), the tag's commit and a release-notes link. File names the updater'sIsSafeFilenamewould refuse fail the build. It signs with hex RSA-SHA512 PKCS#1 v1.5 intomanifest.json.sig, the detached formFetchAndVerifyFilereads since build: publish an obs-rust update feed and re-enable the in-app updaters #1730. If the build shipsbin/64bit/updater.exeit is published signed too.publish.yamlupdate-feedjob: new step downloads the x64 zip, runs the script withOBS_RUST_UPDATE_RSA_PRIVATE_KEY, and the existing upload step putsmanifest.json(.sig)on theupdate-feedrelease.AutoUpdateThread.cpp.hpp:WIN_MANIFEST_URL,WIN_MANIFEST_BASE_URL,WIN_BRANCHES_URL,WIN_UPDATER_URLnow point atreleases/download/update-feed/. That code is only compiled withENABLE_WIN_UPDATER.ci/test_win_update_manifest.py(schema, hashes, sizes, unsafe names, zip-slip, signature verified withopenssl dgst -verifyagainst a throwaway key and rejected after tampering, updater.exe handling).ci/test_no_upstream_updater.pyasserts the frontend URLs and the publish step. RED commit first.Why
ENABLE_WIN_UPDATERstays OFFTurning it on would offer updates that fail. What's left:
updater.exedownloadskCDNUpdateBaseUrl/<branch>/core/<name>from its built-incdn-fastly.obsproject.comhost (updater.cpp.hpp). A release can't host that: the x64 zip has 2,255 files (2,070 unique), more than a release's asset limit, and asset names can't contain folders. Options: a static host with astable/core/<path>tree (GitHub Pages, R2/S3), or an updater change (content-addressed assets, or a few pack assets read with HTTP Range). Each needs a Windows run to verify, so I didn't make either change here.updater.exeisn't in the release zip. OnlyENABLE_WIN_UPDATERbuilds produce it, soWIN_UPDATER_URLreturns 404 for now. The client treats that as "no update", which is safe.kPatchManifestURLstill POSTs to obsproject.com for deltas. It should be disabled or repointed so the updater always takes full files.0.1.0-beta.<date>, andOBS_COMMITis empty unlessOBS_VERSIONcontainsg<sha>. So the manifest's version/commit can't tell one daily build from the next. Releases need a distinguishing version or commit baked in.Verified locally: the script on the real
obs-studio-rust-v0.1.0-beta.20261020x64 zip produced a 385 KB manifest of 2,255 files and a 512-byte hex signature../lintpasses.