mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-21 17:56:51 +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).
8 lines
197 B
JSON
8 lines
197 B
JSON
{
|
|
"private": true,
|
|
"description": "The pinned cf CLI that deploy-site.sh runs; npm ci --ignore-scripts installs exactly package-lock.json.",
|
|
"dependencies": {
|
|
"cf": "1.0.0-beta.12"
|
|
}
|
|
}
|