Repository navigation
Closed
Labels
area: proxyProxy host configuration and request forwarding.area: runtimeCaddy and privileged controller runtime behavior.enhancementNew feature or request
Milestone
Description
Summary
Convert validated Docker candidates into clearly owned Proxy Hosts and keep their configured targets synchronized as containers are recreated. All routing changes must continue through the existing typed Desired-State/controller flow.
Scope
- Persist stable discovery-source identity and define ownership of label-managed fields versus editable host settings.
- Create/update eligible hosts idempotently, validate certificate/access-policy references through existing contracts, and report domain conflicts before applying changes.
- Coalesce container-event bursts into bounded reconciliations; never write Caddy configuration outside the established controller.
- Define behavior for stopped, removed, recreated, and unlabeled containers, temporary endpoint outages, and administrator detachment of a discovered host.
Acceptance criteria
- Explicitly labeled services create valid hosts and container recreation updates targets without duplicate hosts.
- Manual hosts and hosts owned by another source are never silently adopted, overwritten, or deleted.
- The source owns clearly documented fields; conflicting UI edits are rejected or require explicit detachment from discovery.
- Stopping a container or losing the Docker endpoint does not silently delete its host/certificate or mistake an incomplete inventory for mass removal.
- Confirmed removal or opt-out produces a visible orphaned state; disabling/deleting/detaching requires an explicit documented policy.
- Certificate and access-policy references preserve existing validation, authorization, and lifecycle behavior.
- Reconciliation is idempotent and event bursts do not create unnecessary reloads.
- Failure preserves the last applied proxy configuration and exposes candidate-level results with redacted audits.
Verification
- Cover recreate/remove/stop, stale inventories, conflicts with manual hosts, ownership/detachment, certificate/policy errors, retries, and event bursts. Include a focused controller/Caddy smoke; preserve existing traffic-reset assertions related to bug(scale): concurrent Caddy configuration updates reset proxy traffic #171.
Context
- Existing upstream/runtime blocker: bug(scale): concurrent Caddy configuration updates reset proxy traffic #171. Do not work around it by weakening traffic/concurrency checks.
Dependencies and order
Implementation step: B2-06
Priority: P1 / managed discovery reconciliation
Prerequisites: #234 (B2-05).
Roadmap: v1.0.0-beta.2. Follow the numbered milestone sequence for a straightforward step-by-step implementation.
Metadata
Metadata
Assignees
Labels
area: proxyProxy host configuration and request forwarding.area: runtimeCaddy and privileged controller runtime behavior.enhancementNew feature or request
Activity