Watch
1
0
Fork
You've already forked RedFlag
0

fix: desktop-self token missing ArtifactPath — stageClosureArtifact requires it

This commit is contained in:
Fimeg 2026-06-11 08:30:11 -04:00
commit 937b3a5b6d
2 changed files with 5 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

View file

@ -72,10 +72,11 @@ func (h *AgentUpdateHandler) mintDesktopSelfToken(agentID uuid.UUID, version str
}
closure := []capability.ClosureEntry{{
Name: "redflag-desktop",
Version: version,
SHA256: desktopPkg.Checksum,
Source: "desktop-self",
Name: "redflag-desktop",
Version: version,
SHA256: desktopPkg.Checksum,
Source: "desktop-self",
ArtifactPath: fmt.Sprintf("/api/v1/downloads/updates/%s", desktopPkg.ID),
}}
now := time.Now().UTC()