Skip to content

LumeWeb/caddy-plugin-cert-webhook

Repository files navigation

Caddy Certificate Event Webhooks

Go Version Caddy Version License: MIT Tests

A Caddy v2 app that hooks into certificate lifecycle events and reports SSL status to a portal service.

Features

  • Subscribes to Caddy TLS events (cert_obtained, cert_renewed, cert_expired)
  • Reports status to portal via SDK (ready or failed)
  • Async delivery with concurrency limiting (100 concurrent)
  • Debug logging via Caddy's { debug } global option

Installation

xcaddy build --with github.com/LumeWeb/caddy-plugin-cert-webhook

Configuration

Env vars only — no Caddyfile directives, no JSON fields:

Variable Required Description
PORTAL_URL Yes Base URL of the portal service
GATEWAY_SECRET Yes Shared secret for authentication

Enable the app in your Caddy JSON config:

{
    "apps": {
        "cert_webhook": {}
    }
}

Debug Logging

{
    debug
}

Enables debug output for event data, webhook delivery, and config resolution.

Status Mapping

Caddy Event Portal Status
cert_obtained ready (or failed if error)
cert_renewed ready (or failed if error)
cert_expired failed

Error Handling

  • Webhook delivery failures are logged but do not block certificate operations

Development

go test ./...
go vet ./...
go fmt ./...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages