feat(cliproxyapi): add auth backup recovery from dotfiles

Merged
SH
10mo ago
+15-0

Summary

  • Add rsync dependency to cliproxyapi service for file recovery operations
  • Implement automatic recovery of missing authentication files from git-tracked dotfiles backup
  • Recovery only runs on macOS since Linux Docker containers rely on R2 storage
  • Uses --ignore-existing flag to avoid overwriting newer files from other sources
  • Helps prevent authentication issues after system resets or clean setups

Changes

  • cliproxyapi service: Added rsync to available binaries
  • backup-auth.sh: Added recovery step from dotfiles backup after R2 and CCS sync
  • start.sh: Added bootstrap recovery during service initialization

Technical Details

The recovery mechanism checks for missing auth files in the git-tracked dotfiles directory (~/dotfiles/objectstore/auths) and restores them using rsync with --ignore-existing to preserve any newer files from R2 or CCS directories. This provides an additional layer of resilience for authentication file management.


Summary by cubic

Add automatic recovery of missing auth files from a git-tracked dotfiles backup on macOS to prevent auth errors after resets. Includes rsync in the cliproxyapi service and bootstraps recovery in start.sh and backup-auth.sh using --ignore-existing to avoid overwriting newer files.