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
chore(apps): gate the app UI dev preview at build time and contain installer URLs #665
Defense in depth; neither item is reachable in a default production image.
Dev preview
The server gate is a runtime NODE_ENV check (web/src/server.ts:22, web/src/server/AppRuntime/ui/dev-preview.server.ts:52-54), while the route uses import.meta.env.DEV (web/src/routes/_authenticated/dev.app-ui.tsx:10). Production forces NODE_ENV=production (docker/production/Dockerfile:200, docker/production/entrypoint.sh:511) and the preview also needs APP_UI_DEV_DIR.
Only call and index.html require the Owner (dev-preview.server.ts:205-206); other files in the preview directory are served without authentication.
Proposal: gate with import.meta.env.DEV so production builds drop the code, and require the Owner for every preview file.
Installer transport
metadata() joins paths onto the catalog root without a containment check (core/src/app_install/transport.rs:125-129). archive() checks redirect targets but not the initial asset URL (:107-114, :194-208). There is no private-address block. Both clients are HTTPS-only, and URLs come from signed metadata.
Proposal: require joined metadata URLs to stay under the catalog root, apply the redirect allowlist to the initial archive URL, and refuse private and loopback addresses.
Activity