feat(core): flag sensitive artifacts in run.finished (#4)

Optional, additive protocol field so the web UI can mark one-shot downloads such as private keys.
This commit is contained in:
Florian Schmidt
2026-11-16 00:11:40 +01:00
parent b7051d2479
commit 1dbea28b43
+4 -1
View File
@@ -70,7 +70,8 @@ export interface StartRunResponse {
runId: string;
}
// GET /api/runs/:runId/artifacts/:name -> file download (application/octet-stream)
// GET /api/runs/:runId/artifacts/:name -> file download (application/octet-stream);
// 410 once a sensitive artifact was downloaded or any artifact expired (retention, spec §3.5)
// ---- auth --------------------------------------------------------------------
@@ -101,6 +102,8 @@ export type ServerEvent =
exitCode: number;
durationMs: number;
artifacts: string[];
/** Subset of `artifacts` flagged sensitive (e.g. private keys): one download, then deleted. */
sensitiveArtifacts?: string[];
captured?: { name: string; value: string };
}
| {