Skip to content

v3.5.0 — Django Auth Migration

Choose a tag to compare

@sk818 sk818 released this 17 Mar 10:36
· 658 commits to main since this release

What's changed

Replaces the custom /data/passwd + bcrypt authentication with Django's built-in contrib.auth backed by SQLite, following Anil Madhavapeddy's security review.

Highlights

  • Django admin UI at /admin/ for managing users and quotas
  • Automatic passwd migration — existing /data/passwd files are imported on first container boot (no manual steps)
  • Management commands: tee_adduser, tee_removeuser, tee_listusers, tee_setquota, migrate_passwd
  • PBKDF2 password hashing (default) with BCrypt support for migrated hashes
  • Session fixation protection via session.cycle_key() on login
  • No frontend changes — API response shapes are identical

Upgrade

On the host VM:

sudo ./manage.sh   # option 5 (Update container)

The container auto-runs migrate, collectstatic, and migrate_passwd --auto on startup.

Improved error messages

  • process_viewport.py now shows friendlier retry/failure messages