Skip to content

feat(apps): add provider registration and validated engine contributions #454

Open

Description

@RentnerKev

Phase: 4 | Priority: P0

Create the generic broker that lets official apps extend control-plane functions while platform retains final authority.

Scope

  • Register providers by app/generation/capability and expose only negotiated typed operations.
  • Support the v1 domain profiles for DNS challenges, external identity, owned-host discovery, load-balancer contributions and CrowdSec integration.
  • Validate and persist approved engine contributions with ownership/revision checks and a recoverable last-good runtime state.
  • Expose narrow privileged adapters, including Docker observation and log consumption; apps do not get controller/Caddy master access.

Dependencies

These are implementation prerequisites; app-to-app delivery gates do not create runtime dependencies.

Acceptance criteria

  • Registration is inactive until its generation is promoted and is revoked/fenced on drain or replacement.
  • Unauthorized provider claims, callback substitution, cross-app resource writes and conflicting/stale engine contributions are rejected.
  • DNS jobs retain core order/key authority and defined present/check/cleanup retry/cancellation semantics.
  • External identity results cannot mint sessions, link accounts or assign roles without platform-owned transaction and policy checks.
  • Existing balancing/security behavior is preserved across app-management restarts; app failure has an explicit domain outcome.
  • Native engine capability changes are preflighted and visible; unsupported modules cannot be dynamically injected or silently disable protection.

Planning baseline: Beta 4.
This issue schedules future work; backlog creation does not implement or deploy it.
Use focused project checks and short integration/recovery tests. Endurance runs belong to release preparation. Normal PRs need no additional documentation files or screenshot commits unless requested.

Activity

  1. added this to the v1.0.0-beta.4 milestone on Nov 15, 2026
  2. added
    enhancement
    security
    area: runtime
    on Nov 15, 2026
  3. RentnerKev commented on Nov 26, 2026

    @RentnerKev
    MemberAuthor

    Progress update. This issue stays open.

    Merged

    Criterion State
    1. Registration is inactive until promotion and is revoked or fenced on drain or replacement Covered by #558 and #575. "provider registrations are recorded per generation and served only to the granted live generation" (providers.db.test.ts) covers preparing, granted, replaced-grant, superseded and revoked states. privileged_web_socket_serves_generation_scoped_ui covers a newer generation withdrawing the older one while a call is in flight. closing_a_generation_withdraws_its_provider_endpoint covers a stop. privileged_signed_lifecycle invokes the fixture app's provider after a manager restart.
    2. Unauthorized claims, callback substitution, cross-app writes and conflicting or stale engine contributions are rejected Provider side covered. The broker accepts only providers its own generation registered, and re-checks the grant and lease with the authority on every call. It releases a result only if it matches the requested profile, action and resource (rejects_unregistered_and_invalid_invocations_before_contacting_peers, invokes_only_granted_providers_and_releases_only_matching_results, provider_results_must_answer_their_invocation). Engine contributions are open; they come with the load-balancer and CrowdSec provider PRs.
    3. DNS jobs keep core order/key authority and defined retry and cancellation Open (DNS provider PR).
    4. External identity results cannot mint sessions, link accounts or assign roles on their own Open (OIDC provider PR).
    5. Balancing and security behavior survives app-management restarts; app failure has an explicit domain outcome Open (load-balancer and CrowdSec provider PRs).
    6. Engine capability changes are preflighted and visible; modules cannot be injected or silently disable protection Covered by #576: engine_providers_require_the_engine_capability_that_applies_them and engine_capability_changes_are_preflighted_for_engine_providers. That PR also documents the fixed module set and why apps have no access to the Caddy admin socket.

    Remaining

    • PR 2 to PR 6: the DNS, load-balancer, OIDC, Discovery and CrowdSec provider profiles. Each one is needed only before the matching feature is extracted into an app.
    • From feat(apps): implement journaled lifecycle and generation-safe updates #453: replace the sticky provider_dependencies_unknown marker with dependency-aware removal checks, and add certificate and pool dependencies as their providers land. Today the marker blocks removal of every provider app until someone clears it by hand.
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