Skip to content

feat(apps): give apps an all-proxy-hosts scope, full host listing and host events #591

Done

Description

@RentnerKev

Phase: 6 | Priority: P0

Give apps the host view that monitoring needs: one approved scope for all proxy hosts, a complete host listing and host lifecycle events. Prerequisite for RentnerProxy/app-monitoring#1.

Current state

  • Grants for proxy.hosts.read.v1 and diagnostics.upstream.probe.v1 are scoped per host ID. Hosts created after approval are not covered.
  • POST /proxy-hosts/query returns only {id, hostname, revision}, with the first domain as hostname (web/src/server/AppRuntime/hosts.server.ts). The revision hashes the whole host summary.
  • The app event stream only carries changes the app made itself (proxyHostChanged, proxyHostRemoved). Changes from platform write paths do not reach apps.

Scope

  • A dynamic allProxyHosts scope for read and probe grants only, approved explicitly by the Owner. It includes hosts created later. Managing hosts stays limited to per-host owned scopes.
  • The listing returns enabled state, all domains, an upstream summary (targets, failover pool) and a probe revision that changes only when fields relevant to a probe change. It never returns secrets, private keys or access lists.
  • Durable host events (created, updated, enabled, disabled, removed) for apps whose grant covers the host, on the existing event stream with cursors.

Dependencies

Acceptance criteria

  • An app with the allProxyHosts read grant lists every host, including hosts created after approval. Without it, the app sees only granted host IDs.
  • The listing contains enabled state, domains, upstream summary and probe revision, and nothing secret.
  • Every platform write path (single and bulk host changes, trusted CA changes, Docker discovery, app-owned hosts) produces exactly one event per change for covered apps. Resuming from a cursor does not duplicate events.
  • Calls made on behalf of a user only return hosts that user may view.
  • proxy.hosts.manage-owned.v1 cannot use the new scope.

Tracked by RentnerProxy/app-monitoring#1 and #460.
Use focused project checks and short integration/recovery tests. Endurance runs belong to release preparation.

Activity

  1. added this to the v1.0.0-beta.4 milestone on Nov 26, 2026
  2. added
    enhancement
    security
    area: runtime
    on Nov 26, 2026
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: runtimeenhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions