Wildcard certificate per target domain (DNS-01) #2

Merged
oliver.maklott merged 1 commit from wildcard-tls into main 2026-11-20 19:54:37 +01:00

The operator revised the certificate decision: the hosting server now uses one wildcard certificate per target domain, obtained with the DNS-01 challenge, instead of one certificate per site.

  • deploy/Caddyfile:
    • auto_https prefer_wildcard;
    • import /etc/caddy/tls.caddy;
    • a *.aivopod-sites.eu block with import tls_wildcard that answers the 404 page for hosts without a host file;
    • the apex keeps its own certificate.
  • deploy/tls.caddy.example: the tls_wildcard snippet with dns <provider>. Caddy is built with xcaddy and the provider's module; credentials come from caddy.service's environment.
  • ci/caddy_validate.sh: stubs the snippet with tls internal.
  • README: install steps, Caddy ≥ 2.10, and what <target> means in the per-target import.

Host files, rendering and tests are unchanged.

Checked locally with Caddy 2.10.2 (tls internal in place of the DNS issuer):

  • A golden site host and auth. are served with DNS:*.aivopod-sites.eu, and an unknown host answers 404.
  • Only two certificates are obtained, the wildcard and the apex.
  • caddy validate passes with all golden host files.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT

The operator revised the certificate decision: the hosting server now uses one wildcard certificate per target domain, obtained with the DNS-01 challenge, instead of one certificate per site. - `deploy/Caddyfile`: - `auto_https prefer_wildcard`; - `import /etc/caddy/tls.caddy`; - a `*.aivopod-sites.eu` block with `import tls_wildcard` that answers the 404 page for hosts without a host file; - the apex keeps its own certificate. - `deploy/tls.caddy.example`: the `tls_wildcard` snippet with `dns <provider>`. Caddy is built with xcaddy and the provider's module; credentials come from caddy.service's environment. - `ci/caddy_validate.sh`: stubs the snippet with `tls internal`. - README: install steps, Caddy ≥ 2.10, and what `<target>` means in the per-target import. Host files, rendering and tests are unchanged. Checked locally with Caddy 2.10.2 (`tls internal` in place of the DNS issuer): - A golden site host and `auth.` are served with `DNS:*.aivopod-sites.eu`, and an unknown host answers 404. - Only two certificates are obtained, the wildcard and the apex. - `caddy validate` passes with all golden host files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT
One wildcard certificate per target domain (DNS-01) instead of one per site.
All checks were successful
Test / test (pull_request) Successful in 8s
5b91ed558e
Operator decision 2026-11-20. The main Caddyfile gets a `*.<domain>` block
that uses the snippet `tls_wildcard` from /etc/caddy/tls.caddy, which names
the DNS provider (Caddy built with xcaddy). It also sets
`auto_https prefer_wildcard`; hosts without a host file get the 404 page.
Host files are unchanged. CI validates with a `tls internal` stub. Caddy
2.10.2 checked: site hosts and `auth.` are served with the wildcard
certificate; only the wildcard and the apex certificates are obtained.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4eShm8JT4LPt8MJdXT
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc/limedoc-sites-deployer!2
No description provided.