fix: harden security resource lifecycles

This commit is contained in:
Andy Dixon
2026-07-29 12:37:02 +01:00
parent f0a1a0b8f2
commit b5c7528160
17 changed files with 460 additions and 76 deletions
+2 -17
View File
@@ -315,21 +315,6 @@ assertContains(
"VNC Connections",
"in-app help must document VNC connection profiles",
);
assertContains(
"vscode/nexus/extension.js",
"crypto.randomBytes(16).toString('base64')",
"Nexus VS Code webview CSP nonces must use cryptographic randomness",
);
assertContains(
"vscode/leviathan/extension.js",
"crypto.randomBytes(16).toString('base64')",
"Leviathan VS Code webview CSP nonces must use cryptographic randomness",
);
assertTreeNotContains(
"vscode",
"const nonce = String(Date.now());",
"VS Code webview CSP nonces must not be predictable timestamps",
);
assertContains(
"docs/user-manual.md",
"## 11. Leviathan binary workbench",
@@ -558,8 +543,8 @@ assertContains(
);
assertContains(
"scripts/build-common.sh",
"-O2 -g0",
"production builds must remove cgo debug output by default",
"CGO_ENABLED=0",
"production builds must keep the pure-Go SQLite toolchain",
);
assertContains(
"Makefile",