Skip to content

feat(apps): validate runtime, UI isolation and provider profiles for App API v1 #450

Closed

Description

@RentnerKev

Phase: 0 | Priority: P0

Resolve the remaining architecture unknowns before freezing package/API v1 or extracting production features.

Scope

  • Use the internal reference fixture to validate a TypeScript backend compiled with a pinned Bun version into a standalone bin/app. Build the TypeScript UI separately and package both as an immutable .tar.zst for each of linux-amd64 and linux-arm64.
  • Build and execute the Bun backend on native AMD64 and ARM64 appliance runners. Record the actual Bun version, binary ABI, libc dependencies, CPU requirements and observed kernel versions before stabilizing rentnerproxy-linux-v1.
  • Exercise private HTTP/JSON in both directions using the platform-issued bootstrap descriptor. The app listens on app.sock for /app/v1/.... The platform owns core.sock and exposes scoped /platform/v1/... operations. Rust verifies the kernel peer UID on both connections. Bun validates a separate platform-issued request credential for its installation and generation.
  • Prove sandbox/CSP and frame-bound MessageChannel behavior, static assets, direct navigation, dialogs, keyboard/focus and deep links.
  • Exercise representative contracts for all six apps: monitoring, owned-host discovery, engine contributions, DNS challenge lifecycle, external identity and CrowdSec enforcement.
  • Include a local/bootstrap catalog fixture with platform-supplied trust roots and packaged UI/display assets. Verify a fresh installation with the Marketplace unavailable and startup from the verified installation with the network and catalog absent.

Dependencies

None. This is an initial work item after the approved planning baseline.

These are implementation prerequisites; app-to-app delivery gates do not create runtime dependencies.

Acceptance criteria

  • The pinned Bun executable and packaged TypeScript UI run natively on AMD64 and ARM64. Evidence captures the CPU, ABI, library and kernel baseline and distinguishes measured environments from supported minimums. An incompatible target or runtime profile is rejected before activation.
  • The backend and UI build independently, with embedded Bun and all required local assets. The appliance runs the package using the private Unix endpoint and the approved runtime profile.
  • An unauthorized peer UID, a forged installation context and stale generation credentials are rejected. An already open connection from an old generation loses mutation access at cutover. The app can call only the versioned Platform API within its grants.
  • A spoofed frame or stale MessageChannel generation is rejected. The UI works with themes/languages, accessible keyboard navigation, dialogs and deep links under its actual CSP.
  • DNS, identity and security failure cases have explicit outcomes. The checks assert preservation of the last applied proxy/security behavior where required.
  • Both architectures demonstrate an installation with the Marketplace unavailable and the local catalog/package fixture accessible, followed by startup from a verified installation with the network, catalog and archive absent.
  • Record findings and any contract corrections before declaring the normative v1 contract stable.

Evidence and follow-up

PR #465 completed the internal reference app using standalone Bun 1.4.4 and a separately compiled TypeScript UI. The native run on main passed on Linux AMD64 and ARM64. The artifact reports verify signed local installation, restart from the read-only installation without network or catalog, both socket directions, stale-generation mutation rejection, all six provider scenarios, and Chromium isolation and navigation.

The observed hosts used kernels 7.0.0-1014-aws and 7.0.0-1017-azure with glibc 2.41. The highest referenced symbol version in both Bun executables was GLIBC_2.17. The reports retain ABI and CPU measurements from the exercised hosts. Protocol and compatibility requirements for published packages are tracked in Marketplace #3.

The two-socket proof establishes the private launch descriptor, separate direction-specific credentials and per-request installation/generation binding. The frame-bound UI channel records independent session rotation. Production IPC and lifecycle are tracked in Platform #451 and Platform #453. The public template is Platform #466.

Planning baseline: Beta 4.
This issue schedules future work; backlog creation does not implement or deploy it.
Use focused project checks and short integration/recovery tests. Endurance runs belong to release preparation. Normal PRs need no additional documentation files or screenshot commits unless requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimearea: uienhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions