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.
+21 -19
View File
@@ -49,23 +49,24 @@ 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
## Give a manager access to assigned accounts
In `/admin/`, create a normal user and add a **Reseller** record for that user.
Then open a hosting account in Coulobre Panel and select the reseller when
editing the account. Existing accounts start with no reseller assigned.
In `/admin/`, create a normal user and add a **Manager** record for that user.
Then open a hosting account in Coulobre Panel and select the manager when
editing the account. Existing accounts start with no manager assigned.
The reseller can sign in to Coulobre Panel to see their assigned accounts,
each account's hosting plan, and its web provisioning previews.
Managers can sign in to Coulobre Panel to see their assigned hosting accounts
and plans. They can also onboard customers and assign an allowed hosting plan
to an existing account.
To let the reseller add accounts, set a positive account limit and select the
available hosting plans in the reseller's admin record. The reseller's account
To let the manager add accounts, set a positive account limit and select the
available hosting plans in the manager's admin record. The manager's account
list shows their allowance. The limit applies to self-service creation, and
operator assignments also count toward the allowance. New reseller accounts
automatically belong to that reseller and require an allowed plan. A limit of
zero keeps the reseller's access read-only.
operator assignments also count toward the allowance. New hosting accounts
automatically belong to the manager and require an allowed plan. A limit of
zero blocks creation of additional hosting accounts.
Platform operators manage existing accounts, assignments, reseller allowances,
Platform operators manage existing accounts, assignments, manager allowances,
and node deployment files.
The local database defaults to `db.sqlite3`. Set `COULOBRE_SQLITE_PATH` to use a
@@ -74,12 +75,13 @@ different file. Keep `COULOBRE_DEBUG` for local development.
## Give a customer access to hosting accounts
In Coulobre Panel, open **Customers** and select **Add customer**. Enter a
username and initial password. Select the customer when adding or editing a
username and email address to send a password setup link, or set an
initial password manually. Select the customer when adding or editing a
hosting account. Repeat the assignment for each hosting account the customer
should be able to access. To give an existing user customer access, add a
**Customer** record for that user in `/admin/`.
The customer can sign in to Coulobre Panel with that username and password.
The customer signs in after setting or receiving their password.
Their account list shows only the hosting accounts assigned to them. Each
account page shows its hosting plan, database requests, DNS zones, and mailbox
requests. Customers can request databases and mailboxes for their own accounts
@@ -145,7 +147,7 @@ such as `wordpress`. The panel derives the full database name from the account
ID and suffix, so two accounts can each request a database named `wordpress`.
The account page shows the requested databases. Operators can download a
versioned deployment manifest containing the account ID and suffix. Resellers
versioned deployment manifest containing the account ID and suffix. Managers
can view the requested database names on their own assigned accounts. The
manifest describes the database to provision on a MariaDB node.
@@ -279,7 +281,7 @@ for other records. The panel increments the SOA serial when the zone data
changes. Changing the account's primary domain preserves its existing DNS zones.
Select **Download manifest** in the DNS table and copy the file to the
hosting server or a separate DNS node. Resellers can see the configured
hosting server or a separate DNS node. Managers can see the configured
domains and serials for their assigned accounts. Operators with the
appropriate permissions can add and edit zones and download manifests.
The panel exports version 2 for zones containing MX or TXT records and
@@ -419,7 +421,7 @@ 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.
Managers 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.
@@ -843,7 +845,7 @@ and registrar delegation for the operator.
Create a separate hosting account or model aliases explicitly for additional
web domains. Review mail forwarding, catch-all and vacation settings,
custom IMAP keywords and subscriptions, webmail preferences, scheduled
tasks, reseller assignments, FTP users, certificates, source credentials,
tasks, manager assignments, FTP users, certificates, source credentials,
and the system mailbox in a nested home archive. Reissue TLS certificates
and rotate access using the provisioned Coulobre credentials. Verify the
website, database rows, mailbox folders, and published zone before cutover.
@@ -1073,7 +1075,7 @@ 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.
managers can see measurements on their assigned accounts.
### Apply a website storage limit