You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(apps): move the app UI asset gate, frame tokens and call authorization into the Rust core #668
Security-critical code belongs in the Rust core. Today the app UI boundary is split: the Rust app manager validates app requests and responses against the UI package (core/src/app_manager/ui/package.rs) and serves assets, while the Bun web process seals frame and asset tokens (web/src/server/AppRuntime/ui/assets.server.ts), authorizes every asset and call (ui/access.server.ts), filters results (filterAppUiResult) and answers the lease hairpin. Each request crosses between both several times.
Proposal
Move the boundary into the core in steps, each shippable on its own:
Frame and asset token sealing and opening in Rust.
Asset serving answered by the core without a web round trip per file.
Call authorization (pre and post checks), result filtering and idempotency key scoping in Rust, next to the existing schema validation.
Install-time validation of the x-rentnerproxy-extensions document in core/src/app_install/package.rs with the shared Rust validator from the SDK, so the web layer no longer drops invalid entries silently.
What stays in TypeScript: the remote tree, forms, frame pool and all rendering. They run in the browser, and remote mutations never reach the server.
Decision (2026-12-01)
The core reads sessions and grants directly from the database on each request, without a cache. A cache follows only if measurements call for it; the lease cache (#657) already removes most of the load.
Activity