tuf-split-grant-lifecycle-defensive
Split Release Plane Stabilization
/testbed contains a Go release system built on the TAP4 multi-repository
client in go-tuf/v2 v2.4.2. tufctl maintains federation trust and issues
release records. One or more tufedge workers use those records to retrieve,
reuse, and serve artifact bytes. The processes share persistent state.
Operator report
The following production symptoms have been reproduced:
- after a federation map or repository release changes, an edge can return bytes selected under an earlier control-plane decision;
- terminating the control process during metadata work can leave surviving processes unable to recover the last successful release view;
- overlapping edge requests sometimes perform duplicate transfers, and work abandoned by a disconnected client can still appear in persistent reuse state;
- two control processes operating on the same deployment can interfere with one another even though requests for unrelated profiles should remain independent.
Audit the complete release lifecycle and correct the underlying causes rather than special-casing these examples.
Required outcome
An artifact response and any state reused to produce it must remain authorized by the control plane's current successful TAP4 decision when the response is committed. This must hold across policy and repository changes, process restarts, abrupt exits, cancellation, and overlapping workers.
Preserve:
- TAP4 threshold consensus and qualified-repository transfer failover;
- warm reuse of an unchanged authorized release after an edge restart;
- sharing of equivalent work across edge workers;
- concurrent progress for unrelated profiles and target paths.
Do not replace either runtime, disable persistent reuse, serialize all release traffic globally, add test-specific payload checks, add dependencies, or require external network access. Keep the existing command-line and HTTP interfaces.
The offline build contract is:
gofmt -w .
go build ./...
Deliverables
Write both files under /app/output.
/app/output/plan.md
Provide a substantive technical plan covering:
- the security and authority model;
- root causes across the affected lifecycle;
- the coordinated remediation;
- preserved behavior and compatibility;
- verification performed.
findings.json
Write a JSON object containing a non-empty findings array. Every finding must
include an id or title, cwe in CWE-NNN form, severity, location,
root_cause or description, and fix or remediation. Use defensible CWE
mappings and do not invent a CVE.
Scope
- Work only in
/testbedand/app/output. - Treat blanket denial, malformed builds, unavailable services, and feature removal as failures rather than security fixes.