Complete operator and customer workflows for Coulobre 0.12

This commit is contained in:
parkel committed 2026-11-23 23:27:02 +01:00
1 parent 4b60663821
commit 5bddcd5512
72 files changed
+2674 -215

No files matched your search

+74 -32
View File
@@ -275,7 +275,7 @@ service using its reachable address.
## Protect panel sign-in
The HTTPS deployment requires a second factor for administrators, staff,
resellers, and other operator logins. Existing unverified privileged sessions
managers, and other operator logins. Existing unverified privileged sessions
return to sign-in after the upgrade. Apply the database migrations before
restarting the panel, worker, and scheduler.
@@ -1067,7 +1067,7 @@ together before enabling additional sites.
The file manager connects to the web node on the same server as the panel.
It supports the document root of the primary site and each active
independent site. Customers and their assigned resellers can open **Files**.
independent site. Customers can open **Files** for their websites.
Operators need both **Can view hosting account** and **Can manage website
files**. File operations are unavailable through impersonation.
@@ -1128,7 +1128,7 @@ If you lower a limit, the oldest enabled jobs retain their places until
the account removes or pauses jobs. Add `website-jobs` to the local service
health list if you monitor this worker from the panel.
Customers and their assigned resellers can open **Scheduled jobs** from the
Customers can open **Scheduled jobs** from the
account page. Operators need both **Can view hosting account** and **Can
manage scheduled website jobs**. Pick the primary or an active independent
website. Use five cron fields in UTC. For example, `*/15 * * * *` runs every
@@ -1943,7 +1943,7 @@ Each request captures the reviewed SOA serial and records. You can edit the
zone while it publishes. Publish the newer revision after the current request
finishes. Use **Retry publishing** if the current revision failed.
To let the customer and the assigned reseller edit a zone's records, enable
To let the customer edit a zone's records, enable
**Delegate record editing** on that zone. They can also publish the zone when
Coulobre publishing is enabled. The operator controls the authoritative
nameservers, SOA responsible name, and automatic mail DNS setting. In
@@ -2072,7 +2072,7 @@ automatic mail and repeat responses to the same sender within seven days.
After changing either panel flag, run `panel_manage migrate --noinput`.
Restart `coulobre-panel`, `coulobre-worker`, `coulobre-beat`, and
`coulobre-mailbox-provisioner`. Customers and resellers can manage the
`coulobre-mailbox-provisioner`. Customers can manage the
settings for their own accounts. Operators need view permissions for the
account and mailboxes and change permission for the mail domain or mailbox.
@@ -2557,44 +2557,38 @@ changes, `COULOBRE_REMOTE_MAILBOX_CREDENTIALS_ROTATION=1`. Set
`coulobre-panel`. These flags route mailbox credential requests to the
remote receiver, while databases still use the local credential service.
## Manage resellers
## Set up manager access
Open **Resellers** to add a reseller login or change an existing reseller's
Open **Managers** to add a manager login or change an existing manager's
panel access, account limit, and allowed hosting plans. The detail page shows
allocated accounts and audit history. Viewing account names and plan details
requires the corresponding hosting account and hosting plan permissions.
The account limit and allowed plans apply when a reseller creates a hosting
The account limit and allowed plans apply when a manager creates a hosting
account. Reducing the limit or removing a plan takes effect on the next
self-service creation request. Existing accounts still count toward the
limit and retain their assigned plans. Operators can assign and move
accounts from the hosting account form. Use the audit history to review
changes to reseller policy and account assignments made through the panel.
changes to manager policy and account assignments made through the panel.
### Onboard customers and delegate provisioning
### Onboard customers
A reseller can open an unassigned hosting account in their own portfolio and
select **Add customer login**. Enter a new username and password, and add an
email address to support customer password recovery. Share the initial
credentials with the customer through a trusted channel. An existing
customer created by the same reseller can be added with **Link existing
customer**. The operator controls changes to existing assignments and to
customer sign-in status. The reseller's **Customers** page lists their own
logins.
Managers can open **My users** to create a customer login and its first
hosting account together. Choose an allowed hosting plan and give the
customer's email address to send a welcome email with a link to set their
password. Preview the email before creating the account. To add a login
for an existing unassigned hosting account, open the account and choose
**Add customer login** or **Link existing customer**.
Enable **Manage databases and mailboxes** on the reseller policy to let that
reseller request and provision both resources for their hosting accounts.
New requests use the account's existing database and mailbox limits and
mailbox storage quota. A deployment must enable the relevant provisioner
before the reseller can queue work. The panel shows provisioning status,
while service credentials and deployment manifests follow their existing
permissions. Both local and separate mail receivers use the same panel
permission.
Managers handle customer onboarding and hosting assignments in their
portfolio. Customers manage their own website files, databases, mailboxes,
and other hosting resources in the customer workspace. Operators can
move customers and their assigned active hosting accounts between
managers using the customer page, subject to the destination manager's
available plans and remaining account allowance.
The operator's reseller detail page records customer creation and linking,
resource requests, provisioning attempts queued or retried, and changes to
the reseller policy. Customer sign-in and operator support access use the
same workflows as operator-created accounts.
The operator's manager detail page records customer and account
assignments, policy changes, and historical provisioning activity.
## Suspend and resume hosting services
@@ -2634,7 +2628,7 @@ pending service, backup, restore, and credential operations. Open **Retire accou
website and aliases, certificate requests, SSH key fingerprints, databases,
mailboxes, DNS zones, and backup archives. An operator with **Can retire
hosting accounts** confirms the primary domain shown in the preview.
Retirement detaches the customer's and reseller's access to this hosting
Retirement detaches the customer's and manager's access to this hosting
account. It stops the account's backup schedule and automatic archive expiry.
- **Keep names reserved** leaves the suspended resources in place and keeps
@@ -2838,7 +2832,7 @@ sudo systemctl enable --now coulobre-website-usage.socket
Set `COULOBRE_WEBSITE_USAGE=1` in /etc/coulobre/panel.env, then restart
coulobre-panel and coulobre-provisioner. Grant operators who troubleshoot
websites the **Can view website usage** permission. Customers and resellers
websites the **Can view website usage** permission. Customers and managers
can see usage for their assigned accounts.
## Set up a managed secondary DNS server
@@ -2959,3 +2953,51 @@ SQL export** to request a logical dump. Retrieve the latest completed export
over the account's primary SFTP login from
`/backups/database-<suffix>.sql.gz`. The export includes one selected
database.
## Recover a dedicated Coulobre server
Set `COULOBRE_SYSTEM_BACKUPS=1` in the operator worker's environment and
restart the workers and scheduler to enable manual and scheduled runs under
**Admin Tools → System Backup**. The server retains seven archives by default.
Set `COULOBRE_SYSTEM_BACKUP_KEEP` to a value from 1 to 30 to change retention.
Each archive is written under `/var/lib/coulobre/system-backups` with root-only
permissions. It contains the local service configuration and hosting files
listed in the recovery manifest, the site's managed account data and a dump
of the dedicated server's MariaDB instance. Store the matching JSON record
alongside each archive. Protect any copies as carefully as the original
server credentials. Back up linked receivers separately on their hosts.
Stage a selected archive outside the running services using the same
Coulobre release and MariaDB series.
```bash
sudo /opt/coulobre/bin/coulobre-system-backup stage BACKUP_UUID
```
The command verifies the saved SHA-256 and creates a private staging
directory alongside the archive. The staging directory contains service
configuration, hosted files, the MariaDB dump and a list of symlinks and
hardlinks. Review the manifest and links before restoring them to a
dedicated replacement host. Reconcile recorded Coulobre user and group IDs
and file ownership before bringing mounted or hosted directories online.
The staging command leaves the running installation alone.
On the replacement host, provision the matching service versions and keep
public listeners and writers stopped during the restore. Restore the
database into the replacement MariaDB instance using its local root socket.
Restore the reviewed service files and links from staging and validate
Apache, PHP-FPM, DNS and mail configuration before enabling their
listeners. Verify representative sites, mailboxes and backup restores
before changing production DNS.
## Enable DNS-01 for wildcard website certificates
An operator can make wildcard requests available by providing executable,
root-controlled Certbot authentication and cleanup hooks at
`/etc/coulobre/acme-dns/auth` and `/etc/coulobre/acme-dns/cleanup`. Configure
those hooks for the authoritative DNS provider. Set
`COULOBRE_ACME_DNS_01=1` in the panel environment to expose this choice under
**SSL Certificates → ACME settings**. Hostnames come from the selected
hosting account. Configure DNS authorization and renewal on the web node.
Ordinary website certificates use the installed HTTP-01 webroot.