Skip to content

feat(certificates): expose durable operation status and renewal events - #89

Merged
RentnerKev merged 2 commits into
mainfrom
feat/durable-certificate-operations
Sep 12, 2026
Merged

RentnerKev merged 2 commits into
mainfrom
feat/durable-certificate-operations

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Certificate issuance and renewal now retain operation IDs, observed stages, and a bounded event journal across controller restarts. A server-side worker imports certificate metadata and deduplicated audit events without an open browser. Explicit store readiness returns 503 for unavailable/corrupt stores instead of an authoritative empty certificate list.

The certificate UI displays operation/retry status, lifecycle timestamps, challenge type and staging warnings. Migration 0018 adds metadata and event checkpoints/receipts; existing snapshots remain compatible. The controller still owns certificate material and runtime operations.

Related issue

Closes #78

Type of change

  • New feature
  • Bug fix
  • Documentation

Testing

  • Full repository check passed against current main with isolated PostgreSQL and Redis: 748 Bun tests, 155 Rust tests, formatting, lint, types, migrations and production builds.
  • Additional recovery regressions: interrupted sidecar writes, repeated restart/event replay, import history, and corrupted cursor repair; PostgreSQL event-worker suite 5/5 passed.
  • Real Caddy proxy smoke: 36 checks passed.
  • HTTPS upstream TLS smoke: 11 checks passed.
  • Certificate smoke: 42 checks passed. Production upgrade/backup/recovery smoke: 29 assertions passed.
  • Browser review of actual certificate details at desktop and 390px mobile widths.

Checklist

  • I tested the relevant functionality.
  • Existing tests pass.
  • I added or updated tests where appropriate.
  • This PR does not include secrets, credentials, production data, or private certificates/keys.
  • I updated documentation where necessary.
  • I linked the relevant issue for a feature or fix.

Breaking changes

None. The additive database migration must run before starting the updated web application. Existing certificate indexes are upgraded on load. No alpha.4 tag or release is published by this PR.

Screenshots

Validated locally in the browser at desktop and mobile widths; no screenshots attached.

@RentnerKev RentnerKev added this to the v1.0.0-alpha.4 milestone Sep 12, 2026
@coderabbitai

coderabbitai Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 175596fc-21d1-49c2-92d1-27139254afba


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Improvements or additions to documentation area: runtime Caddy and privileged controller runtime behavior. area: certificates Certificates, ACME, trusted CAs, and TLS material. area: database Database schema, migrations, and persistence. area: ui Web interface components, routes, styling, and localization. labels Sep 12, 2026
@RentnerKev
RentnerKev force-pushed the feat/durable-certificate-operations branch from 8e3f2fe to 026b5ec Compare September 12, 2026 19:05
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

🐳 RentnerProxy PR Preview

A test-only image for this pull request has been published successfully.

Images

Type Image
Moving preview for this PR ghcr.io/rentnerkev/rentnerproxy:pr-89
Exact tested build ghcr.io/rentnerkev/rentnerproxy:pr-89-e25d2be77ce8

Image digest: sha256:1a108b53b277099a5dc5a02478e318b7dc61d83d30c7b2de5615fad7d2b5dc7d

Tested and built merge commit: e25d2be77ce86b84624d5639b9f83e724e80424d

Pull request head commit: 6d99ece951022e27686473c1abc893d77a05c323

For reproducible testing and bug reports, prefer pr-89-e25d2be77ce8. The pr-89 tag moves to the newest successful preview for this PR.


⚠️ Unreviewed development preview

This image contains unreviewed pull-request code. It may contain bugs, breaking changes, incomplete or incompatible migrations, configuration errors, and changes that damage data or runtime state.

Do not use this PR preview image with production data.

Before testing:

  1. Back up PostgreSQL.
  2. Back up the complete RentnerProxy controller/runtime state in /var/lib/rentnerproxy, including certificates, private keys, ACME state, active configuration, last-known-good state, and trusted CA material.
  3. Prefer a separate test database and separate Docker volumes.
  4. Use an isolated Docker Compose project and avoid production port bindings.

Docker

docker pull ghcr.io/rentnerkev/rentnerproxy:pr-89-e25d2be77ce8

Docker Compose

In a separate test copy of docker-compose.yml, replace the service image with:

image: ghcr.io/rentnerkev/rentnerproxy:pr-89-e25d2be77ce8

Then use an isolated Compose project:

docker compose --project-name rentnerproxy-pr-89 pull
docker compose --project-name rentnerproxy-pr-89 up -d

The repository Compose file binds ports 80, 81, and 443; change those bindings or stop the production stack before testing.

This preview is intended only for testing this pull request and is not a production release.

@RentnerKev
RentnerKev merged commit 916da44 into main Sep 12, 2026
21 checks passed
@RentnerKev
RentnerKev deleted the feat/durable-certificate-operations branch September 12, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: certificates Certificates, ACME, trusted CAs, and TLS material. area: database Database schema, migrations, and persistence. area: runtime Caddy and privileged controller runtime behavior. area: ui Web interface components, routes, styling, and localization. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(certificates): expose durable operation status and renewal events

1 participant