Watch
1
0
Fork
You've already forked RedFlag
0
RedFlag/web
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fimeg 78d9131a9f v0.2.0.3: wire install flow, restore lost handlers, dedupe agent packages
Server / agent install pipeline:
- Restore dry_run_update, confirm_dependencies, install_updates,
  enable_heartbeat, disable_heartbeat handlers on the agent side (lost in
  the TD-001 god-function refactor at 9da5134e); wire them through
  handlers/dispatch.go so the cross-platform agent loop dispatches them
  alongside scans and update_agent.
- Wire JWT renewal into the polling loop on 401 (RenewToken existed in the
  client but was dead code in loop.go).
- Self-update path now shells through sudo for cp/chmod/systemctl restart,
  matching the redflag-agent user's hardened systemd unit.

Server build orchestrator:
- BuildAndSignAgent now reuses the existing signed package row when the
  on-disk binary's checksum matches the stored one. Previously the server
  re-signed and inserted 4 fresh rows on every boot, leaving dozens of
  duplicate agent_update_packages entries.
- CreateUpdatePackage is now ON CONFLICT (version, platform, architecture)
  DO UPDATE so a fresh build of the same version replaces in place.
- New migration 037: dedupes existing rows (keep newest per tuple) and
  enforces UNIQUE (version, platform, architecture).
- Drop dead verification.go endpoint stub — architecturally broken in a
  pull-only polling model.

Dashboard:
- AgentUpdatesModal filters packages to the selected agents' os_type and
  os_architecture, dedupes by (version, platform, arch), and renders
  platform/arch together so 32/64-bit differentiate visually. Drops the
  platform dropdown (now agent-driven).

Install script template:
- Fix server_public_key + initial_binary.sig ownership so the agent user
  can overwrite them; convert hex key to raw 32 bytes inline.
- Add sudoers entries for the agent's self-update cp/chmod/systemctl path.

Downloads handler resolves ?version=latest to AgentVersion so install
scripts pull a signed package instead of a 404.

Version bumped to 0.2.0.3 across versions.go, docker-compose, Makefile,
downloads.go, security min_agent_version.
2026-05-25 10:02:52 -04:00
..
public ui: replace stale vite.svg reference with RedFlag favicon 2026-05-22 14:20:26 -04:00
src v0.2.0.3: wire install flow, restore lost handlers, dedupe agent packages 2026-05-25 10:02:52 -04:00
.env.example refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
Dockerfile refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
index.html ui: replace stale vite.svg reference with RedFlag favicon 2026-05-22 14:20:26 -04:00
nginx.conf refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
package-lock.json fix(web): TypeScript errors for Vite 8 + Rolldown 2026-05-24 20:18:16 -04:00
package.json fix(web): TypeScript errors for Vite 8 + Rolldown 2026-05-24 20:18:16 -04:00
postcss.config.js refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
tailwind.config.js refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
tsconfig.json refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
tsconfig.node.json refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
vite.config.ts refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00