Files
d3da38ef4e feat(deploy): pve-flr-portal roles, and a roles step in the installer (#91)
* feat(deploy): pve-flr-portal roles, and a roles step in the installer (#91)

- deploy/pfr-roles.sh creates, inspects (status) and deletes the PVE roles
  the portal's users need - FileRestoreReader, FileRestoreOperator (PVE 9+,
  --unrestricted adds the guest-exec privilege) and FileRestoreReaderHost.
  Existing roles are left alone, a differing one is changed only on
  confirmation, and a role with grants is only deleted with --remove-acls.
  Every pveum call is checked individually.
- pve-flr-portal roles downloads it from GitHub like install.
- The installer has a 'PVE roles to create' step (a checklist that may end
  up empty) and runs the tool from the new container's checkout; nothing is
  created unattended unless CREATE_ROLES is set. Creating a role grants
  nothing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* refactor(deploy): move pfr-roles.sh into deploy/host (#91)

It runs on the PVE node, like the rest of deploy/host.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(deploy): keep the roles tool on the host, installed with the command (#91)

pve-flr-portal roles used to download its tool on every run. It now lives at
/usr/local/sbin/pve-flr-portal-roles, like the host-backup patch script:
install-host-tools.sh, pve-flr-portal host-tools, a container update and the
installer install or refresh it from the same source as the command (a missing
or foreign file is never installed), and the installer runs the host's copy.
A host that predates it downloads the tool for the run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Trey Jones <trey.jones@starrise.net>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 18:22:46 -05:00
..