fix(tests): R4.9 security gate findings: serve.mjs refuses an empty or unspecified --host (an unset FAUNOSTEO_DEV_HOST bound every interface); report-compare reads at most the 50 MiB cap + 1 byte after its size check; recettes source dev-env.sh first
This commit is contained in:
1 parent
24e05cecd5
commit
80cc261c24
4 files changed
+18
-4
No files matched your search
@@ -20,7 +20,7 @@ Two surfaces, both on the DEV origin (`scripts/dev-env.sh`,
|
||||
No CSP header, HMR on.
|
||||
2. The production build behind the DEPLOY CSP (what the proofs ran):
|
||||
`pnpm build:preview` then
|
||||
`node scripts/browser/serve.mjs --host "$FAUNOSTEO_DEV_HOST" --port 4173`,
|
||||
`. scripts/dev-env.sh && node scripts/browser/serve.mjs --host "$FAUNOSTEO_DEV_HOST" --port 4173` (the server refuses an empty or unspecified address),
|
||||
`http://<FAUNOSTEO_DEV_HOST>:4173`. Static files, the nginx SPA fallback,
|
||||
the DEPLOY `Content-Security-Policy` with `'wasm-unsafe-eval'` on every
|
||||
response. `--csp without` serves the same build without the keyword (the
|
||||
|
||||
@@ -18,7 +18,7 @@ As for J1, on the DEV origin (`scripts/dev-env.sh`, `FAUNOSTEO_DEV_HOST`):
|
||||
|
||||
1. `pnpm dev:offline` (the local tool), `http://<FAUNOSTEO_DEV_HOST>:5173`.
|
||||
2. The production build behind the DEPLOY CSP: `pnpm build:preview` then
|
||||
`node scripts/browser/serve.mjs --host "$FAUNOSTEO_DEV_HOST" --port 4173`,
|
||||
`. scripts/dev-env.sh && node scripts/browser/serve.mjs --host "$FAUNOSTEO_DEV_HOST" --port 4173` (the server refuses an empty or unspecified address),
|
||||
`http://<FAUNOSTEO_DEV_HOST>:4173`. Surface 2 is the one that matters for
|
||||
the memory items and the CSP.
|
||||
|
||||
|
||||
Reference in new issue
Block a user