blastit: A WSGI server that keeps the blast radius of a security bug small.

Hi everyone,

PHP and Node recently went through their “Black October” wave of critical vulnerabilities, and with AI-driven vulnerability discovery ramping up fast, it feels naive to assume Python and its dependency/C-extension ecosystem won’t get hit just as hard. We need a runtime security model that assumes tomorrow morning there will be a fatal CVE somewhere on the code path—and ensures a bug on one endpoint can’t dump the database and all user PII.

The usual way to contain blast radius is microservices, which has two big problems:

  1. It’s no longer Django.
  2. It’s an administrative nightmare.

I’ve been building Blastit to get that isolation dynamically inside a normal Django monolith. It’s a WSGI server (Rust, Linux + Postgres) that runs each route in its own Unix user/process, strips secrets from Python, and proxies Postgres over local sockets so each route can only run its own SQL scope (with the goal of soon keeping all API/service secrets out of application code too).

You don’t write SQL policies by hand—it learns them from your pytest suite and enforces completeness in CI:

uv add blastit
uv run blastit check --learn   # observes your test suite & writes blastit.toml
uv run blastit check           # enforces in CI that no route/query drifted
uv run blastit dev             # runs locally, no sudo

I’m posting here for a gut check: would you consider running something like this in front of a production Django app—and if not, what’s the #1 thing that would stop you?