Rotate database and mailbox passwords from the panel #70

Merged
parkel merged 3 commits from feature/service-credential-rotation into main 2026-11-21 19:24:30 +01:00
Owner

Summary

  • Let eligible users confirm their panel password and rotate a selected MariaDB or mailbox login. Store the attempt, outcome, and rotation identifier in the audit, while the service node manages the generated credential.
  • Verify the replacement login and rejection of the previous password. Preserve grants, data, mail, and quotas. Resume an interrupted change with the same operation identifier and block stale forms.
  • Use a dedicated, host-key-verified SSH relay and credential socket for remote mailbox connection details and rotation.

Related issues

Closes #59
Closes #60

Verification

  • Ran 382 Django tests, Ruff, and the migration check. Checked the deployment shell examples.
  • Verified local MariaDB and Dovecot rotation with the systemd units on Ubuntu, including replay, existing application data, delivered messages, and mailbox quota. Verified phpMyAdmin sign-in against the rotated database with the packaged phpMyAdmin application.
  • Verified remote mailbox reveal and rotation across two isolated Ubuntu guests. Rejected a mismatched host key, restored the verified key, and replayed the same request.
  • Tested mailbox recovery after the Dovecot lookup was updated and confirmed that a second mailbox could still be provisioned during the interruption.
## Summary - Let eligible users confirm their panel password and rotate a selected MariaDB or mailbox login. Store the attempt, outcome, and rotation identifier in the audit, while the service node manages the generated credential. - Verify the replacement login and rejection of the previous password. Preserve grants, data, mail, and quotas. Resume an interrupted change with the same operation identifier and block stale forms. - Use a dedicated, host-key-verified SSH relay and credential socket for remote mailbox connection details and rotation. ## Related issues Closes #59 Closes #60 ## Verification - Ran 382 Django tests, Ruff, and the migration check. Checked the deployment shell examples. - Verified local MariaDB and Dovecot rotation with the systemd units on Ubuntu, including replay, existing application data, delivered messages, and mailbox quota. Verified phpMyAdmin sign-in against the rotated database with the packaged phpMyAdmin application. - Verified remote mailbox reveal and rotation across two isolated Ubuntu guests. Rejected a mismatched host key, restored the verified key, and replayed the same request. - Tested mailbox recovery after the Dovecot lookup was updated and confirmed that a second mailbox could still be provisioned during the interruption.
parkel added this to the v0.3.0 - Day-to-day hosting administration milestone 2026-11-21 19:23:43 +01:00
parkel added 3 commits 2026-11-21 19:23:43 +01:00
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
0ab0eebfc6
parkel added the area/databasearea/deploymentarea/mailarea/panel
kind
feature
labels 2026-11-21 19:23:43 +01:00
parkel merged commit f1d0d8ff3e into main 2026-11-21 19:24:30 +01:00
parkel deleted branch feature/service-credential-rotation 2026-11-21 19:24:30 +01:00
Sign in to join this conversation.