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
+3
View File
@@ -249,6 +249,9 @@ export function App({ api }: { api: Api }) {
host={hosts.find((h) => h.name === rendered.host)}
run={runFor(block.step.attrs.id)}
artifact={api.artifact}
onArtifactState={(runId, name, state) =>
dispatch({ type: "artifact.download", runId, name, state })
}
connected={
connected &&
!dirty &&