feat(web): handle one-shot sensitive artifact downloads (#4)

Track sensitive download state per run in the session reducer. Fetch each artifact once into a blob so expired or consumed downloads show HTTP 410 without a separate preflight request. Verify the SSH-key notebook, capture substitution, failure sections and public-key upload provenance through App. Document demo and real terminal workflows.
This commit is contained in:
Florian Schmidt
2026-11-16 00:21:24 +01:00
parent a6429e0527
commit b224fff7f3
7 changed files with 385 additions and 71 deletions
+4
View File
@@ -112,6 +112,10 @@ export const mockApi: Api = {
exitCode: failed ? 1 : 0,
durationMs: 850,
artifacts: rendered.artifacts,
sensitiveArtifacts:
request.stepId === "keygen"
? rendered.artifacts.filter((name) => !name.endsWith(".pub"))
: [],
captured: block.step.attrs.capture
? { name: block.step.attrs.capture, value: "demo-value" }
: undefined,