Repository navigation
Description
An external audit reviewed the native app flow end to end: SDK, Marketplace, catalog, install, runtime, IPC, app UI and Monitoring 1.1.0. Every finding was checked against the code before filing. This issue tracks what held up.
Related: #629 (native app extensions).
Work order (agreed 2026-12-01)
Within a wave, work in different repositories can run in parallel.
Wave 1: critical fixes
- fix(apps): let owners uninstall provider apps and recover stuck legacy handoffs #648
- fix(apps): drop revoked previous and candidate releases so backups keep working #649
- fix: let Rust candidate builds use their full build timeout marketplace#118 and fix: use an authenticated quota for public GitHub repository checks marketplace#119
- One PR with fix(apps): count v1 upstream probes against the app's own admission #656, fix(apps): fail an app start when its declared UI package cannot load #652, fix(apps): keep app migrations atomic when SQL uses a
beginidentifier #653 and fix(apps): restart a crashed app manager and avoid a false stale catalog after staging #655
Wave 2: security and Docker Discovery prerequisites
5. RentnerProxy/marketplace#122 (also resolves a private advisory)
6. The private candidate dependency advisory together with RentnerProxy/app-sdk#21 (same app-pipeline crate)
7. The private runtime resource advisory together with #651 and #657 (process start, broker, UI socket)
8. #660
9. #650, then the 2-of-3 root key ceremony (owner step)
Wave 3: SDK release and apps
10. RentnerProxy/app-sdk#18, RentnerProxy/app-sdk#19 and RentnerProxy/app-sdk#20 with the SDK changes from wave 2 in one SDK release
11. RentnerProxy/app-template-ts#20, RentnerProxy/app-template-rs#8, RentnerProxy/app-monitoring#14 and RentnerProxy/app-monitoring#15; Monitoring 1.1.1 is the first automatic update through RentnerProxy/marketplace#122
12. RentnerProxy/marketplace#120 and RentnerProxy/marketplace#121 (#121 can come earlier: it speeds up every candidate build)
Wave 4: app UI robustness
13. #661, #662, #663, #664 and #667
Wave 5: performance and architecture
14. #659
15. #658
16. #668 (builds on #657 and #658)
17. #654, #666, #665 and RentnerProxy/app-sdk#22
Docker Discovery (#627) starts once waves 1 and 2 are done, in particular #648, #660 and RentnerProxy/marketplace#122. It can then run in parallel with waves 3 to 5.
1. Blocking or required before the next app steps
- fix(apps): let owners uninstall provider apps and recover stuck legacy handoffs #648 Provider apps (Monitoring) can never be uninstalled; stuck legacy handoffs have no recovery
- fix(apps): drop revoked previous and candidate releases so backups keep working #649 Revoking an old release breaks backups on updated appliances
- feat(apps): restrict app-owned upstream targets before manage-owned becomes approvable #660 Restrict app-owned upstream targets before
manage-ownedbecomes approvable (prerequisite for Docker Discovery, feat(apps): add page, form, dashboard, settings, sign-in and search extension targets #627) - fix(apps): carry the catalog checkpoint across a bundled root rotation #650 Carry the catalog checkpoint across a bundled root rotation (before the first root rotation; the current root expires 2027-11-21)
- fix: let Rust candidate builds use their full build timeout marketplace#118 Rust candidate builds are killed after 6 of 10 minutes
- fix: use an authenticated quota for public GitHub repository checks marketplace#119 Unauthenticated GitHub checks can stall submissions and publication
- feat: publish app updates automatically and reach the catalog publisher without a private tunnel marketplace#122 Automatic app updates and catalog publication without a private tunnel
2. Robustness and correctness
- fix(apps): contain app render errors and keep app dialogs closable #661 Contain app render errors and keep app dialogs closable
- fix(apps): restore carried drafts into forms that are already drawn #662 Restore carried drafts into forms that are already drawn
- fix(apps): resolve app page links and route gates consistently #663 Resolve app page links and route gates consistently
- fix(apps): fail an app start when its declared UI package cannot load #652 Fail an app start when its UI package cannot load
- fix(apps): restart a crashed app manager and avoid a false stale catalog after staging #655 Restart a crashed app manager; no false stale catalog after staging
- fix(apps): count v1 upstream probes against the app's own admission #656 Count v1 upstream probes against the app's own admission
- feat(apps): stop apps gracefully within their declared drain timeout #651 Stop apps gracefully within their drain timeout
- fix(apps): keep app migrations atomic when SQL uses a
beginidentifier #653 Keep app migrations atomic when SQL uses abeginidentifier - fix: keep the host dialog working for hosts with many or long domains app-monitoring#14 Host dialog with many or long domains
- fix: decouple the shared host refresh from a single request app-monitoring#15 Shared host refresh tied to one request
- fix(app-ui): check bridge messages against the platform's rules before sending app-sdk#18 Bridge messages the platform drops silently
- feat(contracts): check result policies against platformApi and filterable response schemas app-sdk#19 Check result policies against
platformApi - fix(contracts): allow full hostnames in UI kit selects and count text limits in code points app-sdk#20 Full hostnames in selects; code point limits
- fix: require platform API 1.1.0 for host table results and clean up the starter docs app-template-ts#20 and fix: require platform API 1.1.0 for host table results and clean up the starter docs app-template-rs#8 Require platform API 1.1.0 for results
3. Performance, hardening and architecture
- perf(apps): cache generation leases in the app manager #657 Cache generation leases in the app manager
- perf(auth): load the encryption key once and derive purpose keys #658 Load the encryption key once and derive purpose keys
- perf(apps): cut idle database load from app workers, host tables and live revisions #659 Cut idle database load from app workers, host tables and live revisions
- refactor(apps): move the app UI asset gate, frame tokens and call authorization into the Rust core #668 Move the app UI asset gate, frame tokens and call authorization into the Rust core
- fix(apps): harden the app UI bridge, call results and response headers #664 Harden the app UI bridge, call results and response headers
- chore(apps): gate the app UI dev preview at build time and contain installer URLs #665 Gate the dev preview at build time; contain installer URLs
- feat(apps): rate-limit app incident changes so a flapping app cannot crowd out alerts #666 Rate-limit app incident changes
- chore(apps): clean up unreferenced app archives, packages and runtime rows #654 Clean up unreferenced app archives, packages and runtime rows
- fix(apps): small remote UI kit and app catalog edge cases #667 Small remote UI kit and app catalog edge cases
- fix: candidate submission and validation edge cases marketplace#120 Candidate submission and validation edge cases
- ci: cache and pin the candidate and catalog publication builds marketplace#121 Cache and pin candidate and catalog builds
- feat(app-pipeline): report extension contract errors in detail and enforce the 8 KiB limit app-sdk#21 Detailed extension errors and the 8 KiB limit in the pipeline
- feat: let app authors validate and preview apps without a platform checkout app-sdk#22 Validate and preview apps without a platform checkout
Decisions (2026-12-01)
- fix(apps): let owners uninstall provider apps and recover stuck legacy handoffs #648: after a committed handoff, uninstall needs confirmation and the feature stays off; reinstalling restores the app's data.
- feat(apps): stop apps gracefully within their declared drain timeout #651: keep a bounded, Owner-only crash log of the last 64 KiB of stderr.
- fix(apps): contain app render errors and keep app dialogs closable #661: no app name on app dialogs; the native look stays.
- feat(apps): rate-limit app incident changes so a flapping app cannot crowd out alerts #666: separate quotas for audit messages and incidents.
- refactor(apps): move the app UI asset gate, frame tokens and call authorization into the Rust core #668: the core reads sessions and grants directly from the database.
- fix(apps): carry the catalog checkpoint across a bundled root rotation #650: the next root rotation moves to a 2-of-3 offline root.
- fix: use an authenticated quota for public GitHub repository checks marketplace#119: use the existing GitHub App installation token.
- feat: publish app updates automatically and reach the catalog publisher without a private tunnel marketplace#122: automatic updates when the pipeline passes and no new rights are requested (the first release is always reviewed); publication through the public OIDC route without WARP.
Private findings
Three findings are filed as private draft security advisories, following SECURITY.md: one in this repository and two in RentnerProxy/marketplace.
Checked and not filed
- Monitoring incident outbox "endless loop": not endless; one extra retry, listed in fix: decouple the shared host refresh from a single request app-monitoring#15.
- Restore and provisioning children keeping supplementary group 0: Rust's
Commanddrops supplementary groups when it sets a uid as root. - Unhandled rejection in the candidate smoke:
Promise.racehandles both promises. - Toasts with an
undefinedheading: the platform accepts present-but-undefined optional keys. - Monitoring handoff abort keys conflicting for 30 days: the app always repeats its recorded abort input.
- Journal slots running out after install/purge cycles: a reinstalled app reuses its purged slot.
- New extensions on update without re-approval: extensions do not widen what an app can access, and installs behave the same.
- Templates pinning the platform repository at a fixed commit: intentional supply-chain pinning.
Activity