Commit Graph

19 Commits

Author SHA1 Message Date
BeauTroll
c6de550329 Apply critical security fixes and major improvements to all scripts
Security (CRITICAL):
- Add .env.example with strong password generation instructions
- Fix path traversal validation in restore.sh (now detects all .. patterns)
- Secure .env loading with set -a/set +a in all scripts
- Add logs/ to .gitignore to prevent credential leaks

Backup & Restore (IMPORTANT):
- Add file locking system to prevent concurrent backups
- Add disk space verification before backup operations
- Generate SHA256 checksums for all backups
- Verify checksums before restoration
- Create safety database backup before restore
- Implement comprehensive logging to ./logs/ directory
- Fix BACKUP_RETENTION_DAYS inconsistency
- Replace dangerous find -delete with safe iteration

Update & Recovery:
- Backup docker-compose.yml before updates with auto-rollback
- Add version display before/after updates
- Increase timeouts to 120s for slow containers
- Dynamic backup suggestion in recover.sh

Compatibility:
- Add Docker Compose v2 support with v1 fallback in all scripts
- Standardized log() function across all scripts

New Features:
- Add check-health.sh: comprehensive system health monitoring
- Add SECURITY.md: complete security documentation
- Update Makefile with check-health and recover commands
- Centralized logging with timestamps and levels

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 18:27:00 +01:00
BeauTroll
701513ce15 Standardize error message prefixes in backup.sh
Replace emoji-based prefixes with consistent [ERR], [WARN], and [*]
prefixes for better parsing and logging compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 18:16:21 +01:00
BeauTroll
256d2632a1 fix escaping 2025-12-16 05:16:38 +01:00
BeauTroll
03821b5e18 fix quoted string 2025-12-16 05:15:04 +01:00
BeauTroll
b9c6122d4f add recover script 2025-12-16 05:09:47 +01:00
BeauTroll
f3655144a7 improve transparency and fix variable naming 2025-12-16 03:23:42 +01:00
BeauTroll
386f731c2b improve Makefile and secure bash scripts 2025-12-15 11:35:24 +01:00
BeauTroll
2dc57afab4 add backup to gitignore 2025-12-15 11:32:32 +01:00
BeauTroll
517e337a25 improve scripts security 2025-12-15 11:14:16 +01:00
BeauTroll
dc15b4665d fix env 2025-12-15 11:02:39 +01:00
BeauTroll
a7e6cf402d update readme 2025-12-15 11:00:58 +01:00
BeauTroll
db65cd7ec9 add dev/prod configuration 2025-12-15 03:47:03 +01:00
BeauTroll
764b78a12e fix indentation 2025-12-15 03:38:50 +01:00
BeauTroll
7c6a42587c add readme 2025-12-15 02:54:16 +01:00
BeauTroll
d0ce7d5185 remove redis host from env 2025-12-15 02:53:50 +01:00
root
ddc99b914f add scripts 2025-12-14 22:26:17 +01:00
root
5aa7471f80 add .env.example 2025-12-14 20:20:22 +01:00
root
323a16f287 refactor docker compose 2025-12-14 20:10:07 +01:00
root
ad8f074f87 initial commit 2025-12-14 18:27:38 +01:00