Connect hosting workspaces to scoped services and backups

This commit is contained in:
parkel committed 2026-11-23 22:31:20 +01:00
1 parent fd2bdb8a18
commit 377344e591
58 files changed
+2920 -172

No files matched your search

+44
View File
@@ -2874,3 +2874,47 @@ On the panel, set `COULOBRE_DNS_REPLICATION_ADDRESSES` with the primary
then the secondary query IP, separated by a comma. Restart the panel
and select **Check replication** from a DNS zone to compare live
authoritative SOA serials.
## Enable local operator actions
The operator action worker handles allowlisted service reloads and restarts,
MariaDB status reports, and reviewed server package updates. Install it on
the panel host from the same release as the panel. The worker uses a dedicated
system account and can contact the root-owned socket. Operators must have a
verified second factor to request an action in the panel.
```bash
sudo adduser --system --group --no-create-home coulobre-operator
sudo install -m 0644 deploy/systemd/coulobre-operator-apply.socket \
deploy/systemd/coulobre-operator-apply@.service \
deploy/systemd/coulobre-operator-worker.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now coulobre-operator-apply.socket \
coulobre-operator-worker.service
```
To enable APT actions, set `COULOBRE_SERVER_PACKAGE_UPDATES=1` in
`/etc/coulobre/panel.env`. Open **System → Updates → Server package updates**
and request a preview. The receiver refreshes package indexes and records the
proposed versions. Applying a preview requires confirmation and a fresh
matching package plan. Use the job history and the host's package logs to
review the result.
## Customer backup exports and restores
When the website, SFTP login and local account-backup worker are enabled,
customers can request an archive for their selected hosting account. The
latest completed export is available at `/backups/latest.zip` over SFTP. The
worker writes the archive into the account's root-owned backup directory and
assigns read access to the account's hosting login.
The panel offers restore previews for components included in an eligible
archive made by that customer. The selected website, database or mailbox
must still belong to the account. A full website restore needs an empty
document root, and database and mailbox destinations must be ready for
restore. The worker reports progress and completion in **Backup & Restore**.
For upgrades with local backups already enabled, install the current
`coulobre-account-backup@.service` from the release before relying on SFTP
exports. The unit needs write access to the managed web and web-node
directories to publish the customer copy.