Skip to content

Admin API auth for remote external mode (mTLS / secured admin endpoint) #15

Description

@gsmlg

Problem

config :caddy, admin_url: supports plain TCP (http://host:2019) but there is no TLS, mutual-TLS, or token support in Caddy.Admin.Transport / Caddy.Admin.Request.

Caddy's remote admin endpoint (admin.identity / admin.remote) requires mutual TLS. Without client-cert support, remote management with this library is effectively insecure-only — fine for localhost/unix-socket, unusable for managing Caddy across hosts.

Proposal

config :caddy,
  admin_url: "https://caddy-host:2021",
  admin_tls: [
    certfile: "/path/client.crt",
    keyfile: "/path/client.key",
    cacertfile: "/path/ca.crt"
  ]

Wire the TLS options through the transport layer for https:// admin URLs.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions