mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-21 15:52:06 +08:00
Security finding #528: Site ran site/ code (bun install, build.ts, vite) in the release environment with a Cloudflare token that can write every Worker. Site deploy now builds without an environment or secret, uploads the Build Output with its SHA256SUMS digest, and deploys it from a job that checks out only .github/release/, verifies the digest, and runs deploy-site.sh: it refuses any Worker, route, or binding other than the mode's site Worker and deploys with the cf CLI locked in .github/release/cf/. Legacy appcast checks out only .github/release/ and the appcast, and r2-put.sh moves under the boundary. The deploy token is now hex-site-deploy (Scripts + anoma.ly Routes, no R2) and the appcast key hex-r2-production-files (one bucket).