Hacker News
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
d1l
|next
[-]
ptx
|next
|previous
[-]
A variation on that theme that I would like to try is forking a worker per user (or per session), which would be sandboxed (e.g. with Capsicum in FreeBSD) and only have access to that user's credentials. A separate process would route requests to these per-user workers and provide them with the appropriate credentials. This could then be combined with PostgreSQL's row-level security, with each user having their own user in PostgreSQL, and the per-user worker only having access to that particular user's database credentials.
I feel like this should significantly limit the consequences of both SQL injection vulnerabilities and RCE vulnerabilities. It wouldn't solve stored XSS, I suppose, but I believe that is handled by using a template language for HTML (one that encodes parameters automatically on output). It also probably wouldn't scale to a planet-scale mass-market web application, but there are lots of apps that don't need that kind of scale but do need to be secure.
Maybe this sort of thing has already been done and written about (by humans)?
bri3d
|root
|parent
|next
[-]
The process model you’re describing is also what’s old is new again; a lot of the web frontend on a database RAD tool systems like 4D did this in the late 90s, as did the IBM HTTP server on AS/400 (basically the whole family of “stuff that originally spawned a process for a terminal user session and got ported to web.”). I think some of the more session oriented frameworks like Wt did this too, although a lot of others preferred to use multiple session handler continuations in a single OS process since things were so expensive back then.
sheepscreek
|next
|previous
[-]
We've gone from talking about giving agency to AI (agents) to us having some agency over them.
How the turn tables!
tamimio
|previous
[-]
zodwick
|root
|parent
|next
[-]
Although I personally give more weightage t to "Creator of xyz" part than the "pre AI" part.