From 1dbea28b439cf653291ba68cc2f8877b268ae74e Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 16 Nov 2026 00:11:40 +0100 Subject: [PATCH] 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. --- packages/core/src/protocol.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/protocol.ts b/packages/core/src/protocol.ts index a1be3ff..c32a806 100644 --- a/packages/core/src/protocol.ts +++ b/packages/core/src/protocol.ts @@ -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 }; } | {