Skip to content

acme_server stopped working in 2.7.5 (provisioner not found) #5911

@smrqdt

Description

@smrqdt

After updating to caddy 2.7.5, acme_server stopped working, the request for the directory endpoint always returns a 404 error.

minimal, reproducible example Caddyfile:

localhost
acme_server

Request from caddy 2.7.5 (tested from github releases, caddyserver.com and archlinux package):

% curlie https://localhost/acme/local/directory  
HTTP/2 404 
alt-svc: h3=":443"; ma=2592000
content-type: application/json
server: Caddy
content-length: 85
date: Mon, 23 Oct 2023 16:25:44 GMT

{
    "type": "notFound",
    "detail": "resource not found",
    "message": "provisioner  not found"
}

The problem also happens if a CA is specified for acme_server.

Before: response from caddy 2.7.4 (from github releases):

% curlie https://localhost/acme/local/directory  
HTTP/2 200 
alt-svc: h3=":443"; ma=2592000
content-type: application/json
server: Caddy
content-length: 272
date: Mon, 23 Oct 2023 16:25:56 GMT

{
    "newNonce": "https://localhost/acme/local/new-nonce",
    "newAccount": "https://localhost/acme/local/new-account",
    "newOrder": "https://localhost/acme/local/new-order",
    "revokeCert": "https://localhost/acme/local/revoke-cert",
    "keyChange": "https://localhost/acme/local/key-change"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions