Skip to content

feat(discovery): add opt-in Docker discovery and label validation #234

Closed

Description

@RentnerKev

Summary

Users currently create Proxy Hosts separately from their Docker Compose services. Add optional discovery of explicitly labeled containers as the input to a later managed-host reconciliation flow.

Scope

  • Define and document a small RentnerProxy label contract for enablement, domain names, target port/protocol, network selection, and supported certificate/access-policy references.
  • Connect to one explicitly configured Docker endpoint; support a constrained read-only API connection and keep discovery disabled by default.
  • List eligible containers, inspect required networking metadata, and consume bounded/reconnecting event streams.
  • Treat Docker labels and container metadata as untrusted input. This step discovers and validates candidates without modifying Proxy Hosts.

Acceptance criteria

  • Only containers with explicit RentnerProxy enablement labels produce candidates.
  • Malformed domains, ambiguous/missing ports or networks, unsupported labels, and conflicting candidates return actionable validation results.
  • The connection is optional; installations without Docker API access retain all existing appliance behavior.
  • The connector uses no container create/start/stop/exec/image/volume mutation operations and documents required read capabilities.
  • A read-only bind mount is not presented as an API authorization boundary; document and verify a constrained endpoint/socket-proxy deployment option.
  • Event reconnects and duplicate events produce bounded, deterministic discovery results.
  • Connection configuration is protected by management permissions and does not appear in public proxy responses or unredacted diagnostics.
  • The first version is scoped to one Docker Engine endpoint; Swarm, Kubernetes, and multi-host orchestration are deferred.

Verification

  • Use Docker API fixtures for label parsing, networking ambiguity, endpoint failures, reconnects, event bursts, and allowed API requests. Add a short optional isolated Docker discovery smoke.

Context

Dependencies and order

Implementation step: B2-05

Priority: P1 / Docker discovery input

Prerequisites: No preceding Beta 2 feature step. Preserve the existing Beta 1 contracts.

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: runtime
    area: docker
    on Oct 10, 2026
  3. added a commit that references this issue on Oct 17, 2026
    684e172
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: dockerarea: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions