Skip to content

feat(apps): add a monitoring-class upstream probe with stage results #592

Done

Description

@RentnerKev

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}, unreachable or timedOut, 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.v2 in the app contracts (RentnerProxy/marketplace) and the platform. It returns the upstream-only result of inspectControllerDomain: 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.v1 stays unchanged.

Dependencies

Acceptance criteria

  • Shared fixtures show that the result lets an app reproduce classifyHostMonitoringOutcome exactly: expected status, tls_failed, upstream_* and configuration_*.
  • 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.

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