Compare commits

...
150 Commits
Author SHA1 Message Date
parkel 6e73e342ab Merge pull request 'Prepare the Coulobre v0.4.0-rc.1 release candidate' (#79) from release/v0.4.0-rc.1 into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #79
2026-11-21 22:53:49 +01:00
parkel 8ecd4a41eb Prepare Coulobre Panel v0.4.0 release candidate
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 22:35:49 +01:00
parkel 10476cce57 Merge pull request 'Back up and restore mailboxes on a separate mail node' (#78) from feature/remote-mailbox-backup into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #78
2026-11-21 22:34:03 +01:00
parkel 386525d314 Back up and recover remote mailboxes from the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 22:18:59 +01:00
parkel 13cb45dfe4 Stream native mailbox archives over a constrained SSH transport 2026-11-21 22:18:59 +01:00
parkel d076f111b6 Merge pull request 'Check and provision mail-domain DNS' (#77) from feature/mail-domain-dns-checks into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #77
2026-11-21 22:06:30 +01:00
parkel ef95ed9521 Check mail-domain DNS and provide provider setup records
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 22:04:15 +01:00
parkel 004a8b4d81 Provision DKIM and publish managed mail DNS records 2026-11-21 22:04:15 +01:00
parkel bb617a99ee Merge pull request 'Add SpamAssassin filtering for Postfix mail nodes' (#74) from feature/mail-spam-filtering into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #74
2026-11-21 21:39:48 +01:00
parkel 7d380f093d Monitor SpamAssassin services on mail nodes
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 21:00:42 +01:00
parkel de9a560f6a Integrate SpamAssassin with Postfix mail delivery 2026-11-21 21:00:42 +01:00
parkel 3afdbb08ad Merge pull request 'Open the selected mailbox in Roundcube' (#73) from feature/roundcube-mailbox-signon into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #73
2026-11-21 20:52:27 +01:00
parkel 653d365645 Document and package the Roundcube sign-on plugin
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 20:18:11 +01:00
parkel 07b26838c9 Add mailbox-scoped sign-on for Roundcube 2026-11-21 20:18:05 +01:00
parkel 8f9c5c0c94 Merge pull request 'Prepare the Coulobre v0.3.0-rc.1 release candidate' (#72) from release/v0.3.0-rc.1 into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #72
2026-11-21 19:56:02 +01:00
parkel 92d48be5fa Prepare Coulobre Panel v0.3.0 release candidate
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 19:45:59 +01:00
parkel e31f4e0608 Merge pull request 'Retire hosting accounts and release managed resource names' (#71) from feature/account-retirement into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #71
2026-11-21 19:44:11 +01:00
parkel 48bc3776b4 Verify and document account retirement policies
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 19:40:19 +01:00
parkel 103783c5d8 Manage hosting account retirement and name release in the panel 2026-11-21 19:40:19 +01:00
parkel 47a4d4e6cb Archive and detach managed resources on hosting nodes 2026-11-21 19:40:19 +01:00
parkel f1d0d8ff3e Merge pull request 'Rotate database and mailbox passwords from the panel' (#70) from feature/service-credential-rotation into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #70
2026-11-21 19:24:30 +01:00
parkel 0ab0eebfc6 Deploy remote mailbox credentials over a dedicated SSH relay
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 19:23:01 +01:00
parkel 651f041e84 Confirm and audit credential rotation in the panel 2026-11-21 19:23:01 +01:00
parkel c2655b57f5 Rotate managed database and mailbox passwords on their nodes 2026-11-21 19:23:01 +01:00
parkel f7d9336bdb Merge pull request 'Manage reseller access, hosting plans, and accounts in the panel' (#69) from feature/reseller-management into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #69
2026-11-21 19:09:38 +01:00
parkel df924c0025 Verify and document reseller policy and audit history
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 19:08:45 +01:00
parkel 7ec11a69b3 Manage reseller access, plans, and accounts in the panel 2026-11-21 19:08:45 +01:00
parkel 9bef23b5e4 Merge pull request 'Suspend and resume hosting account services' (#68) from feature/account-suspension into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #68
2026-11-21 19:01:21 +01:00
parkel 296401a436 Manage hosting service suspension in the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 18:55:41 +01:00
parkel deaa18b2f3 Add reversible service restrictions to hosting nodes 2026-11-21 18:55:41 +01:00
parkel 1f1a6f4e1d Merge pull request 'Verify core release artifacts against their Git revision' (#67) from chore/check-core-release-artifacts into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #67
2026-11-21 18:38:53 +01:00
parkel 24ddc7a4af Run artifact verification before pushing release tags
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 18:24:33 +01:00
parkel 945d4232cc Verify core distribution artifacts against the reviewed Git tree 2026-11-21 18:24:33 +01:00
parkel 847337bfc3 Merge pull request 'Prepare the Coulobre v0.2.0-rc.1 release candidate' (#55) from release/v0.2.0-rc.1 into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #55
2026-11-21 18:01:16 +01:00
parkel df527438da Document the in-place panel upgrade procedure
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 17:52:19 +01:00
parkel 75032fa004 Prepare Coulobre 0.2.0rc1 package metadata 2026-11-21 17:52:19 +01:00
parkel 7411d59a02 Merge pull request 'Show local and remote service health in the admin panel' (#54) from feature/admin-service-health into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #54
2026-11-21 17:50:27 +01:00
parkel 274554a555 Deploy a periodic collector and read-only remote health probes
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 17:43:17 +01:00
parkel 37b4a66ba4 Collect and display per-node service health observations 2026-11-21 17:43:17 +01:00
parkel 9a09314758 Merge pull request 'Provision mail and publish DNS on separate servers' (#53) from feature/remote-mail-dns-nodes into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #53
2026-11-21 17:36:53 +01:00
parkel 8974b55f98 Use transport-neutral DNS and mailbox failure messages
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 17:32:52 +01:00
parkel 066fbd9be3 Document separate and shared DNS and mail nodes 2026-11-21 17:31:00 +01:00
parkel dc19e4a59a Relay DNS and mailbox provisioning over restricted SSH connections 2026-11-21 17:31:00 +01:00
parkel df9f7c3284 Merge pull request 'Prepare the Coulobre v0.1.0-rc.1 release candidate' (#51) from release/v0.1.0-rc.1 into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #51
2026-11-21 17:10:26 +01:00
parkel b9afdcb314 Document the source and wheel release checks
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 17:01:07 +01:00
parkel f6090f5646 Package the first Coulobre release candidate and deployment files 2026-11-21 17:01:07 +01:00
parkel 49a819ce85 Merge pull request 'Verify the single-server installation and account recovery' (#50) from test/single-server-preview into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #50
2026-11-21 16:59:37 +01:00
parkel 86ec070c99 Document single-server verification and account recovery drills
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 16:51:34 +01:00
parkel 08d132654e Merge pull request 'Track the roadmap and release workflow in Gitea' (#49) from docs/gitea-roadmap-workflow into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #49
2026-11-21 16:40:52 +01:00
parkel f04de7c75e Document the Gitea backlog, roadmap, and release workflow
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 16:38:58 +01:00
parkel bda9ed5e90 Add Gitea issue and pull request templates 2026-11-21 16:38:58 +01:00
parkel a11bfd753a Merge pull request 'Show local service credentials and sign in to phpMyAdmin' (#40) from feature/hosting-service-credentials into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #40
2026-11-21 16:34:16 +01:00
parkel 53288c3130 Document and deploy local credential access and phpMyAdmin sign-on
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 16:27:07 +01:00
parkel 9b0a1e0299 Add panel credential access and per-database phpMyAdmin sign-on 2026-11-21 16:27:07 +01:00
parkel b4104af174 Serve managed database and mailbox credentials through a local socket 2026-11-21 16:27:07 +01:00
parkel 377c90bdf3 Merge pull request 'Configure PHP limits per website and hosting plan' (#39) from feature/website-php-settings into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #39
2026-11-21 16:08:24 +01:00
parkel 73a9012b54 Document per-site PHP settings and hosting plan defaults
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 16:04:33 +01:00
parkel ac7e67b9fb Manage PHP settings from hosting plans and account pages 2026-11-21 16:04:33 +01:00
parkel 08bcab7144 Capture hosting plan PHP defaults and apply site settings through the worker 2026-11-21 16:04:33 +01:00
parkel 86d2a5611c Apply managed PHP-FPM settings with validation and rollback 2026-11-21 16:04:33 +01:00
parkel 1306068222 Merge pull request 'Serve website aliases over HTTP and HTTPS' (#38) from feature/website-domain-aliases into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #38
2026-11-21 15:39:33 +01:00
parkel 0b12ea5a44 Document website alias DNS and HTTPS setup
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 15:32:02 +01:00
parkel 727f7b2c28 Manage website aliases and their HTTPS status in the panel 2026-11-21 15:32:02 +01:00
parkel 077332c1bb Reserve website hostnames and dispatch alias lifecycle jobs 2026-11-21 15:32:02 +01:00
parkel e4f31cec2f Serve website aliases through Apache and Certbot 2026-11-21 15:32:02 +01:00
parkel 6c0690643c Merge pull request 'Manage scheduled backup retention and archive history' (#37) from feature/backup-archive-management into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #37
2026-11-21 15:17:27 +01:00
parkel 65e12bfd63 Document opt-in scheduled backup retention
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 15:08:48 +01:00
parkel 2ba09de5f2 Manage backup history, retention and protection in the panel 2026-11-21 15:08:48 +01:00
parkel cb8295dc38 Expire scheduled archives with retained backup safeguards 2026-11-21 15:08:48 +01:00
parkel d088a487a3 Merge pull request 'Restore databases and mailboxes from local account backups' (#36) from feature/account-backup-recovery into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #36
2026-11-21 14:56:59 +01:00
parkel 92bd75c196 Document and deploy opt-in account backup recovery
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 14:54:51 +01:00
parkel d1ad61b121 Offer database and mailbox recovery alongside website restores 2026-11-21 14:54:51 +01:00
parkel e13adc0d4e Queue and track database and mailbox recovery jobs 2026-11-21 14:54:51 +01:00
parkel 337a078ffe Restore database dumps and Maildirs from local account backups 2026-11-21 14:54:51 +01:00
parkel 893e9b34a7 Merge pull request 'Restore website files from local account backups' (#35) from feature/backup-recovery into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #35
2026-11-21 14:44:53 +01:00
parkel 14aabb8da7 Deploy the quota-aware local website restore socket
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 14:42:38 +01:00
parkel 215894aa24 Queue and track website restores from the hosting panel 2026-11-21 14:42:38 +01:00
parkel b9e54c9575 Restore website files from local account backup bundles 2026-11-21 14:42:38 +01:00
parkel 1f57e63f20 Merge pull request 'Schedule daily and weekly account backups' (#34) from feature/scheduled-account-backups into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #34
2026-11-21 14:32:39 +01:00
parkel c14713b5ed Document scheduled account backup operations
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 14:26:38 +01:00
parkel 52e072ee91 Manage backup schedules from the hosting account page 2026-11-21 14:26:38 +01:00
parkel 5c61ddc4cc Queue account backups on daily and weekly schedules 2026-11-21 14:26:38 +01:00
parkel 1844271bba Merge pull request 'Enforce website storage quotas on ext4 web nodes' (#33) from feature/website-storage-quotas into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #33
2026-11-21 14:20:21 +01:00
parkel 2f85d88ea8 Document web quota volumes and operator workflows
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 14:10:34 +01:00
parkel f557b9194a Apply website storage limits from hosting accounts 2026-11-21 14:10:34 +01:00
parkel fe12a5d658 Enforce hard website quotas on ext4 web volumes 2026-11-21 14:10:34 +01:00
parkel 472c52caf9 Merge pull request 'Measure website storage on hosting accounts' (#32) from feature/website-storage-usage into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #32
2026-11-21 13:57:30 +01:00
parkel 68eafa9cfd Document website storage measurement
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 13:40:50 +01:00
parkel eeea33013f Show measured website storage on hosting accounts 2026-11-21 13:40:50 +01:00
parkel 9be1fa17b7 Measure allocated website storage on the web node 2026-11-21 13:40:50 +01:00
parkel 710797df00 Merge pull request 'Change storage limits for existing mailboxes' (#31) from feature/edit-mailbox-storage-limits into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #31
2026-11-21 13:33:30 +01:00
parkel 5de5611f1f Document mailbox quota updates and retries
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 13:32:08 +01:00
parkel 624e928482 Let operators change mailbox storage limits from the panel 2026-11-21 13:32:08 +01:00
parkel a345f65bc9 Update and clear storage limits on configured mailboxes 2026-11-21 13:32:08 +01:00
parkel 414c9b1cfd Merge pull request 'Enforce mailbox storage quotas from hosting plans' (#30) from feature/mailbox-storage-quotas into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #30
2026-11-21 13:22:31 +01:00
parkel eb6595e0ef Document mailbox storage limits and Dovecot setup
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 13:02:06 +01:00
parkel 6a1078b055 Assign new mailbox storage limits from hosting plans 2026-11-21 13:02:06 +01:00
parkel 57a9a67bae Enforce per-mailbox storage limits with Dovecot 2026-11-21 13:02:06 +01:00
parkel 056858db0d Merge pull request 'Include local mailboxes in backups from the panel' (#29) from feature/panel-mail-account-backups into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #29
2026-11-21 12:51:03 +01:00
parkel 4b8e44bb72 Document enabling mailboxes in local panel backups
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 12:48:55 +01:00
parkel 39a052ba37 Allow operators to include local mailboxes in panel backups 2026-11-21 12:48:55 +01:00
parkel 30e5c520c0 Merge pull request 'Include mailboxes in account backup bundles' (#28) from feature/account-backup-mailboxes into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #28
2026-11-21 12:44:16 +01:00
parkel f988379834 Document account backups that include mailboxes
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 12:41:15 +01:00
parkel dfd1689c80 Include optional mailbox archives in account backup bundles 2026-11-21 12:41:15 +01:00
parkel e225cba5e6 Merge pull request 'Start local account backups from Coulobre Panel' (#27) from feature/panel-account-backups into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #27
2026-11-21 12:36:17 +01:00
parkel 474244a152 Document local account backups from the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 12:35:24 +01:00
parkel b47a8c0859 Add on-demand account backups to the panel 2026-11-21 12:35:24 +01:00
parkel 692aefa890 Merge pull request 'Add native Dovecot mailbox backup and restore' (#26) from feature/native-mailbox-backups into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #26
2026-11-21 12:24:16 +01:00
parkel bd0f0a3e57 Document mailbox backup and recovery procedures
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 12:21:15 +01:00
parkel 55d209f9e5 Add native Dovecot mailbox backups and restore 2026-11-21 12:21:15 +01:00
parkel 41369b9ffd Share streamed backup member extraction 2026-11-21 12:21:15 +01:00
parkel a672dd4768 Merge pull request 'Bundle website and database backups by hosting account' (#25) from feature/account-backup-bundles into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #25
2026-11-21 12:18:56 +01:00
parkel c985d3d9af Document account backup and recovery workflows
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 12:02:41 +01:00
parkel cb7bd7e200 Bundle hosting account website and database backups 2026-11-21 12:02:41 +01:00
parkel 4664fc1278 Merge pull request 'Add managed MariaDB database backups and restore' (#24) from feature/mariadb-database-backups into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #24
2026-11-21 11:56:21 +01:00
parkel c158a6e863 Document MariaDB backup and restore procedures
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 11:50:41 +01:00
parkel 072207ed4e Add logical backup and restore for managed MariaDB databases 2026-11-21 11:50:41 +01:00
parkel a9b9f4d61b Merge pull request 'Add native website backups and single-file restore' (#23) from feature/native-website-backups into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #23
2026-11-21 11:40:39 +01:00
parkel 2306656012 Document website backup and restore procedures
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 11:39:25 +01:00
parkel e4e98d88e9 Add restricted SFTP access anAdd native website backups and single-file restored SSH key management 2026-11-21 11:37:47 +01:00
parkel 3ce2184885 Merge pull request 'Add restricted SFTP access and SSH key management' (#22) from feature/site-sftp into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #22
2026-11-21 10:57:13 +01:00
parkel cde9fe00d4 Add SSH public key management to hosting accounts
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 10:56:47 +01:00
parkel a3f7a2e7cb Provision restricted SFTP access on web nodes 2026-11-21 10:56:06 +01:00
parkel 56c4b8e72c Merge pull request 'Enable website HTTPS from Coulobre Panel' (#21) from feature/panel-site-https into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #21
2026-11-21 10:32:01 +01:00
parkel 4d6aa0c281 Add website HTTPS requests to Coulobre Panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 10:31:32 +01:00
parkel 43d03d207e Provision website HTTPS through a restricted Unix socket 2026-11-21 10:30:36 +01:00
parkel 145901cd84 Merge pull request 'Feature/site https' (#20) from feature/site-https into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #20
2026-11-21 02:43:49 +01:00
parkel 3be2f8fd07 Add Certbot webroot setup and Apache renewal hook
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 02:43:29 +01:00
parkel 62df077225 Enable HTTPS for hosted sites with Certbot certificates 2026-11-21 02:41:40 +01:00
parkel cd6ca6746c Merge pull request 'Document planned write access for customer impersonation' (#19) from docs/impersonation-roadmap into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #19
2026-11-21 02:31:46 +01:00
parkel 71bdfa45ed Document planned write access for customer impersonation
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 02:29:10 +01:00
parkel 4adc6ab5c4 Merge pull request 'Add read-only customer impersonation for administrators' (#18) from feature/customer-impersonation into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #18
2026-11-21 02:26:00 +01:00
parkel a91c403966 Expose customer impersonation audit history in Django admin
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 02:25:29 +01:00
parkel bfe199aaff Add read-only customer impersonation for administrators 2026-11-21 02:24:04 +01:00
parkel 5ef564f506 Merge pull request 'Standardize Coulobre code style and contributor practices' (#17) from chore/repository-standards into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #17
2026-11-21 02:13:46 +01:00
parkel 751d5b16a9 Document contributor conventions and add Gitea CI
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
2026-11-21 02:13:11 +01:00
parkel d7314fa927 Apply consistent Python and Django coding standards 2026-11-21 02:12:32 +01:00
parkel 1d0b5adeee Merge pull request 'Provision local mailboxes from Coulobre Panel' (#16) from feature/local-mailbox-provisioning into main
Reviewed-on: #16
2026-11-21 02:01:46 +01:00
parkel 4ae4809dc6 Support Dovecot 2.4 on Ubuntu 26.04 2026-11-21 02:00:40 +01:00
parkel b53f6ba8d6 Provision local mailboxes from Coulobre Panel 2026-11-21 01:51:42 +01:00
parkel 8dfb64bf8c Support local mailbox provisioning over a restricted Unix socket 2026-11-21 01:46:23 +01:00
parkel 640bec5d1c Merge pull request 'Support local DNS publishing from Coulobre Panel' (#15) from feature/local-dns-publishing into main
Reviewed-on: #15
2026-11-21 01:43:11 +01:00
parkel 70cb4de81b Publish local BIND9 zones from the panel 2026-11-21 01:41:06 +01:00
parkel 6e075c25f4 Support local DNS publishing over a restricted Unix socket 2026-11-21 01:30:34 +01:00
parkel ffdeb5fe69 Merge pull request 'Support local MariaDB provisioning from Coulobre Panel' (#14) from feature/local-database-provisioning into main
Reviewed-on: #14
2026-11-21 01:26:33 +01:00
parkel 902a769eb3 Provision local MariaDB databases from the panel 2026-11-21 01:26:10 +01:00
parkel 091193baa0 Support local MariaDB provisioning over a restricted Unix socket 2026-11-21 01:21:07 +01:00
parkel cdc82bac67 Merge pull request 'Activate local websites from Coulobre Panel' (#13) from feature/local-web-provisioning into main
Reviewed-on: #13
2026-11-21 01:17:21 +01:00
parkel 6523c166a8 Queue local website activation from Apache previews 2026-11-21 01:17:01 +01:00
parkel 7f706c39b5 Support local web activation over a restricted Unix socket 2026-11-21 01:10:25 +01:00
308 changed files with 30764 additions and 734 deletions

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
[*.py]
max_line_length = 79
[*.{yml,yaml}]
indent_size = 2
[deploy/dovecot/*.conf.example]
indent_size = 2
+1
View File
@@ -0,0 +1 @@
* text=auto eol=lf
+19
View File
@@ -0,0 +1,19 @@
---
name: Bug report
about: Report behavior that differs from what you expected.
labels:
- kind/bug
---
## What happened?
<!-- Describe what happened and what you expected. -->
## How to reproduce
<!-- Include the smallest set of steps that reproduces the problem. -->
## Environment
<!-- Include the Coulobre version or commit, OS, and relevant service versions.
Remove credentials and customer data from examples or logs. -->
+14
View File
@@ -0,0 +1,14 @@
---
name: Documentation issue
about: Report unclear instructions or propose a documentation update.
labels:
- kind/docs
---
## Where is the gap?
<!-- Link the affected page or section and describe what is missing or unclear. -->
## What should the documentation cover?
<!-- Describe what a reader should be able to do after the change. -->
+14
View File
@@ -0,0 +1,14 @@
---
name: Feature request
about: Propose a change to the panel or its services.
labels:
- kind/feature
---
## What do you need to do?
<!-- Describe the workflow and who needs it. -->
## What would success look like?
<!-- Describe the expected behavior and how it could be verified. -->
+14
View File
@@ -0,0 +1,14 @@
---
name: Maintenance task
about: Plan testing, tooling, packaging, or release work.
labels:
- kind/maintenance
---
## Goal
<!-- Describe what needs to change and why. -->
## Acceptance criteria
<!-- List the checks that show the task is complete. -->
+11
View File
@@ -0,0 +1,11 @@
## Summary
<!-- Describe the behavior or workflow this changes. -->
## Related issues
<!-- Use Closes #123 for completed work or Refs #123 for related or partial work. -->
## Verification
<!-- List the checks you ran and their results. Mention any checks still needed. -->
+61
View File
@@ -0,0 +1,61 @@
name: Coulobre Panel CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
checks:
name: Checks (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.14"]
env:
COULOBRE_SECRET_KEY: ci-test-only
steps:
- name: Check out source
uses: https://github.com/actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Set up Python
uses: https://github.com/actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install development dependencies
run: python -m pip install -e '.[dev]'
- name: Install Zstandard for backup fixtures
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends zstd
- name: Check Python style and shell syntax
run: |
ruff check .
ruff format --check .
sh -n tests/web-node/smoke.sh
sh -n deploy/certbot/reload-apache.sh
- name: Check Django configuration and migrations
run: |
python manage.py check
python manage.py makemigrations --check --dry-run
- name: Run tests
run: python manage.py test coulobre
- name: Verify package artifacts
if: matrix.python-version == '3.14'
run: |
python -m pip install build
python -m build
python tools/check_core_release.py dist/*.tar.gz dist/*.whl
+122 -4
View File
@@ -1,9 +1,127 @@
# Contributing to Coulobre Panel
- Use Gitea issues for work items and milestones for release planning.
## Planning and releases
- Use [Gitea issues][issues] for the backlog and [milestones][milestones] for
the roadmap. Search for existing work before opening an issue. Use a
template and describe the problem, the intended outcome, and how to verify
the result.
- During triage, apply one `kind/` label and the relevant `area/` labels. The
labels can also be used on pull requests.
| Label | Use |
| --- | --- |
| `kind/bug` | Incorrect behavior or a regression. |
| `kind/feature` | New or expanded user-facing behavior. |
| `kind/docs` | Documentation, examples, or contributor guides. |
| `kind/maintenance` | Testing, tooling, packaging, or release preparation. |
| `area/panel` | The panel UI, authentication, and access control. |
| `area/hosting` | Accounts, plans, quotas, websites, domains, TLS, and SFTP. |
| `area/database` | MariaDB provisioning and database tools. |
| `area/mail` | Mailboxes, mail delivery, IMAP, and webmail. |
| `area/dns` | Zone management and DNS publication. |
| `area/backups` | Backup, retention, and restore workflows. |
| `area/migration` | Imports from other hosting panels. |
| `area/deployment` | Installation, configuration, upgrades, and operating systems. |
- Maintainers assign accepted work to a milestone when it has a target
release. Issues without a milestone stay in the backlog. Add a due date
when a release date has been agreed.
### Prepare a release
1. Update the package version in `pyproject.toml`. For a release candidate,
use a Python version such as `0.1.0rc1` and a matching Git tag such as
`v0.1.0-rc.1`. [Python version specifiers][versions]
2. From a clean checkout, use `python -m build` to build the source
distribution and wheel. Run
`python tools/check_core_release.py dist/*.tar.gz dist/*.whl` to compare
both packages with the reviewed Git tree. Use `--ref <tag-or-commit>`
to verify the files against a specific revision. Install the built wheel
in a fresh virtual environment and run the deployment checks.
[Build documentation][build] · [Deployment checks][deployment-checks]
3. Create an annotated tag for the tested commit on `main`. Verify the
artifacts against that local tag before pushing it. Publish the
corresponding [Gitea release][releases] with the verified source
distribution and wheel. Include user-visible changes, installation or upgrade
instructions, and known limitations. Mark a release candidate as a
prerelease. Close the milestone when its target version is published.
## Pull requests
- Start changes on a dedicated branch from the default branch, named main.
- Reference the relevant issue in the pull request and describe what changed and
how it was verified.
- Group related commits in a pull request that can be reviewed as a whole.
Describe what changed and how it was verified. Use `Closes #123` when the
pull request completes an issue. Use `Refs #123` for related or partial work.
- Submit changes for review before merging into main.
- Write code, comments, technical documentation, and commit messages in English.
- Write issues, pull requests, code, comments, technical documentation, and
commit messages in English.
- Keep credentials, customer data, and local configuration out of commits.
[issues]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/issues
[milestones]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/milestones
[releases]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/releases
[versions]: https://packaging.python.org/en/latest/specifications/version-specifiers/#pre-releases
[build]: https://build.pypa.io/en/stable/
[deployment-checks]: docs/deployment.md#verify-a-new-installation
## Code style
- Follow PEP 8 with four spaces per indentation level, up to 79 characters
per line of Python, and up to 72 for comments and docstrings. Ruff formats
Python, sorts imports, and checks naming and common mistakes using the
project's Python target. [PEP 8](https://peps.python.org/pep-0008/)
- Use names from the hosting domain, such as `account`, `mailbox`, and
`zone`. Use verbs for actions and name tests after the behavior they
check, such as `test_unmanaged_running_zone_blocks_installation`.
- Explain why a constraint, permission check, or retry exists when the
code alone cannot explain it. Use PEP 257 for docstrings. Document
inputs, results, or side effects when callers need that information.
[PEP 257](https://peps.python.org/pep-0257/)
- Define model fields and managers first, then `Meta`, special methods,
and application methods. Give records displayed to users a meaningful
string representation. Generate a new migration when the schema
changes and review the generated operations.
[Django model style](https://docs.djangoproject.com/en/5.2/internals/contributing/writing-code/coding-style/#model-style)
- Use UTF-8 and LF line endings. Match the EditorConfig indentation for
each file type and follow the enclosing format in service configuration
and deployment examples. [EditorConfig](.editorconfig)
## Code organization
- Keep HTTP handling in views and input validation in forms or existing
domain objects. Use the access helpers for tenant scoping and enforce
permissions in the view. Put related writes and quota checks in a
service function with a transaction.
[Access helpers](src/coulobre/hosting/access.py),
[resource requests](src/coulobre/hosting/resource_requests.py)
- Coordinate background provisioning in tasks and contact local services
through the node client. Keep privileged changes in node commands.
Keep manifests compatible with existing nodes and make provisioning
safe to retry with the same request.
[Provisioning tasks](src/coulobre/hosting/tasks.py),
[node client](src/coulobre/hosting/node_client.py)
- Follow the closest existing implementation when extending a resource.
Reuse an existing helper when it already owns the validation or policy.
Extract shared code when the callers genuinely share behavior.
- Test through the entry point the caller uses. Follow neighboring
`test_*.py` modules and cover relevant permission boundaries or retries
when changing those behaviors.
## Panel copy and templates
- Use plain English and the same names for resources throughout the
interface. Write button labels as short actions in sentence case, such
as **Request mailbox** or **Publish zone**.
- Tell the reader what happened and, where they can act, what to do next.
For example, “This zone changed before publication. Reload the account
and try again.” Keep credentials and raw service output out of messages
shown in the panel.
- Reuse existing templates and styles for controls, focus states, and
status labels. Keep form inputs labelled and validation errors close to
the field that needs attention.
## Checks
Run the development checks before submitting a pull request. Gitea Actions
checks Python 3.12 and 3.14. [Development checks](docs/development.md#checks)
+4
View File
@@ -0,0 +1,4 @@
include CONTRIBUTING.md manage.py
graft deploy
graft docs
graft tests
+10 -9
View File
@@ -4,23 +4,24 @@ Coulobre Panel is an open-source web hosting control panel for hosting providers
and resellers. The project is in early development.
The web panel gives operators a workspace to manage hosting accounts, request
Apache configuration previews, and follow their progress.
Apache configuration previews, and follow their progress. Administrators with
permission can view the panel as a customer in a read-only support session.
See [Local development](docs/development.md) to run it.
See [Single-server deployment](docs/deployment.md) to install it with Apache,
MariaDB, and RabbitMQ.
## Planned scope
## Roadmap and releases
- Self-hosted installation on a single Ubuntu server, with Debian support planned.
- Hosting plans and self-service access for administrators, resellers, and customers.
- Customer impersonation for administrator support, with a dedicated permission,
a visible session indicator, and an audit trail.
- Domains, TLS certificates, SFTP, and databases using Apache, PHP-FPM, and MariaDB.
- Mail and DNS on the hosting server or on separate servers.
- Account backups, restore, and migration from DirectAdmin.
Track planned releases in [Gitea milestones][milestones] and follow individual
work items in [Gitea issues][issues]. Published versions and their release
notes are available on [Gitea Releases][releases].
See [Contributing](CONTRIBUTING.md) for the project workflow.
[milestones]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/milestones
[issues]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/issues
[releases]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/releases
## License
Coulobre Panel is licensed under the [Apache License 2.0](LICENSE).
+7
View File
@@ -0,0 +1,7 @@
Alias "/.well-known/acme-challenge/" "/var/www/coulobre-acme/.well-known/acme-challenge/"
<Directory "/var/www/coulobre-acme/.well-known/acme-challenge">
AllowOverride None
Options None
Require all granted
</Directory>
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
case "${RENEWED_LINEAGE:-}" in
/etc/letsencrypt/live/coulobre-*)
lock=/var/lib/coulobre/web-node/apply.lock
if [ -f "$lock" ]; then
exec 9<"$lock"
flock -x 9
/usr/sbin/apache2ctl configtest 2>&1
/usr/sbin/service apache2 reload
fi
;;
esac
+41
View File
@@ -0,0 +1,41 @@
dovecot_config_version = 2.4.0
dovecot_storage_version = 2.4.0
protocols = imap lmtp
ssl = required
ssl_server_cert_file = /etc/ssl/coulobre-mail/fullchain.pem
ssl_server_key_file = /etc/ssl/coulobre-mail/privkey.pem
mail_driver = maildir
mail_path = ~/Maildir
mail_plugins {
quota = yes
}
protocol imap {
mail_plugins {
imap_quota = yes
}
}
quota_storage_grace = 0
quota "User quota" {
}
# Set both values to the UID of coulobre-vmail.
first_valid_uid = 103
last_valid_uid = 103
auth_username_format = %{user | lower}
auth_cache_size = 0
passdb passwd-file {
passwd_file_path = /etc/dovecot/coulobre-users
}
userdb passwd-file {
passwd_file_path = /etc/dovecot/coulobre-users
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
user = postfix
group = postfix
mode = 0600
}
}
@@ -0,0 +1,9 @@
# Include in dovecot.conf or a loaded conf.d file.
auth_mechanisms = plain login
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}
@@ -0,0 +1,15 @@
Match User coulobre-health-request
AuthenticationMethods publickey
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
AuthorizedKeysFile /etc/ssh/coulobre-node-keys/%u
AuthorizedKeysCommand none
TrustedUserCAKeys none
DisableForwarding yes
PermitTunnel no
PermitTTY no
PermitUserRC no
ForceCommand /opt/coulobre/bin/coulobre-service-health
Match all
@@ -0,0 +1,20 @@
Match User coulobre-mail-archive-backup,coulobre-mail-archive-restore
AuthenticationMethods publickey
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
AuthorizedKeysFile /etc/ssh/coulobre-node-keys/%u
AuthorizedKeysCommand none
TrustedUserCAKeys none
DisableForwarding yes
PermitTunnel no
PermitTTY no
PermitUserRC no
Match User coulobre-mail-archive-backup
ForceCommand /usr/bin/socat -t 1810 STDIO UNIX-CONNECT:/run/coulobre-mail-archive-backup.sock
Match User coulobre-mail-archive-restore
ForceCommand /usr/bin/socat -t 1810 STDIO UNIX-CONNECT:/run/coulobre-mail-archive-restore.sock
Match all
@@ -0,0 +1,15 @@
Match User coulobre-mail-credential-request
AuthenticationMethods publickey
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
AuthorizedKeysFile /etc/ssh/coulobre-node-keys/%u
AuthorizedKeysCommand none
TrustedUserCAKeys none
DisableForwarding yes
PermitTunnel no
PermitTTY no
PermitUserRC no
ForceCommand /usr/bin/socat -t 92 STDIO UNIX-CONNECT:/run/coulobre-mail-credentials.sock
Match all
@@ -0,0 +1,20 @@
Match User coulobre-dns-request,coulobre-mail-request
AuthenticationMethods publickey
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
AuthorizedKeysFile /etc/ssh/coulobre-node-keys/%u
AuthorizedKeysCommand none
TrustedUserCAKeys none
DisableForwarding yes
PermitTunnel no
PermitTTY no
PermitUserRC no
Match User coulobre-dns-request
ForceCommand /usr/bin/socat -t 185 STDIO UNIX-CONNECT:/run/coulobre-dns-apply.sock
Match User coulobre-mail-request
ForceCommand /usr/bin/socat -t 185 STDIO UNIX-CONNECT:/run/coulobre-mail-apply.sock
Match all
+16
View File
@@ -0,0 +1,16 @@
Match Group coulobre-sftp
AuthenticationMethods publickey
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
AuthorizedKeysFile /etc/ssh/coulobre-authorized-keys/%u
AuthorizedKeysCommand none
TrustedUserCAKeys none
ChrootDirectory %h
ForceCommand internal-sftp -d /public -u 0022 -P symlink,hardlink
DisableForwarding yes
PermitTunnel no
PermitTTY no
PermitUserRC no
Match all
@@ -0,0 +1,13 @@
Host coulobre-dns-node
HostName dns.example.org
Port 22
User coulobre-dns-request
IdentityFile /etc/coulobre-remote/dns/id_ed25519
IdentityAgent none
IdentitiesOnly yes
PreferredAuthentications publickey
UserKnownHostsFile /etc/coulobre-remote/dns/known_hosts
GlobalKnownHostsFile none
StrictHostKeyChecking yes
BatchMode yes
ConnectTimeout 5
+13
View File
@@ -0,0 +1,13 @@
Host mail-01
HostName mail.example.org
Port 22
User coulobre-health-request
IdentityFile /etc/coulobre-health/id_ed25519
UserKnownHostsFile /etc/coulobre-health/known_hosts
Host dns-01
HostName dns.example.org
Port 22
User coulobre-health-request
IdentityFile /etc/coulobre-health/id_ed25519
UserKnownHostsFile /etc/coulobre-health/known_hosts
@@ -0,0 +1,22 @@
Host coulobre-mail-archive-backup
User coulobre-mail-archive-backup
IdentityFile /etc/coulobre-remote/mail-archive-backup/id_ed25519
UserKnownHostsFile /etc/coulobre-remote/mail-archive-backup/known_hosts
Host coulobre-mail-archive-restore
User coulobre-mail-archive-restore
IdentityFile /etc/coulobre-remote/mail-archive-restore/id_ed25519
UserKnownHostsFile /etc/coulobre-remote/mail-archive-restore/known_hosts
Host coulobre-mail-archive-*
HostName mail.example.org
Port 22
IdentityAgent none
IdentitiesOnly yes
PreferredAuthentications publickey
GlobalKnownHostsFile none
StrictHostKeyChecking yes
BatchMode yes
ConnectTimeout 5
ServerAliveInterval 30
ServerAliveCountMax 3
@@ -0,0 +1,13 @@
Host coulobre-mail-credentials
HostName mail.example.org
Port 22
User coulobre-mail-credential-request
IdentityFile /etc/coulobre-remote/mail-credentials/id_ed25519
IdentityAgent none
IdentitiesOnly yes
PreferredAuthentications publickey
UserKnownHostsFile /etc/coulobre-remote/mail-credentials/known_hosts
GlobalKnownHostsFile none
StrictHostKeyChecking yes
BatchMode yes
ConnectTimeout 5
@@ -0,0 +1,13 @@
Host coulobre-mail-node
HostName mail.example.org
Port 22
User coulobre-mail-request
IdentityFile /etc/coulobre-remote/mail/id_ed25519
IdentityAgent none
IdentitiesOnly yes
PreferredAuthentications publickey
UserKnownHostsFile /etc/coulobre-remote/mail/known_hosts
GlobalKnownHostsFile none
StrictHostKeyChecking yes
BatchMode yes
ConnectTimeout 5
+32
View File
@@ -8,3 +8,35 @@ COULOBRE_DB_USER=coulobre
COULOBRE_DB_PASSWORD=
COULOBRE_DB_HOST=/run/mysqld/mysqld.sock
COULOBRE_BROKER_URL=amqp://coulobre:@127.0.0.1:5672/coulobre
# COULOBRE_SERVICE_HEALTH='{"panel-01":{"local":["panel","worker","scheduler","apache","mariadb","rabbitmq"]}}'
# COULOBRE_LOCAL_WEB_ACTIVATION=1
# COULOBRE_LOCAL_WEB_HTTPS=1
# COULOBRE_LOCAL_WEB_SFTP=1
# COULOBRE_LOCAL_DATABASE_PROVISIONING=1
# These two switches also enable provisioners using the SSH service drop-ins.
# COULOBRE_LOCAL_DNS_PUBLISHING=1
# COULOBRE_LOCAL_MAILBOX_PROVISIONING=1
# COULOBRE_LOCAL_DATABASE_CREDENTIALS=1
# COULOBRE_LOCAL_MAILBOX_CREDENTIALS=1
# COULOBRE_REMOTE_MAILBOX_CREDENTIALS=1
# COULOBRE_LOCAL_DATABASE_CREDENTIALS_ROTATION=1
# COULOBRE_LOCAL_MAILBOX_CREDENTIALS_ROTATION=1
# COULOBRE_REMOTE_MAILBOX_CREDENTIALS_ROTATION=1
# COULOBRE_MAIL_IMAP_HOST=mail.example.org
# COULOBRE_MAIL_MX_HOST=mx.example.org
# COULOBRE_MAIL_DNS_RESOLVERS=
# COULOBRE_MAIL_SENDING_IPS=
# COULOBRE_MAIL_MX_IPS=
# COULOBRE_MANAGE_MAIL_DNS=1
# COULOBRE_PHPMYADMIN_URL=https://tools.example.org/phpmyadmin
# COULOBRE_PHPMYADMIN_BRIDGE_KEY=
# COULOBRE_ROUNDCUBE_URL=https://webmail.example.org
# COULOBRE_ROUNDCUBE_BRIDGE_KEY=
# COULOBRE_LOCAL_ACCOUNT_BACKUPS=1
# COULOBRE_LOCAL_ACCOUNT_BACKUP_MAIL=1
# COULOBRE_REMOTE_ACCOUNT_BACKUP_MAIL=1
# COULOBRE_LOCAL_BACKUP_RETENTION=1
# COULOBRE_LOCAL_WEBSITE_RESTORE=1
# COULOBRE_LOCAL_DATABASE_RESTORE=1
# COULOBRE_LOCAL_MAILBOX_RESTORE=1
# COULOBRE_REMOTE_MAILBOX_RESTORE=1
+19
View File
@@ -0,0 +1,19 @@
<VirtualHost *:443>
ServerName tools.example.org
SSLEngine On
SSLCertificateFile /etc/ssl/coulobre-tools/fullchain.pem
SSLCertificateKeyFile /etc/ssl/coulobre-tools/privkey.pem
Include /etc/phpmyadmin/apache.conf
<Directory "/usr/share/phpmyadmin">
<FilesMatch "\.php$">
SetHandler "proxy:unix:/run/php/coulobre-phpmyadmin.sock|fcgi://localhost/"
</FilesMatch>
</Directory>
<Directory "/usr/share/phpmyadmin/setup">
Require all denied
</Directory>
</VirtualHost>
+16
View File
@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
return [
'panel_origin' => 'https://panel.example.org',
'bridge_key' => trim(file_get_contents('/etc/coulobre-phpmyadmin/bridge.key')),
'session_path' => '/var/lib/coulobre-phpmyadmin/sessions',
'signon_session' => 'CoulobrePhpMyAdmin',
'cookie_params' => [
'path' => '/phpmyadmin/',
'secure' => true,
'httponly' => true,
'samesite' => 'Lax',
],
];
+21
View File
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
$coulobre = require '/etc/coulobre-phpmyadmin/bridge.php';
$cfg['TempDir'] = '/var/lib/coulobre-phpmyadmin/tmp';
$cfg['blowfish_secret'] = hex2bin(trim(file_get_contents('/etc/coulobre-phpmyadmin/session.key')));
$cfg['SessionSavePath'] = $coulobre['session_path'];
$cfg['AllowArbitraryServer'] = false;
$cfg['Servers'][1] = [
'auth_type' => 'signon',
'host' => 'localhost',
'socket' => '/run/mysqld/mysqld.sock',
'AllowRoot' => false,
'SignonSession' => $coulobre['signon_session'],
'SignonCookieParams' => $coulobre['cookie_params'],
'SignonURL' => $coulobre['panel_origin'] . '/',
'LogoutURL' => $coulobre['panel_origin'] . '/',
];
unset($coulobre);
+97
View File
@@ -0,0 +1,97 @@
<?php
declare(strict_types=1);
ini_set('display_errors', '0');
function stopSignon(int $status, string $message): never
{
http_response_code($status);
header('Content-Type: text/plain; charset=UTF-8');
exit($message);
}
header('Cache-Control: private, no-store');
header('Referrer-Policy: no-referrer');
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
header('Allow: POST');
stopSignon(405, 'Start phpMyAdmin from the Coulobre Panel.');
}
$config = require '/etc/coulobre-phpmyadmin/bridge.php';
if (parse_url($config['panel_origin'], PHP_URL_SCHEME) !== 'https') {
stopSignon(500, 'The panel sign-in endpoint must use HTTPS.');
}
if (
!in_array($_SERVER['HTTPS'] ?? '', ['on', '1'], true)
|| ($_SERVER['HTTP_ORIGIN'] ?? '') !== $config['panel_origin']
) {
stopSignon(403, 'Start phpMyAdmin from the Coulobre Panel.');
}
$ticket = $_POST['ticket'] ?? null;
if (!is_string($ticket) || preg_match('/\A[A-Za-z0-9_-]{43}\z/D', $ticket) !== 1) {
stopSignon(400, 'The phpMyAdmin sign-in request is invalid.');
}
$connection = curl_init($config['panel_origin'] . '/_bridge/phpmyadmin/');
curl_setopt_array($connection, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_CONNECTTIMEOUT => 4,
CURLOPT_TIMEOUT => 20,
CURLOPT_HTTPHEADER => [
'Accept: application/json',
'Content-Type: application/x-www-form-urlencoded',
'X-Coulobre-Bridge-Key: ' . $config['bridge_key'],
],
CURLOPT_POSTFIELDS => http_build_query(['ticket' => $ticket]),
]);
$body = curl_exec($connection);
$status = curl_getinfo($connection, CURLINFO_RESPONSE_CODE);
if ($status !== 200 || !is_string($body)) {
stopSignon(403, 'This sign-in could not be completed. Open phpMyAdmin from the panel again.');
}
$login = json_decode($body, true);
if (
!is_array($login)
|| !is_string($login['user'] ?? null)
|| !is_string($login['password'] ?? null)
|| $login['password'] === ''
|| ($login['database'] ?? null) !== $login['user']
|| preg_match('/\Acoulobre_[0-9]+_[a-z][a-z0-9_]{0,23}\z/D', $login['user']) !== 1
) {
stopSignon(502, 'The panel returned an invalid database login.');
}
ini_set('session.use_only_cookies', '1');
ini_set('session.use_strict_mode', '1');
session_save_path($config['session_path']);
session_set_cookie_params($config['cookie_params']);
if (isset($_COOKIE['phpMyAdmin'])) {
session_name('phpMyAdmin');
if (!session_start()) {
stopSignon(500, 'The previous phpMyAdmin session could not be closed.');
}
session_destroy();
$_SESSION = [];
session_id('');
setcookie('phpMyAdmin', '', ['expires' => 1] + $config['cookie_params']);
}
session_name($config['signon_session']);
if (!session_start() || !session_regenerate_id(true)) {
stopSignon(500, 'The phpMyAdmin session could not be started.');
}
$_SESSION = [
'PMA_single_signon_user' => $login['user'],
'PMA_single_signon_password' => $login['password'],
'PMA_single_signon_HMAC_secret' => bin2hex(random_bytes(32)),
];
session_write_close();
header('Location: ' . $config['cookie_params']['path'] . 'index.php?db=' . rawurlencode($login['database']), true, 303);
+17
View File
@@ -0,0 +1,17 @@
[coulobre-phpmyadmin]
user = coulobre-phpmyadmin
group = coulobre-phpmyadmin
listen = /run/php/coulobre-phpmyadmin.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = ondemand
pm.max_children = 4
clear_env = yes
security.limit_extensions = .php
php_admin_flag[display_errors] = off
php_admin_flag[session.use_strict_mode] = on
php_admin_flag[session.cookie_secure] = on
php_admin_flag[session.cookie_httponly] = on
php_admin_value[session.cookie_samesite] = Lax
php_admin_value[session.save_path] = /var/lib/coulobre-phpmyadmin/sessions
+23
View File
@@ -0,0 +1,23 @@
<VirtualHost *:443>
ServerName webmail.example.org
DocumentRoot /opt/roundcube/public_html
SSLEngine On
SSLCertificateFile /etc/ssl/coulobre-webmail/fullchain.pem
SSLCertificateKeyFile /etc/ssl/coulobre-webmail/privkey.pem
<Directory "/opt/roundcube/public_html">
Options FollowSymLinks
AllowOverride None
DirectoryIndex index.php
Require all granted
<FilesMatch "^(index|static)\.php$">
SetHandler "proxy:unix:/run/php/coulobre-roundcube.sock|fcgi://localhost/"
</FilesMatch>
<FilesMatch "^(?!(index|static)\.php$).*\.ph(?:p|ar|tml)$">
Require all denied
</FilesMatch>
</Directory>
</VirtualHost>
+12
View File
@@ -0,0 +1,12 @@
<?php
$config['plugins'][] = 'coulobre_webmail';
$config['coulobre_panel_origin'] = 'https://panel.example.org';
$config['coulobre_bridge_key_file'] = '/etc/coulobre-roundcube/bridge.key';
$config['imap_host'] = 'ssl://mail.example.org:993';
$config['imap_conn_options'] = [
'ssl' => ['verify_peer' => true, 'verify_peer_name' => true],
];
$config['force_https'] = true;
$config['session_samesite'] = 'Lax';
+151
View File
@@ -0,0 +1,151 @@
<?php
declare(strict_types=1);
/**
* Accept a single-use Coulobre ticket and use Roundcube's normal IMAP login.
*/
class coulobre_webmail extends rcube_plugin
{
private ?array $login = null;
public function init(): void
{
$this->add_hook('startup', [$this, 'startSignOn']);
$this->add_hook('authenticate', [$this, 'authenticateSignOn']);
}
public function startSignOn(array $args): array
{
if (!array_key_exists('_coulobre_ticket', $_POST)) {
return $args;
}
$roundcube = rcmail::get_instance();
$origin = $roundcube->config->get('coulobre_panel_origin', '');
if (
!is_string($origin)
|| preg_match('~\Ahttps://(?:[a-z0-9.-]+|\[[a-f0-9:]+\])(?::[0-9]{1,5})?\z~iD', $origin) !== 1
) {
$this->reject(503);
}
if (
($_SERVER['REQUEST_METHOD'] ?? '') !== 'POST'
|| !rcube_utils::https_check()
|| ($_SERVER['HTTP_ORIGIN'] ?? '') !== $origin
) {
$this->reject(403);
}
$ticket = $_POST['_coulobre_ticket'];
if (
count($_POST) !== 1
|| !is_string($ticket)
|| preg_match('/\A[A-Za-z0-9_-]{43}\z/D', $ticket) !== 1
) {
$this->reject(400);
}
// Use the configured mail service for the selected address.
$host = $roundcube->config->get('imap_host');
if (
!is_string($host)
|| preg_match('~\A(?:ssl|tls)://(?:[a-z0-9.-]+|\[[a-f0-9:]+\])(?::[0-9]{1,5})?\z~iD', $host) !== 1
) {
$this->reject(503);
}
$keyPath = $roundcube->config->get('coulobre_bridge_key_file', '');
$key = is_string($keyPath) && is_readable($keyPath)
? trim((string) @file_get_contents($keyPath, false, null, 0, 512))
: '';
if (
!function_exists('curl_init')
|| preg_match('/\A[A-Za-z0-9_-]{32,128}\z/D', $key) !== 1
) {
$this->reject(503);
}
$this->login = $this->exchangeTicket($origin, $key, $ticket);
$this->login['host'] = $host;
// Reset the previous mailbox session after the ticket is accepted.
$roundcube->kill_session();
return ['task' => 'login', 'action' => 'login'] + $args;
}
public function authenticateSignOn(array $args): array
{
if ($this->login === null) {
return $args;
}
$login = $this->login;
$this->login = null;
return [
'host' => $login['host'],
'user' => $login['user'],
'pass' => $login['password'],
'valid' => true,
// A first visit or a cross-site POST may have no Roundcube cookie.
'cookiecheck' => false,
] + $args;
}
private function exchangeTicket(string $origin, string $key, string $ticket): array
{
$connection = curl_init($origin . '/_bridge/roundcube/');
$body = '';
curl_setopt_array($connection, [
CURLOPT_POST => true,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_CONNECTTIMEOUT => 4,
CURLOPT_TIMEOUT => 20,
CURLOPT_HTTPHEADER => [
'Accept: application/json',
'Content-Type: application/x-www-form-urlencoded',
'X-Coulobre-Bridge-Key: ' . $key,
],
CURLOPT_POSTFIELDS => http_build_query(['ticket' => $ticket]),
CURLOPT_WRITEFUNCTION => static function ($connection, string $chunk) use (&$body): int {
if (strlen($body) + strlen($chunk) > 4096) {
return 0;
}
$body .= $chunk;
return strlen($chunk);
},
]);
$success = curl_exec($connection);
$status = curl_getinfo($connection, CURLINFO_RESPONSE_CODE);
if ($status === 404) {
$this->reject(403);
}
if (!$success || $status !== 200) {
$this->reject(503);
}
$login = json_decode($body, true);
if (
!is_array($login)
|| !is_string($login['user'] ?? null)
|| strlen($login['user']) > 254
|| preg_match('/\A[a-z0-9][a-z0-9._-]*@[a-z0-9.-]+\z/D', $login['user']) !== 1
|| !is_string($login['password'] ?? null)
|| preg_match('/\A[A-Za-z0-9_-]{43}\z/D', $login['password']) !== 1
) {
$this->reject(502);
}
return $login;
}
private function reject(int $status): never
{
http_response_code($status);
header('Cache-Control: private, no-store');
header('Content-Type: text/plain; charset=UTF-8');
header('Referrer-Policy: no-referrer');
exit('Webmail sign-in could not be completed. Open the mailbox from Coulobre Panel again.');
}
}
+15
View File
@@ -0,0 +1,15 @@
[coulobre-roundcube]
user = coulobre-roundcube
group = coulobre-roundcube
listen = /run/php/coulobre-roundcube.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = ondemand
pm.max_children = 4
clear_env = yes
security.limit_extensions = .php
php_admin_flag[display_errors] = off
php_admin_flag[session.use_strict_mode] = on
php_admin_flag[session.cookie_secure] = on
php_admin_flag[session.cookie_httponly] = on
+15
View File
@@ -0,0 +1,15 @@
# /etc/rspamd/override.d/dkim_signing.conf
enabled = true;
selector = "coulobre";
path = "/etc/rspamd/coulobre-dkim/$domain.$selector.key";
use_domain = "header";
use_esld = false;
try_fallback = true;
sign_authenticated = true;
sign_local = false;
sign_inbound = false;
allow_envfrom_empty = false;
allow_hdrfrom_multiple = false;
allow_hdrfrom_mismatch = false;
allow_hdrfrom_mismatch_local = false;
allow_username_mismatch = false;
@@ -0,0 +1,10 @@
# Merge these options into the existing authenticated submission service.
# Leave the public SMTP service and its inbound milters in place.
submission inet n - y - - smtpd
-o smtpd_tls_security_level=encrypt
-o smtpd_tls_auth_only=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_type=dovecot
-o smtpd_sasl_path=private/auth
-o smtpd_relay_restrictions=permit_sasl_authenticated,reject
-o { smtpd_milters = { unix:rspamd/coulobre.sock, default_action=tempfail } }
+8
View File
@@ -0,0 +1,8 @@
# /etc/rspamd/local.d/settings.conf
coulobre_signing {
authenticated = true;
apply {
symbols_enabled = ["DKIM_SIGNED"];
flags = ["skip_process"];
}
}
@@ -0,0 +1,2 @@
# /etc/rspamd/override.d/worker-normal.inc and worker-controller.inc
enabled = false;
+7
View File
@@ -0,0 +1,7 @@
# /etc/rspamd/override.d/worker-proxy.inc
bind_socket = "/var/spool/postfix/rspamd/coulobre.sock mode=0600 owner=postfix";
milter = true;
upstream "local" {
default = true;
self_scan = true;
}
@@ -0,0 +1,3 @@
[Service]
PIDFile=/run/spamass/spamass.pid
RemainAfterExit=no
@@ -0,0 +1,2 @@
# Merge into /etc/postfix/main.cf. Keep any other smtpd_milters on this list.
smtpd_milters = { unix:spamass/spamass.sock, connect_timeout=3s, content_timeout=30s, default_action=accept }
@@ -0,0 +1,6 @@
# /etc/default/spamass-milter
# Tag mail without rewriting the subject or body. Skip authenticated SMTP.
OPTIONS="-m -I -- -d 127.0.0.1 -n 2 -t 15 --connect-retries=1"
SOCKET="/var/spool/postfix/spamass/spamass.sock"
SOCKETOWNER="spamass-milter:postfix"
SOCKETMODE="0660"
@@ -0,0 +1,2 @@
# /etc/default/spamd
OPTIONS="--listen=127.0.0.1 --allowed-ips=127.0.0.1 --username=debian-spamd --nouser-config --max-children=5 --timeout-child=15 --helper-home-dir=/var/lib/spamassassin"
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local account backup socket
[Socket]
ListenStream=/run/coulobre-account-backup.sock
SocketUser=root
SocketGroup=coulobre-backup-requests
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,21 @@
[Unit]
Description=Coulobre local account backup request
After=mariadb.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
StateDirectory=coulobre/account-backups coulobre/database-node
StateDirectoryMode=0700
UMask=0077
ExecStart=/opt/coulobre/bin/coulobre-account-backup create-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=30min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
@@ -0,0 +1,3 @@
[Service]
Environment=COULOBRE_LOCAL_ACCOUNT_BACKUP_MAIL=1
ReadWritePaths=-/srv/coulobre-mail
@@ -0,0 +1,2 @@
[Service]
Environment=COULOBRE_REMOTE_ACCOUNT_BACKUP_MAIL=1
@@ -0,0 +1,2 @@
[Service]
Environment=COULOBRE_LOCAL_BACKUP_RETENTION=1
@@ -0,0 +1,11 @@
[Unit]
Description=Coulobre local account restore socket
[Socket]
ListenStream=/run/coulobre-account-restore.sock
SocketUser=root
SocketGroup=coulobre-restore-requests
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
@@ -0,0 +1,21 @@
[Unit]
Description=Coulobre local account restore request
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
StateDirectory=coulobre/account-restores
StateDirectoryMode=0700
UMask=0077
ExecStart=/opt/coulobre/bin/coulobre-account-backup restore-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=30min
NoNewPrivileges=true
CapabilityBoundingSet=~CAP_SYS_RESOURCE
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
@@ -0,0 +1,6 @@
[Unit]
After=mariadb.service
[Service]
Environment=COULOBRE_LOCAL_DATABASE_RESTORE=1
ReadWritePaths=-/var/lib/coulobre/database-node
@@ -0,0 +1,6 @@
[Unit]
After=postfix.service dovecot.service
[Service]
Environment=COULOBRE_LOCAL_MAILBOX_RESTORE=1
ReadWritePaths=-/srv/coulobre-mail
@@ -0,0 +1,2 @@
[Service]
Environment=COULOBRE_REMOTE_MAILBOX_RESTORE=1
@@ -0,0 +1,3 @@
[Service]
Environment=COULOBRE_LOCAL_WEBSITE_RESTORE=1
ReadWritePaths=-/srv/coulobre/web
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel local account backup worker
Requires=coulobre-account-backup.socket
Wants=network-online.target
After=network-online.target coulobre-account-backup.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-backup-worker
Group=coulobre-backup-worker
SupplementaryGroups=coulobre-backup-requests
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-account-backups --hostname=backup-worker@%H --concurrency=1 --prefetch-multiplier=1
KillMode=mixed
TimeoutStopSec=31min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,6 @@
[Unit]
Requires=coulobre-account-restore.socket
After=coulobre-account-restore.socket
[Service]
SupplementaryGroups=coulobre-restore-requests
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local MariaDB provisioning socket
[Socket]
ListenStream=/run/coulobre-database-apply.sock
SocketUser=root
SocketGroup=coulobre-db-provisioning
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,21 @@
[Unit]
Description=Coulobre local MariaDB provisioning request
After=mariadb.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
StateDirectory=coulobre/database-node
StateDirectoryMode=0700
UMask=0077
ExecStart=/opt/coulobre/bin/coulobre-database-node apply-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel local MariaDB provisioning worker
Requires=coulobre-database-apply.socket
Wants=network-online.target
After=network-online.target coulobre-database-apply.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-db-provisioner
Group=coulobre-db-provisioner
SupplementaryGroups=coulobre-db-provisioning
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-database-provisioning --hostname=database-provisioner@%H --concurrency=1
KillMode=mixed
TimeoutStopSec=4min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local BIND9 publishing socket
[Socket]
ListenStream=/run/coulobre-dns-apply.sock
SocketUser=root
SocketGroup=coulobre-dns-provisioning
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,20 @@
[Unit]
Description=Coulobre local BIND9 publishing request
After=named.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0022
ExecStart=/opt/coulobre/bin/coulobre-dns-node apply-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/etc/bind/coulobre
@@ -0,0 +1,11 @@
[Unit]
Description=Coulobre remote BIND9 publishing request
[Service]
User=coulobre-dns-publisher
Group=coulobre-dns-publisher
UMask=0077
ReadWritePaths=
ExecStart=
ExecStart=/usr/bin/ssh -T -F /etc/coulobre-remote/dns/ssh_config coulobre-dns-node
RuntimeMaxSec=190s
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel BIND9 publishing worker
Requires=coulobre-dns-apply.socket
Wants=network-online.target
After=network-online.target coulobre-dns-apply.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-dns-publisher
Group=coulobre-dns-publisher
SupplementaryGroups=coulobre-dns-provisioning
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-dns-publishing --hostname=dns-publisher@%H --concurrency=1
KillMode=mixed
TimeoutStopSec=4min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
+18
View File
@@ -0,0 +1,18 @@
[Unit]
Description=Coulobre service health collector
Wants=network-online.target
After=network-online.target mariadb.service
[Service]
Type=oneshot
User=coulobre-health
Group=coulobre-health
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
ExecStart=/opt/coulobre/bin/python -m django collect_service_health
TimeoutStartSec=5min
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Refresh Coulobre service health observations
[Timer]
OnActiveSec=10s
OnUnitInactiveSec=1min
AccuracySec=5s
[Install]
WantedBy=timers.target
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local website HTTPS socket
[Socket]
ListenStream=/run/coulobre-https-apply.sock
SocketUser=root
SocketGroup=coulobre-https-provisioning
SocketMode=0660
Accept=yes
MaxConnections=1
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,20 @@
[Unit]
Description=Coulobre local website HTTPS request
After=apache2.service php8.5-fpm.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0022
ExecStart=/opt/coulobre/bin/coulobre-web-node https-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
KillSignal=SIGINT
KillMode=mixed
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel website HTTPS worker
Requires=coulobre-https-apply.socket
Wants=network-online.target
After=network-online.target coulobre-https-apply.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-https-provisioner
Group=coulobre-https-provisioner
SupplementaryGroups=coulobre-https-provisioning
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-web-https --hostname=https-provisioner@%H --concurrency=1
KillMode=mixed
TimeoutStopSec=4min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local mailbox provisioning socket
[Socket]
ListenStream=/run/coulobre-mail-apply.sock
SocketUser=root
SocketGroup=coulobre-mail-provisioning
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,20 @@
[Unit]
Description=Coulobre local mailbox provisioning request
After=postfix.service dovecot.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
StateDirectory=coulobre/mail-node
StateDirectoryMode=0700
UMask=0022
ExecStart=/opt/coulobre/bin/coulobre-mail-node apply-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
@@ -0,0 +1,11 @@
[Unit]
Description=Coulobre remote mailbox provisioning request
[Service]
User=coulobre-mail-provisioner
Group=coulobre-mail-provisioner
UMask=0077
StateDirectory=
ExecStart=
ExecStart=/usr/bin/ssh -T -F /etc/coulobre-remote/mail/ssh_config coulobre-mail-node
RuntimeMaxSec=190s
@@ -0,0 +1,12 @@
[Unit]
Description=Coulobre mailbox archive backup socket
[Socket]
ListenStream=/run/coulobre-mail-archive-backup.sock
SocketUser=root
SocketGroup=coulobre-mail-archive-backup
SocketMode=0660
Accept=yes
[Install]
WantedBy=sockets.target
@@ -0,0 +1,22 @@
[Unit]
Description=Coulobre mailbox archive backup request
After=postfix.service dovecot.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
StateDirectory=coulobre/mail-archive-work
StateDirectoryMode=0700
UMask=0077
ExecStart=/opt/coulobre/bin/coulobre-mail-node backup-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=30min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=-/srv/coulobre-mail
@@ -0,0 +1,7 @@
[Service]
User=coulobre-mail-archive-backup
Group=coulobre-mail-archive-backup
StateDirectory=
ReadWritePaths=
ExecStart=
ExecStart=/usr/bin/ssh -T -F /etc/coulobre-remote/mail-archive.conf coulobre-mail-archive-backup
@@ -0,0 +1,12 @@
[Unit]
Description=Coulobre mailbox archive restore socket
[Socket]
ListenStream=/run/coulobre-mail-archive-restore.sock
SocketUser=root
SocketGroup=coulobre-mail-archive-restore
SocketMode=0660
Accept=yes
[Install]
WantedBy=sockets.target
@@ -0,0 +1,23 @@
[Unit]
Description=Coulobre mailbox archive restore request
After=postfix.service dovecot.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
StateDirectory=coulobre/mail-archive-work coulobre/mail-archive-restores
StateDirectoryMode=0700
UMask=0077
ExecStart=/opt/coulobre/bin/coulobre-mail-node restore-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=30min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=-/srv/coulobre-mail
CapabilityBoundingSet=~CAP_SYS_RESOURCE
@@ -0,0 +1,7 @@
[Service]
User=coulobre-mail-archive-restore
Group=coulobre-mail-archive-restore
StateDirectory=
ReadWritePaths=
ExecStart=
ExecStart=/usr/bin/ssh -T -F /etc/coulobre-remote/mail-archive.conf coulobre-mail-archive-restore
@@ -0,0 +1,11 @@
[Unit]
Description=Coulobre mailbox credential socket
[Socket]
ListenStream=/run/coulobre-mail-credentials.sock
SocketUser=root
SocketGroup=coulobre-credential-requests
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
@@ -0,0 +1,20 @@
[Unit]
Description=Coulobre mailbox credential request
After=postfix.service dovecot.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0077
Environment=COULOBRE_LOCAL_MAILBOX_CREDENTIALS=1
ExecStart=/opt/coulobre/bin/coulobre-service-credentials --mailbox-only
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=90s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
@@ -0,0 +1,9 @@
[Unit]
After=network-online.target
Wants=network-online.target
[Service]
User=coulobre-mail-credential-relay
ExecStart=
ExecStart=/usr/bin/ssh -T -F /etc/coulobre-remote/mail-credentials/ssh_config coulobre-mail-credentials
RuntimeMaxSec=95s
@@ -0,0 +1,4 @@
[Service]
Environment=COULOBRE_LOCAL_MAILBOX_CREDENTIALS_ROTATION=1
ReadWritePaths=-/var/lib/coulobre/mail-node /etc/dovecot
RuntimeMaxSec=90s
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel mailbox provisioning worker
Requires=coulobre-mail-apply.socket
Wants=network-online.target
After=network-online.target coulobre-mail-apply.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-mail-provisioner
Group=coulobre-mail-provisioner
SupplementaryGroups=coulobre-mail-provisioning
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-mailbox-provisioning --hostname=mailbox-provisioner@%H --concurrency=1
KillMode=mixed
TimeoutStopSec=4min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,6 @@
[Unit]
Requires=coulobre-mail-credentials.socket
After=coulobre-mail-credentials.socket
[Service]
SupplementaryGroups=coulobre-credential-requests
@@ -0,0 +1,6 @@
[Unit]
Requires=coulobre-service-credentials.socket
After=coulobre-service-credentials.socket
[Service]
SupplementaryGroups=coulobre-credential-requests
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel local web activation worker
Requires=coulobre-web-apply.socket
Wants=network-online.target
After=network-online.target coulobre-web-apply.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-provisioner
Group=coulobre-provisioner
SupplementaryGroups=coulobre-web-provisioning
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-web-activation --hostname=provisioner@%H --concurrency=1
KillMode=mixed
TimeoutStopSec=4min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,11 @@
[Unit]
Description=Coulobre local service credential socket
[Socket]
ListenStream=/run/coulobre-service-credentials.sock
SocketUser=root
SocketGroup=coulobre-credential-requests
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
@@ -0,0 +1,19 @@
[Unit]
Description=Coulobre local service credential request
After=mariadb.service postfix.service dovecot.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/coulobre-service-credentials
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=15s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
@@ -0,0 +1,4 @@
[Service]
Environment=COULOBRE_LOCAL_DATABASE_CREDENTIALS_ROTATION=1
ReadWritePaths=-/var/lib/coulobre/database-node
RuntimeMaxSec=90s
@@ -0,0 +1,2 @@
[Service]
Environment=COULOBRE_LOCAL_DATABASE_CREDENTIALS=1
@@ -0,0 +1,4 @@
[Service]
Environment=COULOBRE_LOCAL_MAILBOX_CREDENTIALS_ROTATION=1
ReadWritePaths=-/var/lib/coulobre/mail-node /etc/dovecot
RuntimeMaxSec=90s
@@ -0,0 +1,2 @@
[Service]
Environment=COULOBRE_LOCAL_MAILBOX_CREDENTIALS=1
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local SFTP key socket
[Socket]
ListenStream=/run/coulobre-sftp-apply.sock
SocketUser=root
SocketGroup=coulobre-sftp-provisioning
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,18 @@
[Unit]
Description=Coulobre local SFTP key request
After=ssh.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0022
ExecStart=/opt/coulobre/bin/coulobre-web-node sftp-keys-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
@@ -0,0 +1,26 @@
[Unit]
Description=Coulobre Panel SFTP key worker
Requires=coulobre-sftp-apply.socket
Wants=network-online.target
After=network-online.target coulobre-sftp-apply.socket mariadb.service rabbitmq-server.service
[Service]
Type=exec
User=coulobre-sftp-provisioner
Group=coulobre-sftp-provisioner
SupplementaryGroups=coulobre-sftp-provisioning
EnvironmentFile=/etc/coulobre/panel.env
WorkingDirectory=/opt/coulobre
UMask=0077
ExecStart=/opt/coulobre/bin/celery -A coulobre worker --loglevel=INFO --queues=coulobre-web-sftp --hostname=sftp-provisioner@%H --concurrency=1
KillMode=mixed
TimeoutStopSec=4min
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
[Install]
WantedBy=multi-user.target
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local web activation socket
[Socket]
ListenStream=/run/coulobre-web-apply.sock
SocketUser=root
SocketGroup=coulobre-web-provisioning
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,20 @@
[Unit]
Description=Coulobre local web activation request
After=apache2.service php8.5-fpm.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0022
ExecStart=/opt/coulobre/bin/coulobre-web-node apply-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
KillSignal=SIGINT
KillMode=mixed
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
@@ -0,0 +1,2 @@
# Remove abandoned transfer staging files. Keep the restore journal.
e /var/lib/coulobre/mail-archive-work - - - 1d
+1505 -2
View File
File diff suppressed because it is too large. Load diff
+560 -8
View File
@@ -30,9 +30,24 @@ plan have unlimited requests. The account page shows usage for configured
limits. Mailboxes count toward the same limit across all of an account's mail
domains, including domains retained after a primary domain change.
Set **Mailbox storage limit (MiB)** to assign a Dovecot storage quota to each
new mailbox requested under the plan. The account page shows each mailbox's
assigned limit. Leave the field blank to omit a Coulobre storage limit.
[Configure Dovecot quota enforcement](#enforce-mailbox-storage-limits)
Set **Website storage limit (MiB)** to supply the initial value when an
operator applies a website quota from the account page.
[Apply a website storage limit](#apply-a-website-storage-limit)
Set optional PHP resource defaults on a hosting plan. Coulobre applies them
on first local activation and when an operator reapplies the plan on the
account page. See [website PHP settings](deployment.md#configure-php-per-website).
Changing or reassigning a plan preserves existing databases and mailboxes. If
the new limit is at or below current usage, the panel blocks additional
requests of that type.
requests of that type. Changing the plan's storage limit applies to new
mailbox requests. Use **Change storage limit** for an individual mailbox.
[Change a mailbox storage limit](#change-a-mailbox-storage-limit)
## Give a reseller access to assigned accounts
@@ -79,6 +94,31 @@ and select a customer on hosting accounts they can create or edit. **Can add
customer** enables customer creation. **Can change customer** enables
sign-in suspension and restoration.
If local credential access is enabled, customers can choose **Connection
details** for databases and mailboxes on their assigned accounts. The panel
requires password confirmation for each reveal.
[Enable local connection details](deployment.md#show-local-database-and-mailbox-connection-details)
## View the panel as a customer
In **Customers**, select **View as customer** next to an active customer.
The panel shows the customer's assigned hosting accounts and resource pages.
Request forms are visible with their inputs disabled. The banner identifies
the customer and offers **End customer view**. Ending the view returns you
to your administrator account. Signing out ends the view and signs you out
of the panel.
A support session lasts up to 30 minutes and applies to the current browser
session. The panel checks that both users remain eligible on each request.
For example, suspending the customer or removing the administrator's
permission ends the view on the next request.
A staff user needs both **Can view customer** and **Can view the panel as a
customer**. The second permission is listed under **Customer impersonation
sessions**. In `/admin/`, users with **Can view customer impersonation
session** can review the administrator, customer, timestamps, and outcome
for each session. The audit records are read-only in Django admin.
## Request a MariaDB database
Open a hosting account and select **Request database**. Choose a short suffix
@@ -137,11 +177,71 @@ message when the installation needs attention.
| --- | --- | --- |
| `configured` | 0 | All checks passed. |
| `not_installed` | 2 | The registry, database, and login are absent. |
| `needs_attention` | 2 | An installation is incomplete or differs from the expected configuration. |
| `needs_attention` | 2 | Provisioning or restore is incomplete, or the installation differs from the expected configuration. |
Exit code `1` indicates an invalid manifest or an unavailable check, for example
when the MariaDB administrative connection fails.
### Back up and restore a managed database
Run these commands as root on the MariaDB node. Install the MariaDB client
utilities and the Coulobre package with its `mariadb` extra. Use the same
database manifest and socket as for provisioning. Add `--socket PATH` when
using a custom socket.
```sh
sudo install -d -m 0700 /var/backups/coulobre
sudo /opt/coulobre/bin/coulobre-database-node backup-database \
coulobre-database-1.json /var/backups/coulobre/database-1.sql.gz
```
The node writes a gzip-compressed SQL dump containing the database's schema,
rows, views, triggers, routines, and events. Database objects with a definer
must use the managed application login. The dump uses a single transaction
for InnoDB data. Pause schema changes and writes to nontransactional tables
during backup. Choose a new filename for each backup and keep archives in a
root-controlled directory with file permissions of `0600`.
To restore, apply the original manifest on the destination node and leave the
new database empty. Transfer the archive to a root-controlled directory on that
node and ensure it is owned by root with permissions of `0600`.
```sh
sudo /opt/coulobre/bin/coulobre-database-node restore-database \
coulobre-database-1.json /var/backups/coulobre/database-1.sql.gz
```
The node checks the gzip stream and its database identity before running the
SQL. The archive needs temporary space for the uncompressed SQL on the same
filesystem. Use the destination node's application credentials and keep the
application disconnected until the restore completes.
MariaDB can commit schema changes before reporting a restore error. If an
import fails, `status` reports `needs_attention`. Inspect the partial database
and return it to an empty state before retrying with the same manifest.
### Enable local database provisioning
On a MariaDB node using `/run/mysqld/mysqld.sock`, install the matching Coulobre
package with its `mariadb` extra in a root-owned virtual environment at
`/opt/coulobre`. Enable the local provisioning socket.
```sh
getent group coulobre-db-provisioning >/dev/null || sudo groupadd --system coulobre-db-provisioning
sudo install -m 0644 deploy/systemd/coulobre-database-apply.socket \
deploy/systemd/coulobre-database-apply@.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-database-apply.socket
```
Grant the socket group only to the service identity responsible for database
provisioning. Send one version 1 MariaDB database manifest as UTF-8 JSON to
`/run/coulobre-database-apply.sock`. The limit is 4 KiB. Close the writing half
of the socket and read the JSON reply to EOF. For a valid manifest, the reply
includes its identity, a state of `configured` or `failed`, and a diagnostic
on failure.
MariaDB passwords stay in the root-only credentials files on the node.
## Render a BIND9 zone
Open a hosting account and select **Add DNS zone** to configure a zone for
@@ -251,6 +351,28 @@ it again. Coulobre checks the SOA serial, reloads the individual zone, and
waits for BIND9 to report the requested serial. Reapply the same manifest to
resume after an interrupted reload. See the [BIND9 command reference](https://bind9.readthedocs.io/en/v9.18.39/manpages.html#rndc) and [RFC 1982](https://www.rfc-editor.org/rfc/rfc1982.html).
### Enable local DNS publishing
On a BIND9 node with the same RNDC setup, install Coulobre in a root-owned
virtual environment at `/opt/coulobre`. Create the managed zone directory and
enable the publishing socket.
```sh
getent group coulobre-dns-provisioning >/dev/null || sudo groupadd --system coulobre-dns-provisioning
sudo install -d -o root -g root -m 0755 /etc/bind/coulobre
sudo install -m 0644 deploy/systemd/coulobre-dns-apply.socket \
deploy/systemd/coulobre-dns-apply@.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-dns-apply.socket
```
Grant the socket group only to the service identity responsible for publishing
zones. Send one version 1 or 2 zone manifest as UTF-8 JSON to
`/run/coulobre-dns-apply.sock`, with a limit of 1 MiB. Shut down the writing
half of the connection and read the JSON reply to EOF. For a valid manifest,
the reply identifies the domain and SOA serial. A `configured` reply means
BIND9 has loaded that serial. A `failed` reply includes a diagnostic.
## Request a virtual mailbox
Open a hosting account and select **Request mailbox**. Enter the part before
@@ -261,6 +383,8 @@ Existing mailbox requests keep their addresses when the primary domain changes.
The **Mailbox requests** table shows the email addresses. Operators can
download a versioned manifest that contains the domain and local part.
Resellers can see mailbox requests on their assigned accounts.
Version 2 adds `quota_mib` for mailboxes with a storage limit. Version 1
manifests continue to apply with no Coulobre storage limit.
Run the installed node command to validate the manifest and display its
address. The manifest describes a virtual user for the Postfix and Dovecot
@@ -272,11 +396,11 @@ coulobre-mail-node inspect coulobre-mailbox-1.json
### Apply a mailbox manifest
Use an Ubuntu 24.04 mail node with Postfix, Dovecot 2.3 and the `dovecot-imapd`
and `dovecot-lmtpd` packages. Install Coulobre in a root-owned virtual
environment on the node. Use a Postfix hostname outside the set of hosted
mail domains and keep those domains in Postfix's virtual mailbox address
class. See the [Postfix virtual domain guide](https://www.postfix.org/VIRTUAL_README.html).
Use Ubuntu 24.04 with Dovecot 2.3 or Ubuntu 26.04 with Dovecot 2.4. Install
Postfix, `dovecot-imapd`, and `dovecot-lmtpd`. Install Coulobre in a root-owned
virtual environment on the node. Use a Postfix hostname outside the set of
hosted mail domains and keep those domains in Postfix's virtual mailbox
address class. See the [Postfix virtual domain guide](https://www.postfix.org/VIRTUAL_README.html).
On a fresh mail node, create the virtual mail user and empty lookup files.
@@ -297,6 +421,8 @@ virtual_transport = lmtp:unix:private/dovecot-lmtp
smtpd_reject_unlisted_recipient = yes
```
#### Dovecot 2.3 on Ubuntu 24.04
Replace the stock `auth-system.conf.ext` include in Dovecot's `10-auth.conf`
with the following virtual user configuration. Configure Dovecot's TLS
certificate and keep encrypted client authentication enabled on a public
@@ -334,7 +460,51 @@ service lmtp {
}
```
Start Postfix and Dovecot with these settings and apply the manifest.
#### Dovecot 2.4 on Ubuntu 26.04
For a fresh, dedicated mail node, use the
[Dovecot 2.4 configuration example](../deploy/dovecot/coulobre-2.4.conf.example)
as `/etc/dovecot/dovecot.conf`. Set the certificate and key paths for the mail
hostname. Use the output of `id -u coulobre-vmail` for both UID settings.
For an existing mail node, follow the
[Dovecot upgrade guide](https://doc.dovecot.org/2.4.2/installation/upgrade/2.3-to-2.4.html)
to migrate its configuration and retain its Maildirs and Coulobre registry.
#### Enforce mailbox storage limits
Use Dovecot's count quota driver for mailbox storage limits. The
[Dovecot 2.4 example](../deploy/dovecot/coulobre-2.4.conf.example) enables
quota enforcement and reports usage to IMAP clients. Keep the quota's default
storage size unlimited so mailbox-specific limits come from Coulobre.
[Dovecot 2.4 quota configuration](https://doc.dovecot.org/2.4.2/core/plugins/quota.html)
On Dovecot 2.3, merge these settings into the mail node configuration.
```text
mail_plugins = $mail_plugins quota
protocol imap {
mail_plugins = $mail_plugins imap_quota
}
plugin {
quota = count:User quota
quota_vsizes = yes
quota_grace = 0
}
```
Reload Dovecot after updating its configuration. The examples disable the
delivery grace allowance so LMTP and IMAP enforce the assigned limit. To
see the usage and limit of a live mailbox, run
`sudo doveadm quota get -u support@example.net`.
[Dovecot 2.3 quota configuration](https://doc.dovecot.org/2.3/configuration_manual/quota/)
After upgrading a mail node from Dovecot 2.3 to 2.4, reapply a managed mailbox
manifest to republish the lookup table with the new quota setting syntax.
#### Install the mailbox
Start Postfix first to initialize its spool directory, then start Dovecot so
it can bind the LMTP socket. Apply the manifest once both services are running.
```sh
sudo /opt/coulobre/bin/coulobre-mail-node apply coulobre-mailbox-1.json
@@ -347,6 +517,28 @@ address using a password hash. Postfix accepts listed recipients and
hands delivery to Dovecot over the local LMTP socket. Reapply the same
manifest to resume installation with the same credentials.
### Change a mailbox storage limit
On the account page, select **Change storage limit** next to the mailbox.
Enter the new limit in MiB or leave the field blank for unlimited storage.
This action requires mailbox provisioning and change permissions. For a
mailbox already provisioned through the panel, saving queues an update on
the local mail node. Use **Retry provisioning** to retry a failed update
before setting another limit.
For a mailbox provisioned manually, download its updated manifest and run
the following command on the mail node.
```sh
sudo /opt/coulobre/bin/coulobre-mail-node set-quota coulobre-mailbox-1.json
```
The command changes the quota for the existing mailbox with that address.
Its messages and credentials remain available. If a lower limit is below
current usage, Dovecot enforces the limit on new mail. Reconnect IMAP clients
to pick up the new setting. If the command is interrupted, retry it with
the same manifest.
### Check a mailbox installation
Run the status command on the mail node with the same manifest.
@@ -370,6 +562,63 @@ installation needs attention.
Exit code `1` indicates an invalid manifest or an invocation error such as
running the check without root privileges.
### Back up and restore a mailbox
Download the mailbox manifest from the panel and run the backup on the node
that hosts the mailbox. Use a new archive name in a root-controlled directory.
```sh
sudo install -d -m 0700 /var/backups/coulobre
sudo /opt/coulobre/bin/coulobre-mail-node backup-mailbox \
coulobre-mailbox-1.json /var/backups/coulobre/mailbox-1.tar.gz
```
Coulobre uses Dovecot to copy the managed mailbox into temporary Maildir
storage before creating the archive. Allow space for that copy on the mail
volume. The archive contains messages, folders, IMAP flags, and subscriptions.
Mailbox passwords and node configuration stay on the node. If Dovecot reports
an incomplete sync, retry when the mailbox is idle.
[Dovecot backup command](https://doc.dovecot.org/2.4.4/core/man/doveadm-backup.1.html)
To recover mail, apply the original mailbox manifest on the destination node.
Use a newly provisioned mailbox that has received no delivery or client
access and has no existing `Maildir`. Keep delivery and client access paused
for that mailbox until recovery completes. Keep Postfix and Dovecot running
for the local configuration checks. Transfer the archive if needed and
ensure it is owned by root with mode `0600`.
```sh
sudo /opt/coulobre/bin/coulobre-mail-node restore-mailbox \
coulobre-mailbox-1.json /var/backups/coulobre/mailbox-1.tar.gz
```
The node checks the address and validates the archive before publishing the
restored Maildir. Sign in with the destination mailbox's credentials.
### Enable local mailbox provisioning
On a mail node with the same Postfix and Dovecot setup, install Coulobre in a
root-owned virtual environment at `/opt/coulobre` and enable the provisioning
socket.
```sh
getent group coulobre-mail-provisioning >/dev/null || sudo groupadd --system coulobre-mail-provisioning
sudo install -m 0644 deploy/systemd/coulobre-mail-apply.socket \
deploy/systemd/coulobre-mail-apply@.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-mail-apply.socket
```
Grant the socket group only to the service identity responsible for mailbox
provisioning. Send one version 1 or 2 mailbox manifest as UTF-8 JSON to
`/run/coulobre-mail-apply.sock`, with a limit of 4 KiB. Shut down the writing
half of the connection and read the JSON reply to EOF. For a valid manifest,
the reply identifies the mailbox and reports `configured` or `failed`.
The generated password stays in a root-only credentials file on the mail node.
For an existing mailbox, the same socket accepts a request with
`"operation": "set_quota"` and the updated manifest under `"mailbox"`.
The reply includes both fields.
## Inspect a DirectAdmin backup
Use an account archive from DirectAdmin's Site Backup, Manage User Backups
@@ -570,6 +819,302 @@ The status command reads local state. It exits with code 0 for `configured`,
code 2 for the other report states, and code 1 if it cannot read the manifest
or inspect the node. Use an HTTP request to verify the site's response as well.
#Website aliases reuse the activation and HTTPS sockets. The web node stores
alias reservations under `/var/lib/coulobre/web-node/aliases/` and creates
separate Apache virtual hosts that share the primary site's document root and
PHP-FPM socket. Existing website deployment manifests use the primary domain
as their identity.
See [managing aliases in the panel](deployment.md#serve-additional-hostnames-on-a-website).
## Enable HTTPS for a hosted website
Apply the web deployment manifest first. Use Certbot to obtain and renew
the website's Let's Encrypt certificate. The HTTP-01 challenge requires
public DNS for the domain and an inbound connection on port 80. If a
reverse proxy handles that port, forward `/.well-known/acme-challenge/`
for the domain to the web node, preserving the host and path.
[Let's Encrypt challenge types](https://letsencrypt.org/docs/challenge-types/)
Prepare Apache and the shared challenge directory once per web node.
Apache serves challenge files from this directory, which the web node
operator controls.
```sh
sudo apt install certbot
sudo a2enmod ssl
sudo install -d -m 0755 /var/www/coulobre-acme/.well-known/acme-challenge
sudo install -m 0644 deploy/apache/acme.conf.example \
/etc/apache2/conf-available/coulobre-acme.conf
sudo a2enconf coulobre-acme
sudo apache2ctl configtest
sudo systemctl reload apache2
```
Use the manifest's account ID for the Certbot certificate name and its
primary domain for the certificate hostname. Keep Certbot's private key
root-owned with mode `0600`. Apache uses the managed Certbot lineage on
port 443, with the same document root and PHP-FPM pool as the HTTP site.
```sh
sudo certbot certonly --webroot --webroot-path /var/www/coulobre-acme \
--cert-name coulobre-1 --domains example.org
sudo /opt/coulobre/bin/coulobre-web-node enable-https coulobre-web-plan-1.json
sudo /opt/coulobre/bin/coulobre-web-node https-status coulobre-web-plan-1.json
curl --fail https://example.org/
```
`https-status` checks the local virtual host and certificate on disk.
An HTTPS request verifies the certificate and response clients receive.
HTTP remains available for the site and future HTTP-01 challenges.
Install the renewal hook and check the Certbot timer. After a successful
renewal of a Coulobre certificate, the hook validates the Apache
configuration and reloads the service.
```sh
sudo install -D -m 0755 deploy/certbot/reload-apache.sh \
/etc/letsencrypt/renewal-hooks/deploy/coulobre-apache
systemctl status certbot.timer
sudo certbot renew --dry-run --run-deploy-hooks --cert-name coulobre-1
```
For a public domain that cannot accept inbound HTTP on port 80, Certbot
can use a DNS plugin for validation. Request the certificate under the
same lineage name before running `enable-https`.
[Certbot certificate guide](https://eff-certbot.readthedocs.io/en/stable/using.html)
To request and enable HTTPS from the panel, set up the dedicated socket
and worker on the local web node. They use the same Certbot webroot,
lineage name, and renewal hook.
[Panel HTTPS setup](deployment.md#request-https-from-the-panel)
### Enable local web activation
On a web node with the same Apache and PHP-FPM setup, systemd can accept local
activation requests at `/run/coulobre-web-apply.sock`. Install the matching
Coulobre package in a root-owned virtual environment at `/opt/coulobre` before
enabling the socket.
```sh
getent group coulobre-web-provisioning >/dev/null || sudo groupadd --system coulobre-web-provisioning
sudo install -m 0644 deploy/systemd/coulobre-web-apply.socket \
deploy/systemd/coulobre-web-apply@.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-web-apply.socket
```
Grant group membership only to the service identity responsible for provisioning
sites. The socket accepts one version 1 site manifest as UTF-8 JSON, up to 4 KiB.
After sending the manifest, shut down the writing half of the connection and
read the JSON reply to EOF. A `configured` reply includes the account ID and
domain. A `failed` reply includes a diagnostic in `problem`. Retry the same
manifest if the connection closes before a reply arrives.
The socket also accepts a storage request with
`"operation": "measure_storage"` and the deployment manifest under `"site"`.
A successful reply includes the request identity and `used_bytes`.
### Measure website storage
Use the deployed site manifest to measure the document root on its web node.
```sh
sudo /opt/coulobre/bin/coulobre-web-node storage-usage coulobre-web-plan-1.json
```
The command reports allocated space in bytes as reported by GNU `du` for the
site's document root. The scan runs as the site user, counts hard-linked
files once, and skips other filesystems. Symbolic links contribute their
own allocated space. The scan measures files as it encounters them, so
the total may change on a busy site. [GNU du manual](https://www.gnu.org/software/coreutils/manual/html_node/du-invocation.html)
With local web activation enabled, an operator with **Can add site storage
usage** can select **Measure website storage** on the hosting account.
Reload the page to see the result and timestamp. The account shows the most
recent successful result even if a later attempt fails. Customers and
resellers can see measurements on their assigned accounts.
### Apply a website storage limit
Mount a dedicated ext4 filesystem with user quotas at `/srv/coulobre/web`.
For a new filesystem, the `mke2fs` options `-O quota -E quotatype=usrquota`
create the user quota metadata. Use the `usrquota` mount option. The web node
expects document roots on this volume without nested mounts. Check whether
user quotas are active with
`sudo quotaon -p -u /srv/coulobre/web`.
[ext4 mount options](https://www.kernel.org/doc/html/v7.0/admin-guide/ext4.html)
On the local installation, open a deployed hosting account and select
**Change storage limit** under **Website storage**. An operator with **Can
change site storage limit** can apply the hosting plan's default or enter
another value in MiB. Clear the field to remove the space limit. The page
shows the last confirmed limit and any pending update.
On a separate web node, apply a limit using the deployed site manifest.
```sh
sudo /opt/coulobre/bin/coulobre-web-node set-storage-limit \
coulobre-web-plan-1.json --limit-mib 1024
sudo /opt/coulobre/bin/coulobre-web-node storage-limit coulobre-web-plan-1.json
```
Use `--unlimited` with `set-storage-limit` to remove the space limit. Linux
enforces a hard quota on bytes charged to the site's system user anywhere
on that filesystem. A lower limit can block new writes while existing
files are retained. The CLI reports the enforced limit and charged usage.
The panel's website measurement reports allocated space in the document root.
[Linux quota API](https://man7.org/linux/man-pages/man2/quotactl.2.html)
The local web socket accepts the same update as JSON with
`"operation": "set_storage_limit"`, the deployment manifest under `"site"`,
and a positive integer or `null` under `"limit_mib"`.
## Install SFTP keys on a web node
Generate an Ed25519 key on the computer that will connect and choose a
passphrase when prompted. With the default filename,
`~/.ssh/id_ed25519.pub` is the public key file. Keep the private key on
that computer.
```sh
ssh-keygen -t ed25519
```
Enable the OpenSSH configuration on the web node and apply the site's
deployment manifest. Use the public key file to set the account's keys
directly on that node. Running the command with an empty file removes
the configured keys for new connections.
[SFTP deployment setup](deployment.md#set-up-sftp-access-for-hosted-websites)
```sh
sudo /opt/coulobre/bin/coulobre-web-node set-sftp-keys \
coulobre-web-plan-1.json site-access.pub
sftp coulobre-1@web-node.example.org
```
## Back up and restore hosted website files
Apply the site's deployment manifest on the web node. Use that manifest
to create a native website backup in a root-controlled directory.
```sh
sudo install -d -m 0700 /var/backups/coulobre
sudo /opt/coulobre/bin/coulobre-web-node backup-site \
coulobre-web-plan-1.json /var/backups/coulobre/site.tar.gz
```
The root-only archive contains the account and domain identity plus
directories and regular files from the document root. The backup report
counts symbolic links and other non-regular entries as skipped.
Use a new archive filename for each backup. Pause SFTP uploads and
application writes for a consistent copy. The backup detects changes
while reading entries and requires site-owned files with Unix mode
permissions on the document root's filesystem.
To recover one file, select its path relative to the document root.
Its parent directory must already exist. To overwrite an existing
site-owned file at that path, add `--replace`.
```sh
sudo /opt/coulobre/bin/coulobre-web-node restore-site \
coulobre-web-plan-1.json /var/backups/coulobre/site.tar.gz \
--file assets/site.css --replace
```
To restore the entire archive, run the command with an empty document
root for the same account and domain.
```sh
sudo /opt/coulobre/bin/coulobre-web-node restore-site \
coulobre-web-plan-1.json /var/backups/coulobre/site.tar.gz
```
Use a root-owned archive with mode `0600`. The node validates the
entire archive before publishing restored files. Restored files belong
to the site account, with the Apache read access recorded in the
backup. The website can be recovered while its web services are stopped.
## Back up a hosting account
Open the account as an operator and select **Download backup manifest**. The
manifest lists the primary website and all database requests for the account.
Select **Download backup manifest with mail** to also include mailbox requests
from every mail domain assigned to the account. This option requires permission
to view mailbox requests. Provision all listed resources before running the
backup. The ZIP contains the native website archive, a compressed SQL dump for
each listed database, and the requested mailbox archives. Back up DNS and panel
settings separately.
On a single-server installation, operators can start a backup of the website
and databases directly from the account page and view its status there. The
panel can also run one daily or weekly backup schedule per account. If mail
is hosted on that server too, enable the **Include mailboxes** option.
See [local account backups](deployment.md#start-local-account-backups-from-the-panel),
[backup schedules](deployment.md#schedule-backups-for-an-account), and
[local mailbox backups](deployment.md#include-mailboxes-on-the-same-server).
If all resources in the manifest are on one server, run the account backup
command there as root. To include mail, pass the manifest downloaded with
mail. Add `--socket PATH` when MariaDB uses a custom socket.
```sh
sudo install -d -m 0700 /var/backups/coulobre
sudo /opt/coulobre/bin/coulobre-account-backup create \
coulobre-account-1-backup.json /var/backups/coulobre/account-1.zip
```
Use a new archive filename. Allow space for the component archives and the
finished ZIP while it is assembled. Maildir snapshots also need space on the
mail volume. The components are captured in sequence. Pause changes to the
listed resources during backup if they need to represent a single point in
time.
### Bundle backups from separate nodes
Use the [website backup command](#back-up-and-restore-hosted-website-files)
on the web node and the [database backup command](#back-up-and-restore-a-managed-database)
on each database node. Transfer the resulting files to a root-controlled
directory with mode `0600` on every archive. Name the website archive
`website.tar.gz` and each SQL dump `database-<suffix>.sql.gz`, for example
`database-cms.sql.gz`. When the manifest includes mail, use the
[mailbox backup command](#back-up-and-restore-a-mailbox) on the mail node and
place each archive under `mailboxes/<domain>/<local-part>.tar.gz` within the
component directory. Assemble the ZIP with the same account manifest.
```sh
sudo /opt/coulobre/bin/coulobre-account-backup pack \
coulobre-account-1-backup.json /var/backups/coulobre/components \
/var/backups/coulobre/account-1.zip
```
### Recover backups from the bundle
On a single-server installation, operators can restore a website file, an
entire website, a database, or a mailbox from a completed account backup.
See [restoring from the panel](deployment.md#restore-from-local-account-backups-in-the-panel).
Unpack to a new directory on a root-controlled path. The command verifies the
ZIP contents and checks the identity and integrity of each compressed
component before publishing the directory.
```sh
sudo /opt/coulobre/bin/coulobre-account-backup unpack \
/var/backups/coulobre/account-1.zip /var/backups/coulobre/account-1-recovery
```
Use the recovered `website.json` and `website.tar.gz` with `restore-site`.
Use each `database-<suffix>.json` and `database-<suffix>.sql.gz` pair with
`restore-database`. For mail, use the original manifest and archive recovered
as `mailboxes/<domain>/<local-part>.json` and
`mailboxes/<domain>/<local-part>.tar.gz` with `restore-mailbox`.
Transfer the relevant pairs when the destination uses separate nodes. Prepare
an empty document root, empty managed databases, and any newly provisioned
destination mailboxes before restoration. Resume traffic after the components
have been restored. To recover one website file, use the website pair with the
existing `restore-site --file` option. Existing website and database bundles
continue to unpack with the same filenames.
## Run an isolated PHP test site
Open a completed preview for the account's current domain and select **Download
@@ -610,9 +1155,16 @@ database and rerun `python manage.py migrate`. Set `COULOBRE_DB_HOST` and
## Checks
Install the `dev` extra and set `COULOBRE_SECRET_KEY` as described above.
Use `ruff check --fix .` to apply safe lint fixes and `ruff format .` to
format Python. Install the `zstd` command to exercise compressed backup
fixtures. Then run the checks from the repository root.
```sh
ruff check .
ruff format --check .
sh -n tests/web-node/smoke.sh
sh -n deploy/certbot/reload-apache.sh
python manage.py check
python manage.py makemigrations --check --dry-run
python manage.py test coulobre
Loaded 100 of 308 files, more files were not shown because too many files have changed in this diff. Show more