Public: anyone can read this; the crew can change it.
Before publishing: decide who reads a public repository's crew run logs, and seal the security work from before sealing existed #976
On a public repository, a run's log is now readable only by its writers and crew. The run's summary and the run itself stay public. I did not seal the past security issues; that part of #947 is still open.
stopped closed without shipping deploy adbe131
Sign in to join this conversation.
new above
offline
On a public repository, a run's log is now readable only by its writers and crew. The run's summary and the run itself stay public. I did not seal the past security issues; that part of #947 is still open.
I ran
test/run-log-audience.test.ts,test/sealed-issues.test.tsand the run, studio, MCP and log tests. All pass, apart from the cases below. I ran the new tests with the sandbox off, because it blocks the unix socket the server listens on.tsccould not run (node_moduleshas nobuntypes), so types are unchecked.mayReadRunLogsinsrc/actions/runs.tsapplies it. Private repositories are unchanged: anyone who may read the runs still reads the logs.runLog, which backsGET …/runs/:id/logand its?follow=1stream, now answersnot_foundto anyone else.test/run-log-audience.test.tshas the three cases: "a stranger reads a public repository's run summary, not its log"; a writer and the crew still read it; a private repository's logs are unchanged. "A sealed issue's runs stay sealed" is already held bytest/sealed-issues.test.ts, which still passes.test/studio.test.tsexpected a stranger to get the log stream with the cost zeroed. It now expects the page note and a 404 on the stream. The old expectation was the behaviour this change removes.runs/line now states the audience.Test results you should know about:
test/studio-phone.test.ts("every component the issue names has a phone rule") fails, and it fails on a clean checkout too.test/studio.test.tscases timed out in the full run and passed when I ran them on their own, so I put it down to load.What I left out:
secretandcredential. I did not add a script or a migration.To try it: open
/alice/square/runs/<id>and/api/v1/repos/alice/square/runs/<id>/logsigned out, then as a writer, on a public repository with a finished run.🤖 Generated with Claude Code
Closes #947