2 Commits

Author SHA1 Message Date
Fimeg
c0d6ece30f cleanup: Remove unused files and fix ETHOS violations
Remove unused generation scripts (not referenced):
- scripts/generate-keypair.go (unused manual utility)
- cmd/tools/keygen/ (unused utility, clutters cmd structure)

Remove root-level dev files (clutter):
- restart_and_fix.sh (dangerous: wipes database)
- test_install_commands.sh (development only)
- test-binary (compiled artifact)
- sudo (third-party tool)
- scanning_ux_summary.txt (dev notes)

Fix ETHOS violations in build-secure-agent.sh:
- Remove emojis (🔨, , ℹ️)
- Replace with proper format: [INFO] [build] ...

Cleanup based on definitive code forensics.

Impact: Cleaner repository, ETHOS-compliant, no functional loss.
2025-12-20 15:23:13 -05:00
Fimeg
ec3ba88459 feat: machine binding and version enforcement
migration 017 adds machine_id to agents table
middleware validates X-Machine-ID header on authed routes
agent client sends machine ID with requests
MIN_AGENT_VERSION config defaults 0.1.22
version utils added for comparison

blocks config copying attacks via hardware fingerprint
old agents get 426 upgrade required
breaking: <0.1.22 agents rejected
2025-11-02 09:30:04 -05:00