docs(docs): RUST.md §10.5 completed (application build results, residual risks); R4 J1 procedure and kit

docs/development/R4_J1.md: the two LAN surfaces (dev server, production build behind the
DEPLOY CSP through serve.mjs --host on the DEV origin), the kit folder generated by
scripts/r4-j1-kit.mjs (reference PDFs, the O8 hostile corpus with expected messages,
rescue copies), twelve checks per device, what to report.
This commit is contained in:
bchanot committed 2026-10-18 19:52:25 +02:00
1 parent 08f01ef363
commit b08373a89b
4 files changed
+292 -13

No files matched your search

+7 -2
View File
@@ -187,6 +187,7 @@ export function startServer({
csp = 'with',
mounts = {},
reportViolations = false,
host = HOST,
} = {}) {
const enforced = cspVariant(productionCsp(), csp)
const policy = reportViolations
@@ -198,8 +199,8 @@ export function startServer({
)
return new Promise((done, fail) => {
server.once('error', fail)
server.listen(port, HOST, () => {
const url = `http://${HOST}:${server.address().port}`
server.listen(port, host, () => {
const url = `http://${host}:${server.address().port}`
done({ url, csp: policy, reports, close: () => server.close() })
})
})
@@ -211,6 +212,9 @@ async function main() {
port: { type: 'string', default: '4173' },
csp: { type: 'string', default: 'with' },
r4: { type: 'boolean', default: false },
// The owner's device acceptance (J1): the production build behind the DEPLOY CSP on
// the DEV origin (scripts/dev-env.sh), never on every interface.
host: { type: 'string', default: HOST },
},
})
if (!['with', 'without'].includes(values.csp)) {
@@ -220,6 +224,7 @@ async function main() {
port: Number(values.port),
csp: values.csp,
mounts: values.r4 ? R4_MOUNTS : {},
host: values.host,
})
console.log(`serving apps/app/dist on ${server.url}`)
if (values.r4) console.log(`R4 import page on ${server.url}/r4/`)