security-review-mitigations
New managed replica residents now mint nested on nested deployments, and capable nested-default boxes retain nested paths while isolation readiness is pending. A single pre-exec guard in spawnChildFrom refuses never-served stateless resident flat/foreign starts unless flat was explicitly chosen. It covers the actual Service -> SplitBackend -> StartStaged path. Previously served/good-version residents and explicit operator flat choices remain supported; Paul confirmed the existing legacy cohort is trusted. gVisor rollout policy is unchanged.
The branch also upgrades klauspost/compress to v1.20.2 and x/net to v0.62.0 with their required minimum dependency versions. Malformed zstd regressions were watched panic on v1.18.0 and pass on v1.20.2 through Extract, Verify and OCI OpenLayout. The console gains frame denial, object/base CSP restrictions, nosniff, referrer policy and one-day host-only HSTS for HTTPS-configured origins; no script-src lock-down, blanket tenant policy or static-site exception.
Validation: real release.Pass/stateless Service wake and real staged backend tests prove the guard, absence of launch artifacts, legacy/explicit-flat exceptions and proven no-start. Real layout.Pass.Converge tests prove recovery with the required database and safe refusal without it. HA fixture state carry-over exposed by CI was corrected in tests only, with a red/green regression and same-store recovery tests preserved. RouteFor's name-class fingerprint was renewed; names/owners do not change. govulncheck reports no reachable-symbol or imported-package findings; only the unused OpenPGP module advisory remains. Full CI passed on final reviewed tip 1bc3d4badd2ceac5cb735f0664d89d85c034e6c8, including build/test/vet, cross-builds and MinIO contracts. Squash merged through amadan as 197cc40ca6fd98dc80bb7baadb59206cabab9954. Post-merge main CI is running; GitHub main is synchronized.
Review budget/history: coordinated GLM 5.3 + Mistral Large 4 audit R1 found no P1. Opus R2 approved dependencies/headers and the targeted policy check found a resident isolation P1. R3 found the first fix missed StartStaged; work stopped and blocker #773 was posted. Paul explicitly authorized a central guard plus one fourth review. Opus R4 at 4fb29108 CLOSED the isolation P1, approved all census units/envelopes and returned READY AFTER FIXES for one availability P2. The exact requested launchRefused{ErrFenced} correction and recovery tests are applied, with census regenerated. The mandatory P2 completion check within R4 approved the final-tip census and closed R4. No fifth review was opened. Separately reviewed main aed89333 was integrated; the mitigation production diff stayed byte-identical across that integration (cmp proof retained).
Known limits/follow-ups: #771 supported static-site security headers; #774 supported recovery for no-DB/foreign in-flight stateless rows, which remain safely refused; #772 unrelated rootfs pending-worker cleanup flake. P3s retained from review: PDF interim responses may lose default headers; route-specific header-precedence coverage; stronger decoder-error/spool-cleanup assertions; ServeHTTP comment expansion. These do not restart review.
No production deployment, infrastructure mutation or AWS/SSM action occurred. Read-only CARLOS API status reported nested-default behavior, 184 nested routes and four flat routes across six reporting boxes, plus aliases/foreign. This branch mitigates code paths; it does not claim those changes are live on carloku.com.
Discussions 1 open
Tasks
- No tasks yet.
Activity
- paul@keymail.dev replied to Blocked: resident guard misses StartStaged; review budget exhausted
- paul@keymail.dev replied to Blocked: resident guard misses StartStaged; review budget exhausted
- paul@keymail.dev pushed 1bc3d4bad Integrate reviewed demo budget changes and refresh census envelope
- paul@keymail.dev pushed 528595f03 Record proven no-start when resident isolation refuses execution
- paul@keymail.dev replied to Blocked: resident guard misses StartStaged; review budget exhausted
- paul@keymail.dev opened Recover never-served stateless layout without requiring a database
- paul@keymail.dev pushed 4fb291082 Enforce resident isolation at the shared instance spawn entry point
- paul@keymail.dev replied to Blocked: resident guard misses StartStaged; review budget exhausted
- paul@keymail.dev pushed fe6895a5d Merge reviewed main before final mitigation check
- paul@keymail.dev opened Blocked: resident guard misses StartStaged; review budget exhausted
- paul@keymail.dev pushed 636d5f3af Keep new resident tenants off implicit flat execution paths
- paul@keymail.dev pushed 91798f194 Record dependency envelope for security mitigation review
- paul@keymail.dev pushed 5c9e12b17 Mitigate archive decoder panic and harden console response headers