Skip to content

feat(discovery): reconcile labeled containers into managed proxy hosts #235

Closed

Description

@RentnerKev

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

Context

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.

Activity

  1. added this to the v1.0.0-beta.2 milestone on Oct 10, 2026
  2. added
    enhancement
    area: proxy
    area: runtime
    on Oct 10, 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: proxyarea: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions