Kaisen previews ride out restarts, a security pass, and UI fixes

Kaisen apps no longer restart when the platform is briefly away, a security pass on Kaisen found two bugs and no leaks, and the left tree lost a few bugs.

Share

A quieter round this time: one fix for something that looked like a crash, a security pass on Kaisen, and a handful of UI bugs we only found by looking again.

Kaisen previews ride out a platform restart

A Kaisen app fetches its bundle from the platform when its container starts. When we replaced a node, the platform was briefly unavailable, the fetch gave up after about 30 seconds, and two apps showed "Restarted: your app exited with code 1". They came back on their own, but the message was alarming for an app that had done nothing wrong.

The runtime now keeps trying for five minutes, waiting up to 15 seconds between attempts, and logs each one. Existing Kaisen apps pick this up the next time they are deployed or restarted.

A security pass on Kaisen

The question was simple: can a build, or the app it produces, get at keys, credentials or anything about the platform underneath? We found no way to. A preview is deployed exactly like any other app, so it gets the same isolation, and the only platform-issued thing it holds is the address of its own bundle.

The pass did find two robustness bugs, both fixed:

  • A crafted search pattern could keep the Kaisen worker busy for seconds per line, which would stall everyone's builds. The pattern check is stricter now.
  • A deeply nested JSON file could end a run with an error instead of a warning.

We also extended the isolation test suite we run against the live platform. It now checks the newer parts: Kaisen's own services, projects, backups, outbound mail ports, and every Kaisen build route as a stranger. The runtime's checks on the bundle archive (no absolute paths, no links, no oversized bundles) have tests of their own. Three checks are still done by hand, and the pentest notes say which.

UI fixes

  • Going from one app's Health page to another app in the left tree now opens that app. Before, the address changed and the page did not.
  • With several projects open, the tree could show "No apps" under all but one of them. Each project now keeps its own list.
  • The tree sits tighter against its guide lines, so long names have more room.
  • The Show button on the Kaisen API key and token fields is back inside the field, and the project page has the same breadcrumb as every other page.