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:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user