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
Register the monitoring legacy handoff source, so the monitoring app can take over configuration and history, and fence every built-in monitoring writer. Prerequisite for RentnerProxy/app-monitoring#1.
Current state
- No handoff source exists.
legacyFeatureHandoffSourcesis empty (web/src/server/LegacyHandoff/sources.server.ts), sobeginreturns 404 for every domain. - No HostMonitoring writer uses
withPlatformOwnedLegacyFeature. That covers the policy route, probe completion, pruning, host invalidation and availability incidents. - The worker checks ownership only when it starts (
whilePlatformOwns('monitoring')inweb/src/start.ts), so a running worker continues after a handoff until the next restart. beginruns the export inside one App API transaction of 10 s. The maximum retained history (100,000 observations and 10,000 incidents, about 15 MB) fits the part limits (1,024 × 256 KiB), but may not fit that transaction.
Scope
- A
monitoringsource:inspectreports configured policies and references.exportwrites policies, observations and incidents in a versioned, documented part format.retirestops built-in probes and notifications and marks the built-in data retired. The tables stay until the removal step of feat: extract monitoring into an independently updateable official app app-monitoring#1.
- Fence every built-in writer with
withPlatformOwnedLegacyFeature. - Stop the running worker at
beginand keep it stopped after commit, without a restart. The routes report the handed-off state, and the UI hides the built-in controls after commit. - Aborting the handoff on uninstall returns ownership and resumes the worker.
- The export completes within the transaction limits for the maximum history, or runs outside one long transaction while keeping the fence.
Dependencies
- feat(notifications): let apps open and resolve deduplicated incidents #593 (app incidents), so open outages can continue in the app without a gap.
Acceptance criteria
- After
begin, no built-in policy, observation or incident is written. - The export is complete, deterministic and resumable for the maximum retained history, and its digest is stable across retries.
- Commit stops built-in probes and notifications without a restart. No outage notification is sent twice across the handover.
- Aborting before commit restores built-in monitoring with its data intact.
- The upgrade preview reports monitoring as app-owned after commit.
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
fix(monitoring): wait for a running handoff before host resets and po…
fix(notifications): end every handed-over outage once on every notifi…
fix(monitoring): keep built-in controls retired after a handoff report
ci(apps): exercise the monitoring handoff in the native app fixture
test(monitoring): plan the retention fairness test on its seeded volume
fix(notifications): bind monitoring continuations durably and give th…
fix(monitoring): keep monitoring data and notices consistent around h…
fix(monitoring): retire the dialog on handed-off reads and reset it p…
feat(apps): register the monitoring legacy handoff source and fence i…