Watch
1
0
Fork
You've already forked RedFlag
0
RedFlag/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fimeg 2a0c800659 v0.2.2.0: enforce package state machine across all transitions, vuln dashboard
Route every current_package_state status change through one transitionStatus
path: read the observed status, validate against PackageStatusTransitions,
run a status-guarded UPDATE, record terminal history. Replaces ten raw-SQL
transition functions whose WHERE guards validated nothing and silently
no-op'd on an illegal state. ApproveUpdate, the Reject/Install/Set* family,
BulkApprove and UpdatePackageStatus now share the core; illegal moves return
a named from->to error instead of a silent miss, and concurrent callers are
caught by the guarded row count.

Migration 047 renames the terminal success state updated -> installed in
current_package_state and update_version_history, realigning both CHECK
constraints with the Go PackageStatus/HistoryStatus constants.
UpdateStats updated_updates -> installed_updates to match.

UpdateCurrentStateInTx documents its reconcile CASE as the SQL twin of
models.ReconcileFromScan so the two stay in lockstep.

Dashboard: vulnerable-package count surfaced in AttentionPanel, plus a
Vulnerable quick-filter on the Updates view.
2026-05-31 16:39:58 -04:00
..
cmd/server feat: signing key deprecation UI + endpoint, fix agent mgmt for hashed tokens 2026-05-30 14:09:50 -04:00
internal v0.2.2.0: enforce package state machine across all transitions, vuln dashboard 2026-05-31 16:39:58 -04:00
.env.example refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
docker-entrypoint.sh refactor: rename aggregator-agent to agent for public release 2026-05-21 13:19:18 -04:00
Dockerfile feat: helper distribution pipeline + dnf discovery/resolve fixes for live gate 2026-05-29 22:04:38 -04:00
go.mod refactor(agent): scanner orchestrator cleanup + kernel-enforcement wiring + hash-registry follow-ups 2026-05-28 13:31:51 -04:00
go.sum refactor(agent): scanner orchestrator cleanup + kernel-enforcement wiring + hash-registry follow-ups 2026-05-28 13:31:51 -04:00