Muhammad Ibrahim
80a701cc33
Modified the proxmox_auto-enroll.sh script to suit the new way
2025-10-19 18:57:28 +01:00
Muhammad Ibrahim
2659a930d6
Add force flag to bypass broken packages upon installation
2025-10-04 13:37:05 +01:00
Muhammad Ibrahim
811930d1e2
feat: Implement machine_id based host identification
...
- Add machine_id field to hosts schema (unique, indexed)
- Remove unique constraint from friendly_name (allow duplicate hostnames)
- Agent installer now generates/reads persistent machine_id
- Proxmox script retrieves machine_id from LXC containers
- Backend will check machine_id instead of hostname for duplicates
This allows multiple hosts with same hostname to coexist in PatchMon
2025-10-04 09:02:56 +01:00
Muhammad Ibrahim
f3db16d6d0
feat: Auto-install curl in LXC containers if missing before agent installation
2025-10-03 23:57:38 +01:00
Muhammad Ibrahim
5c2bacb322
feat: Add failure details section showing last 5 lines of output for failed containers
2025-10-03 22:49:51 +01:00
Muhammad Ibrahim
5e8cfa6b63
feat: Add Proxmox LXC auto-enrollment script with dpkg error recovery
2025-10-03 22:27:04 +01:00
Muhammad Ibrahim
373ef8f468
feat: Add interactive dpkg error recovery with automatic retry
2025-10-02 15:19:49 +01:00
Muhammad Ibrahim
513c268b36
fix: Reset install_exit_code per container and detect success via output message
2025-10-02 15:14:50 +01:00
Muhammad Ibrahim
13c4342135
feat: Remove 'proxmox-' prefix from friendly names, use hostname only
2025-10-02 14:39:36 +01:00
Muhammad Ibrahim
bbb97dbfda
fix: Remove EXIT from error trap to prevent false failures on successful completion
2025-10-02 14:37:38 +01:00
Muhammad Ibrahim
e0eb544205
fix: Make all counter increments safe with || true to prevent set -e exit
2025-10-02 13:42:09 +01:00
Muhammad Ibrahim
51982010db
fix: Pass API credentials directly to curl instead of via env vars
2025-10-02 13:41:12 +01:00
Muhammad Ibrahim
dc68afcb87
fix: Prevent set -e exit on agent install failure and show output
2025-10-02 13:39:28 +01:00
Muhammad Ibrahim
bec09b9457
fix: Download agent installer to file before executing to prevent stdin pipe hang
2025-10-02 13:37:55 +01:00
Muhammad Ibrahim
55c8f74b73
chore: Bump debug version to 1.0.0-debug.6
2025-10-02 13:16:09 +01:00
Muhammad Ibrahim
16ea1dc743
fix: Make logging functions always return 0 to prevent set -e exit
2025-10-02 13:15:57 +01:00
Muhammad Ibrahim
8c326c8fe2
debug: Add version echo at script start for verification
2025-10-02 13:14:38 +01:00
Muhammad Ibrahim
2abc9b1f8a
debug: Add strict error handling and exit trap to diagnose silent exit
2025-10-02 13:12:29 +01:00
Muhammad Ibrahim
e5f3b0ed26
debug: Add detailed logging to diagnose where script hangs
2025-10-02 13:10:51 +01:00
Muhammad Ibrahim
bfc5db11da
fix: Close stdin before while loop to prevent hang when piped from curl
2025-10-02 13:09:13 +01:00
Muhammad Ibrahim
a0bea9b6e5
fix: Remove global exec stdin redirect that breaks curl pipe
2025-10-02 13:03:50 +01:00
Muhammad Ibrahim
ebda7331a9
fix: Detach stdin globally to prevent curl pipe hangs in Proxmox script
2025-10-02 12:55:52 +01:00
Muhammad Ibrahim
9963cfa417
fix: Add timeouts and stdin redirection to prevent pct exec hanging
2025-10-02 08:28:07 +01:00
Muhammad Ibrahim
b99f4aad4e
feat: Add Proxmox LXC auto-enrollment integration
...
- Add auto_enrollment_tokens table with rate limiting and IP whitelisting
- Create backend API routes for token management and enrollment
- Build frontend UI for token creation and management
- Add one-liner curl command for easy Proxmox deployment
- Include Proxmox LXC discovery and enrollment script
- Support future integrations with /proxmox-lxc endpoint pattern
- Add comprehensive documentation
Security features:
- Hashed token secrets
- Per-day rate limits
- IP whitelist support
- Token expiration
- Separate enrollment vs host API credentials
2025-10-02 07:50:10 +01:00