Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 588 Bytes

README.zuplo.md

File metadata and controls

17 lines (11 loc) · 588 Bytes

Introduction

This is a proof-of-concept showing how to use nsjail to isolate builds.

Security concerns

Using nsjail as the isolation layer is predicated on the fact that we trust pnpm install, which means that it won't allow some way to escape out of the shell.

It's also predicated on the fact that we trust our own build process, in particular our use of esbuild.

Steps

  1. docker build -t nsjailcontainer .
  2. docker run -v ./customer-project:/customer-project -v ./zuplo-config:/zuplo-config --rm -it nsjailcontainer nsjail --config /zuplo-config/build.cfg