Protect panel sign-in and customer password recovery #99

Merged
parkel merged 2 commits from feature/protect-panel-sign-in into main 2026-11-22 11:36:02 +01:00
Owner

Summary

  • Keep the first privileged sign-in password-only and open factor setup immediately afterward. Grant administrator and reseller access once the second factor is confirmed. Require the registered factor after the password at later sign-ins.
  • Use django-otp for authenticator apps and short-lived, one-time email codes. Offer email during setup when SMTP and the account address are available. Use recovery codes or operator-assisted enrollment for a lost factor.
  • Limit password, factor, and reset requests in the panel database. Use the network peer address for direct TCP access and Apache's verified client address on the restricted Gunicorn socket.
  • Provide eligible customers with 30-minute, single-use password reset links. Queue requests through RabbitMQ and show the same result for known and unknown addresses. Route Django admin sign-in through the panel.

Closes #88

Verification

  • Passed 461 Django tests, including initial enrollment, subsequent TOTP verification, code replay protection, tenant boundaries, and password reset expiry and reuse.
  • Upgraded a v0.7 database on Ubuntu 26.04 with MariaDB and exercised the installed wheel through Apache and Gunicorn. Checked authenticator enrollment, email factors via a local SMTP relay, recovery codes, and reset delivery through RabbitMQ.
  • Verified rate limiting through direct TLS and a trusted reverse proxy. Confirmed that client-supplied forwarding headers cannot replace the address resolved by the configured front end.
  • Verified the wheel and source distribution against the branch commit. The deployment guide covers enrollment, recovery, SMTP, and trusted client identification.
## Summary - Keep the first privileged sign-in password-only and open factor setup immediately afterward. Grant administrator and reseller access once the second factor is confirmed. Require the registered factor after the password at later sign-ins. - Use django-otp for authenticator apps and short-lived, one-time email codes. Offer email during setup when SMTP and the account address are available. Use recovery codes or operator-assisted enrollment for a lost factor. - Limit password, factor, and reset requests in the panel database. Use the network peer address for direct TCP access and Apache's verified client address on the restricted Gunicorn socket. - Provide eligible customers with 30-minute, single-use password reset links. Queue requests through RabbitMQ and show the same result for known and unknown addresses. Route Django admin sign-in through the panel. Closes #88 ## Verification - Passed 461 Django tests, including initial enrollment, subsequent TOTP verification, code replay protection, tenant boundaries, and password reset expiry and reuse. - Upgraded a v0.7 database on Ubuntu 26.04 with MariaDB and exercised the installed wheel through Apache and Gunicorn. Checked authenticator enrollment, email factors via a local SMTP relay, recovery codes, and reset delivery through RabbitMQ. - Verified rate limiting through direct TLS and a trusted reverse proxy. Confirmed that client-supplied forwarding headers cannot replace the address resolved by the configured front end. - Verified the wheel and source distribution against the branch commit. The deployment guide covers enrollment, recovery, SMTP, and trusted client identification.
parkel added 2 commits 2026-11-22 11:32:58 +01:00
Document and verify panel authentication workflows
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s
58f589343d
parkel added the area/panel
kind
feature
labels 2026-11-22 11:32:58 +01:00
parkel merged commit 957979c00e into main 2026-11-22 11:36:02 +01:00
parkel deleted branch feature/protect-panel-sign-in 2026-11-22 11:36:02 +01:00
Sign in to join this conversation.