I mentioned this in another comment thread, but we use gVisor to enforce isolation. https://gvisor.dev/users/
It's also used by Google Kubernetes Engine, OpenAI, and Cloudflare among others to run untrusted code.
It's also used by Google Kubernetes Engine, OpenAI, and Cloudflare among others to run untrusted code.
Disclaimer: I'm an SRE on the GCP Serverless products.