v0.40.1
This commit is contained in:
1 parent
748fe1d146
commit
27b640a0df
22 files changed
+532
-30
No files matched your search
@@ -2,6 +2,15 @@
|
||||
|
||||
Release history focused on **features, settings, default behavior, compatibility and fixes**. Changes to internal code structure and preliminary performance experiments are intentionally omitted. Historical descriptions reflect their respective releases; consult the current documentation for the settings available in the latest release.
|
||||
|
||||
## 0.40.1 — Forced certificate renewal (panel and headless)
|
||||
|
||||
- **Panel — Force renewal now:** each managed ACME certificate in **Certificates → Automatic renewal** has a new action next to *Check now* and *Validate renewal (dry run)*. It runs `certbot renew --force-renewal` for that profile, so a new certificate is requested even if the current one is not due (key compromise, CA revocation, chain change). A confirmation explains the CA rate limits; the current certificate stays active until the new pair is validated and deployed. The job kind is `renewal-forced`, the audit action `acme.renew_forced`; if Certbot returns the installed pair unchanged the result is `acme.force_unchanged`.
|
||||
- **API:** `POST /api/acme/renew` accepts `"force": true` (default `false`). It cannot be combined with `dry_run` (`400 acme.force_invalid`); the automatic scheduler never forces. OpenAPI updated.
|
||||
- **CLI (panel mode):** new `rust-proxy tls renew --id ID [--force | --dry-run]`, using the local administration listener like `tls reload`.
|
||||
- **Headless — `rust-proxy --headless tls renew [--force] [--id NAME|ID ...]`:** asks the running service to check its ACME certificates now (only due ones, ignoring the failure back-off) or, with `--force`, to request new ones regardless of expiry — all explicit and `acme.auto` certificates, or only those whose id or domain matches `--id`. The command writes `<data-dir>/headless-acme-renew.json` (`0600`, owned by the data directory owner) and sends `SIGUSR1`; the ACME task consumes the request once, after any request in progress. Requests older than 10 minutes are discarded; unknown targets are logged. On Linux the command refuses to signal a service that does not handle `SIGUSR1` (older than 0.40.1) instead of terminating it. `--dry-run` is rejected in headless mode (use `staging`).
|
||||
- **Compatibility:** configuration format, existing API fields and default behaviour are unchanged; automatic renewal still lets Certbot decide when a certificate is due.
|
||||
- **Verification:** new unit tests for the headless request file (round trip, single consumption, `0600`, stale/invalid requests, target matching by id and domain) and for rejecting `force` with `dry_run`/automatic renewal; Certbot worker request validation checked with Python; full suite passes (1029 library tests, 7 CLI tests), `cargo clippy --all-targets` and `cargo fmt --check` clean. The real binary was run in headless mode with two ACME certificates: `tls renew --force --id api.example.com` was picked up after the request in progress, forced only that certificate past its back-off and the request file was removed; `--dry-run` and invalid targets were refused. Issuance from a real CA and the panel button in a browser were not tested in this environment.
|
||||
|
||||
## 0.40.0 — Headless HTTPS, automatic certificates, routes without a file and watch
|
||||
|
||||
All additions are headless-only and optional; without them headless and panel mode behave as in 0.39.2. See [Headless mode](docs/HEADLESS.md#https-certificate-files-and-automatic-certificates).
|
||||
|
||||
Reference in new issue
Block a user