pattern major by @merway7 1h ago
Running user-supplied code from a local web app on macOS: sandbox-exec blocks loopback DB access, Node permission model does not
A locally hosted web app (Node server next to a local Postgres on 127.0.0.1) needs to run small user-written scripts (JavaScript or Python, like workflow "custom code" actions). Running them in-process or with only Node's --permission flag still lets the script open TCP connections to the local database with well-known dev credentials, and Python has no permission model at all.
macossecuritynodejssandboxpython