Restrict linked receiver keys to assigned domains

This commit is contained in:
parkel committed 2026-11-23 06:42:47 +01:00
1 parent f8643bf60d
commit 23e6e01303
10 files changed
+501 -25

No files matched your search

+60
View File
@@ -697,6 +697,66 @@ the provisioning socket is stopped or paused.
sudo /opt/coulobre/bin/coulobre-node-setup finish-maintenance dns /root/dns-upgrade.json
```
### Limit linked provisioning to assigned domains
Use scoped keys when independent panels share a DNS or mail receiver. The
receiver authenticates a dedicated Unix account for each panel and checks
the requested domain before applying changes or inspecting its mail queue.
Each scope lists exact domains. DNS parent and child zones must belong to
the same panel if their scopes overlap.
Upgrade the receiver and the panels, then apply the current receiver SSH
configuration with `coulobre-node-setup --source /path/to/release
install-receiver dns` (or `mail`). Prepare the panel's role-specific key.
Copy its public half to the receiver and authorize the domains.
```sh
# On the panel
sudo /opt/coulobre/bin/coulobre-node-setup prepare-panel dns
# On the receiver
sudo /opt/coulobre/bin/coulobre-node-setup authorize-scoped-panel \
dns panel-one /root/panel-one-dns.pub example.net
# On the panel, using the receiver's verified host key
sudo /opt/coulobre/bin/coulobre-node-setup --source /path/to/release \
enrol-panel dns dns.example.org /root/dns-host.pub --scope panel-one
```
Repeat authorization with the same public key and the complete desired
domain list when assignments change. For an existing unrestricted receiver,
coordinate a maintenance window, back up and remove unrestricted panel
keys, enroll the scoped identities, and check both panels before resuming
provisioning. For an existing panel relay, update the `User` directive in
its role-specific `/etc/coulobre-remote/<role>/ssh_config` to the scoped
username printed by authorization. Keep its pinned host key and run
`coulobre-node-setup check-panel <role>` before enabling jobs.
On scoped mail receivers, use local administrative workflows for mailbox
credential and archive operations. The separate legacy SSH transports for
those operations are unavailable on a scoped receiver. Local mail
delivery and IMAP keep using their existing configuration.
### Use SHA-2 for new managed database logins
On a MariaDB build with `auth_mysql_sha2`, you can provision new managed
database logins with `caching_sha2_password`. Verify the active site's PHP
driver, phpMyAdmin, and administrative clients against a test login before
changing the policy. Coulobre retains the authentication plugin and password
for each existing login.
```sh
sudo mariadb -e "INSTALL SONAME 'auth_mysql_sha2';"
printf '%s\n' caching_sha2_password | sudo tee /etc/coulobre/database-authentication
sudo chown root:root /etc/coulobre/database-authentication
sudo chmod 0644 /etc/coulobre/database-authentication
```
Managed logins remain restricted to localhost. If the target host needs an
older driver or does not supply the SHA-2 plugin, use
`mysql_native_password` as the policy for new logins. Keep the SHA-2 plugin
loaded as long as any existing managed login uses it.
### Upgrade from v0.9 to v0.10
Use the in-place procedure above with the v0.10 source release. Keep a copy