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
Add an upstream probe for apps that returns the same stage result as built-in monitoring, with limits sized for continuous monitoring. Prerequisite for RentnerProxy/app-monitoring#1.
Current state
diagnostics.upstream.probe.v1 (probeAppProxyUpstream in web/src/server/AppRuntime/hosts.server.ts):
- allows 10 probes per minute per installation; built-in monitoring runs up to about 2,000 per minute;
- always probes the alphabetically first domain;
- returns only
reachable{durationMs},unreachableortimedOut, without HTTP status or a DNS, TLS, connect or configuration failure code; - runs on the interactive auth database pool with two context reads per probe, and shares core's 64-permit monitoring admission.
Scope
- A new capability
diagnostics.upstream.probe.v2in the app contracts (RentnerProxy/marketplace) and the platform. It returns the upstream-only result ofinspectControllerDomain: HTTP status, duration, failure stage and code, the probed domain, and a context revision. - The caller chooses the domain from the host's domains.
- Monitoring-class admission with a per-installation budget, separate from interactive Domain Checks, and batch calls.
diagnostics.upstream.probe.v1stays unchanged.
Dependencies
- feat(apps): give apps an all-proxy-hosts scope, full host listing and host events #591 (all-hosts scope and host listing)
Acceptance criteria
- Shared fixtures show that the result lets an app reproduce
classifyHostMonitoringOutcomeexactly: expected status,tls_failed,upstream_*andconfiguration_*. - One installation can sustain the built-in limits (1,000 policies at 60 s) without starving interactive Domain Checks. The budget is enforced per installation.
- Probes reach only hosts covered by the grant. Disabled and removed hosts return explicit codes.
- The contract and platform changes ship together, and v1 behavior is unchanged.
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(contracts): add the monitoring-class upstream probe to App API v1 (
feat(core): admit app upstream probes with a per-installation budget (#…