Skip to content

Harden runtime spawn policy#394

Merged
GrahamCampbell merged 2 commits into
4.xfrom
harden-runtime-spawn-policy
Jun 12, 2026
Merged

Harden runtime spawn policy#394
GrahamCampbell merged 2 commits into
4.xfrom
harden-runtime-spawn-policy

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

This implements the Step 4 runtime spawn hardening on 4.x. It adds a shared spawn input policy for async and sync wrappers, removes the remaining direct production child_process usage, migrates Java and Ruby invoke local execution onto spawnExt, validates Java and Ruby handler syntax before spawning, and sanitizes Java/Ruby runtime environment variables by default while adding --preserve-runtime-env as an explicit opt-in.\n\nI verified the change with the focused spawn and invoke-local unit tests, targeted ESLint and Prettier checks, the production raw-process grep, git diff --check, npm run lint:updated, npm run prettier-check:updated, npm run lint, npm run prettier-check, and npm test.

@GrahamCampbell
GrahamCampbell merged commit 9bdfb11 into 4.x Jun 12, 2026
8 checks passed
@GrahamCampbell
GrahamCampbell deleted the harden-runtime-spawn-policy branch June 12, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant