Repository navigation
Done
Labels
area: runtimeCaddy and privileged controller runtime behavior.enhancementNew feature or requestsecurityPublic security hardening or remediation; disclose vulnerabilities privately.
Milestone
Description
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.v1anddiagnostics.upstream.probe.v1are scoped per host ID. Hosts created after approval are not covered. POST /proxy-hosts/queryreturns 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
allProxyHostsscope 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
- feat(apps): approve requested app capabilities when installing or updating #590 (grant approval flow)
Acceptance criteria
- An app with the
allProxyHostsread 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.v1cannot 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.
Metadata
Metadata
Assignees
Labels
area: runtimeCaddy and privileged controller runtime behavior.enhancementNew feature or requestsecurityPublic security hardening or remediation; disclose vulnerabilities privately.
Activity
feat(apps): approve all proxy hosts and list the complete host view (#…
feat(apps): deliver proxy host lifecycle events to covered apps (#603)