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