Skip to content

feat(dns): add shared Cloudflare connections and zone selection #230

Closed

Description

@RentnerKev

Summary

Cloudflare DNS-01 currently accepts provider configuration for certificate operations. Beta 2 also needs DDNS across several zones without repeatedly entering credentials or changing existing certificate behavior. Add a shared, encrypted Cloudflare connection model that DNS-01 and DDNS can reference.

Scope

  • Manage named Cloudflare connections and select multiple permitted zones through an authenticated management workflow.
  • Define typed connection references, ownership, read/manage permissions, validation, and connection-test results before implementing consumers.
  • Use narrowly scoped API tokens; report missing access to selected zones with actionable, redacted errors.
  • Preserve existing certificate-bound credentials and renewal behavior. Document an additive adoption path; sharing must not require broadening token permissions.

Acceptance criteria

  • An authorized administrator can create, test, edit, and remove a connection, with explicit handling of active DNS-01/DDNS references.
  • Zone selection supports several zones without allowing a selected zone to escape the connection's permissions.
  • Stored secrets remain encrypted and are never returned through ordinary reads, realtime events, audit records, support exports, or browser errors.
  • Existing DNS-01 requests and persisted certificate renewals continue to work without manual credential conversion.
  • Token replacement/revocation and unavailable Cloudflare APIs leave existing working configuration intact.
  • New settings and references have a documented backup/restore and compatibility contract.

Verification

  • Cover authorization, redaction, zone selection, reference validation, token rotation, provider failures, and existing DNS-01 regression cases using controlled fixtures.

Context

Dependencies and order

Implementation step: B2-01

Priority: P1 / shared prerequisite

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: certificates
    area: ui
    on Oct 10, 2026
  3. RentnerKev commented on Oct 17, 2026

    @RentnerKev
    MemberAuthor

    Implemented and verified in merged PR #246. Tracking B2-01 as completed.

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: certificatesarea: runtimearea: uienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions