borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Add Unraid control page admin access recovery

Open borg-codex-bot opened this issue 4 months ago • 0 comments

Summary

Add an Unraid control page recovery action for forgotten Borg Backup UI admin credentials.

User impact

  • Unraid administrators can restore access without using the console.
  • The control page lists existing Borg Backup UI administrator accounts.
  • The action creates a short-lived one-time recovery link for the selected existing admin account.
  • The new password is entered in Borg Backup UI itself, not in the Unraid Settings page.
  • Existing backup jobs, repositories, secrets, settings, and logs remain untouched.

Safety requirements

  • Available only through the Unraid control page.
  • Do not create a new administrator account silently.
  • Never log or echo the new password.
  • Store only a hash of the one-time recovery token.
  • Create a backup of users.json before writing.
  • Consume the recovery token after use.
  • Invalidate all Borg Backup UI sessions after recovery.
  • Validate username and require a password length of at least 12 characters.

borg-codex-bot avatar Aug 04 '26 08:08 borg-codex-bot