Privilege-separated installation of many Django applications on the same host

Speaker
rm 13:35 stage 🎤

🐘️ @rm@norrebro.space
🎞️ View slides

I run many different weakly trusted Django applications on the same host. I feel safe doing this because of the various restrictions I put on each application. I will show you how I do this. I will show how I configure the particular softwares I use, but I also invite inquiries about different softwares so that I can explain how to achieve a similar approach with different softwares.

Topics include creation of users, configuration of the firewall (pf), database configuration (particularly PostgreSQL), inter-user communication approaches (mainly doas, relayd, and PostgreSQL), privilege-separated package installation (pip, with and without venv), alignment of environment and shell configurations across the users, alignment of configuration across hosts, and configuration of WSGI servers as daemons (rc.d and rc.subr).

Watch the talk