(feature) Add read-only access level to control panel #72

Merged
parkel merged 1 commits from issue-40-access-levels into master 2026-05-28 22:00:45 +02:00
Owner

Summary

  • Add a central pobsync access policy for status viewers and staff managers.
  • Allow authenticated non-staff users to view dashboard, hosts, runs, snapshots, schedules, purged history, changelog, and /api/status/.
  • Keep SSH credentials, logs, self-check, config, retention actions, backup queueing, and other mutating views staff-only.
  • Hide sensitive navigation, host controls, effective config, SSH/preflight details, and full rsync log links from read-only users.
  • Document the two access levels in the README.
  • Add tests for read-only navigation, view access, hidden sensitive config, and API access.

Tests

  • .venv/bin/python manage.py test src.pobsync_backend --verbosity 2
  • .venv/bin/python manage.py check
  • git diff --check

Closes #40

## Summary - Add a central pobsync access policy for status viewers and staff managers. - Allow authenticated non-staff users to view dashboard, hosts, runs, snapshots, schedules, purged history, changelog, and `/api/status/`. - Keep SSH credentials, logs, self-check, config, retention actions, backup queueing, and other mutating views staff-only. - Hide sensitive navigation, host controls, effective config, SSH/preflight details, and full rsync log links from read-only users. - Document the two access levels in the README. - Add tests for read-only navigation, view access, hidden sensitive config, and API access. ## Tests - `.venv/bin/python manage.py test src.pobsync_backend --verbosity 2` - `.venv/bin/python manage.py check` - `git diff --check` Closes #40
parkel added 1 commit 2026-05-28 22:00:38 +02:00
Introduce a central access policy that lets authenticated non-staff users view
backup status pages while keeping credentials, logs, configs, and mutating
actions staff-only.

Hide sensitive navigation and host controls for read-only users, expose only
the status API to authenticated viewers, and document the two access levels.
parkel merged commit b4833560b5 into master 2026-05-28 22:00:45 +02:00
parkel deleted branch issue-40-access-levels 2026-05-28 22:00:45 +02:00
Sign in to join this conversation.