Auto-update backend (H1): releases collection + gated manifest #6
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/auto-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16 (auto-update; backend half). App half is the amber-app PR of the same name.
What
releasescollection (pb_migrations/1786500000_releases.js):platform,variant,version,buildNumber,file,sha256,size,notes. Read gated (variant='clean' || @request.auth.nsfwEnabled=true); writes superuser-only.fileisprotected: true(1786500001_…): a follow-up migration after E2E showed the artifact URL was public without it. Now the file is served only via a short-lived file token whose grant re-checks the view rule.GET /api/update/manifest?platform=…(pb_hooks/update.pb.js, auth): returns the latest build, variant chosen server-side fromnsfwEnabled— the client can't request adult.scripts/publish-release.sh: uploads a built artifact as superuser (sha256 + size computed).docs/auto-update-contract.md: collection, endpoint, download flow, gating.Verified (live, against the deployed PB)
15/15 E2E with throwaway users + artifacts (all cleaned up):
(platform,variant,build)rejected by the unique indexnsfwEnabled; sha/buildNumber match the filesprotectedfix closed🤖 Generated with Claude Code