Plugin sandbox: jailed server code, brokered access, sandboxed iframes

Plugin sandbox: jailed server code, brokered access, sandboxed iframes An architecture diagram generated by Archify. user-api · write filters, 1 s timeout · Architecture component user-api write filters, 1 s timeout user-app · view-model enrichers · Architecture component user-app view-model enrichers Hook server · deadlines, circuit breaker · plugin-host container (the only privileged one) Hook server deadlines, circuit breaker Plugin server · Bun process, own UID · plugin-host container (the only privileged one) › nsjail: empty network, cgroups, seccomp Plugin server Bun process, own UID Sandbox supervisor · preflight, restart backoff · plugin-host container (the only privileged one) Sandbox supervisor preflight, restart backoff Quota monitor · 1 GB, then revoke writes · plugin-host container (the only privileged one) Quota monitor 1 GB, then revoke writes Broker · approved capabilities only · plugin-host container (the only privileged one) Broker approved capabilities only plugin_<id> schema · own role, DML, 2 s limit · Architecture component plugin_<id> schema own role, DML, 2 s limit Egress proxy · host allowlist, SSRF rules · Architecture component Egress proxy host allowlist, SSRF rules user-api core API · HMAC, can() as viewer · Architecture component user-api core API HMAC, can() as viewer Cache tags · plugin:<id>:* only · Architecture component Cache tags plugin:<id>:* only Forum page · bulletin origin · Architecture component Forum page bulletin origin Plugin iframe · plugins origin, sandboxed · Architecture component Plugin iframe plugins origin, sandboxed filters enrich JSON-RPC spawn jail SDK calls SQL fetch read bump size MessageChannel GET /apps/* plugin-host container (the only privileged one) nsjail: empty network, cgroups, seccomp Legend Frontend Backend Database Cloud Security