You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(controller): split runtime modules and clarify code structure - #93
The controller's large certificate, DNS, renderer and runtime files combined unrelated responsibilities, making persistence and recovery changes difficult to review. Split them into focused modules with small public facades and explicit imports. Separate ACME account registration and order handling, runtime lifecycle and configuration, and safe-path helpers.
Remove explanatory comments from maintained Rust, TypeScript and shell source as requested. Preserve functional tool directives and generated-file markers. Document the module map and recovery invariants in docs/controller-runtime.md and the contribution guide. Existing APIs, serialization, certificate leases, rollback paths and Caddy output remain unchanged.
Tested and built merge commit: 021bee60b39f933347861b567d13225eaf6c79aa
Pull request head commit: 0d660bd64fa71fceab38f142cbdf38580ceb26dd
For reproducible testing and bug reports, prefer pr-93-021bee60b39f. The pr-93 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:
Back up PostgreSQL.
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.
Prefer a separate test database and separate Docker volumes.
Use an isolated Docker Compose project and avoid production port bindings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
area: authAuthentication, accounts, sessions, passkeys, and access control.area: certificatesCertificates, ACME, trusted CAs, and TLS material.area: ciContinuous integration and GitHub automation.area: databaseDatabase schema, migrations, and persistence.area: dockerDocker images, Compose configuration, and deployment.area: proxyProxy host configuration and request forwarding.area: runtimeCaddy and privileged controller runtime behavior.area: uiWeb interface components, routes, styling, and localization.documentationImprovements or additions to documentation
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The controller's large certificate, DNS, renderer and runtime files combined unrelated responsibilities, making persistence and recovery changes difficult to review. Split them into focused modules with small public facades and explicit imports. Separate ACME account registration and order handling, runtime lifecycle and configuration, and safe-path helpers.
Remove explanatory comments from maintained Rust, TypeScript and shell source as requested. Preserve functional tool directives and generated-file markers. Document the module map and recovery invariants in
docs/controller-runtime.mdand the contribution guide. Existing APIs, serialization, certificate leases, rollback paths and Caddy output remain unchanged.Related issue
Closes #91
Type of change
Testing
bun run check: 752 web tests and 160 Rust tests passed, including format, lint, types, database validation and production builds.bun run certificates:smoke: 45 checks passed.bun run proxy:smoke: 36 checks passed.bun run upstream-tls:smoke: 11 checks passed.Checklist
Breaking changes
None. No schema migration or release tag is included.