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:
@@ -70,7 +70,8 @@ export interface StartRunResponse {
|
|||||||
runId: string;
|
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 --------------------------------------------------------------------
|
// ---- auth --------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -101,6 +102,8 @@ export type ServerEvent =
|
|||||||
exitCode: number;
|
exitCode: number;
|
||||||
durationMs: number;
|
durationMs: number;
|
||||||
artifacts: string[];
|
artifacts: string[];
|
||||||
|
/** Subset of `artifacts` flagged sensitive (e.g. private keys): one download, then deleted. */
|
||||||
|
sensitiveArtifacts?: string[];
|
||||||
captured?: { name: string; value: string };
|
captured?: { name: string; value: string };
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
|
|||||||
Reference in New Issue
Block a user