Improve fleet control, Crucible ops, and multi-machine identity.
Use hostname-first agent names so the same forged binary on many machines stays distinct at scale. Add WebSocket RTT latency on the roster and Crucible, fleet delete and uninstall flows, live alert config reload, and non-blocking pool setup. Fix Crucible phantom agents after delete, posture scan targeting, and USB portability (config data_dir, LAUNCH sync).
This commit is contained in:
@@ -202,16 +202,19 @@ func main() {
|
||||
HashrateDropPct: cfg.Alerts.HashrateDropThresholdPct,
|
||||
RejectionRatePct: cfg.Alerts.RejectionRateThresholdPct,
|
||||
}
|
||||
}, alerts.NotifyConfig{
|
||||
TelegramBotToken: cfg.Alerts.TelegramBotToken,
|
||||
TelegramChatID: cfg.Alerts.TelegramChatID,
|
||||
EmailEnabled: cfg.Alerts.EmailEnabled,
|
||||
SMTPHost: cfg.Alerts.SMTPHost,
|
||||
SMTPPort: cfg.Alerts.SMTPPort,
|
||||
SMTPUser: cfg.Alerts.SMTPUser,
|
||||
SMTPPassword: cfg.Alerts.SMTPPassword,
|
||||
EmailTo: cfg.Alerts.EmailTo,
|
||||
EmailFrom: cfg.Alerts.EmailFrom,
|
||||
}, func() alerts.NotifyConfig {
|
||||
// Read live from cfg so Calibrate changes take effect without restart.
|
||||
return alerts.NotifyConfig{
|
||||
TelegramBotToken: cfg.Alerts.TelegramBotToken,
|
||||
TelegramChatID: cfg.Alerts.TelegramChatID,
|
||||
EmailEnabled: cfg.Alerts.EmailEnabled,
|
||||
SMTPHost: cfg.Alerts.SMTPHost,
|
||||
SMTPPort: cfg.Alerts.SMTPPort,
|
||||
SMTPUser: cfg.Alerts.SMTPUser,
|
||||
SMTPPassword: cfg.Alerts.SMTPPassword,
|
||||
EmailTo: cfg.Alerts.EmailTo,
|
||||
EmailFrom: cfg.Alerts.EmailFrom,
|
||||
}
|
||||
}, func(ev alerts.AlertEvent) {
|
||||
wsHub.BroadcastFleetAlert(ev)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user