feat: implement agent migration system

- Fix config version inflation bug in main.go
- Add dynamic subsystem checking to prevent false change detection
- Implement migration detection and execution system
- Add directory migration from /etc/aggregator to /etc/redflag
- Update all path references across codebase to use new directories
- Add configuration schema versioning and automatic migration
- Implement backup and rollback capabilities
- Add security feature detection and hardening
- Update installation scripts and sudoers for new paths
- Complete Phase 1 migration system
This commit is contained in:
Fimeg
2025-11-04 14:25:53 -05:00
parent 253022cacd
commit e6ac0b1ec4
8 changed files with 994 additions and 16 deletions

View File

@@ -830,7 +830,7 @@ func loadCachedPublicKeyDirect() ([]byte, error) {
if runtime.GOOS == "windows" {
keyPath = "C:\\ProgramData\\RedFlag\\server_public_key"
} else {
keyPath = "/etc/aggregator/server_public_key"
keyPath = "/etc/redflag/server_public_key"
}
data, err := os.ReadFile(keyPath)