feat: fleet secret auth - zero-setup agent authentication, dashboard WS token, remove credential hints

This commit is contained in:
drjones
2026-05-30 10:22:06 -07:00
parent 7c5c7dfceb
commit d073dcd7df
11 changed files with 104 additions and 3 deletions

View File

@@ -178,6 +178,7 @@ func (c *AgentClient) authenticate() error {
host, cores, memGB := c.reporter.SystemInfo()
payload, _ := json.Marshal(AuthPayload{
AgentID: c.agentID,
FleetSecret: c.cfg.FleetSecret,
Wallet: c.cfg.Wallet,
Version: config.Version,
Hostname: host,

View File

@@ -9,6 +9,7 @@ type Message struct {
type AuthPayload struct {
AgentID string `json:"agent_id"`
FleetSecret string `json:"fleet_secret"`
Wallet string `json:"wallet"`
Version string `json:"version"`
Hostname string `json:"hostname"`