hex/site/package.json
Dax Raad ea00b65602 fix(site): deploy the site from a secretless build through a locked script
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).
2026-10-27 21:18:42 -04:00

33 lines
964 B
JSON

{
"name": "hex-site",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "bun scripts/release-data.ts --mode dev && vite",
"build": "bun scripts/build.ts",
"preview": "vite preview",
"check:downloads": "bun scripts/check-downloads.ts",
"generate:og": "bun scripts/generate-og.ts",
"generate:poster": "bun scripts/generate-poster.ts",
"generate:og-video": "node scripts/og-video/capture.mjs"
},
"dependencies": {
"@fontsource-variable/inter": "^5.3.0",
"motion": "^14.0.0",
"react": "^19.3.0",
"react-dom": "^19.3.0"
},
"devDependencies": {
"@cloudflare/build-output-utils": "0.8.5",
"@cloudflare/vite-plugin": "2.0.0-beta.v.4",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.2",
"cf": "1.0.0-beta.12",
"matter-js": "0.20.0",
"playwright": "^1.63.0",
"typescript": "^7.0.2",
"vite": "^8.3.3"
}
}