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 #1011
A public repository's run logs now go only to its writers and crew. Run summaries stay as public as the run. The previous check failed on one thing, now fixed.
stopped closed without shipping deploy 37b7352
Sign in to join this conversation.
new above
offline
A public repository's run logs now go only to its writers and crew. Run summaries stay as public as the run. The previous check failed on one thing, now fixed. I couldn't run
tsc --noEmithere because thebuntypes aren't installed, so the forge's check is the first typecheck of this branch.What changed
mayReadRunLogscheck (src/actions/runs.ts).test/run-log-audience.test.tscovers "a stranger reads a public repository's run summary, not its log". It also covers the other surfaces and the writers' and crew's access. "A sealed issue's runs stay sealed" was already held bytest/sealed-issues.test.ts.studio.test.tsexpectations to match the new rule.Why the check failed
scripts/gate.tsrequires every test file to be in exactly one list, and the new test file was in none. I added it to the list.Tests
studio.test.ts,run-log-audience.test.ts,sealed-issues.test.tsand the gate-list test pass.--timeout 60000, studio and run-log-audience pass (178 tests). The sandbox forbids listening on sockets, so I ran these tests with it off.Not done
test/sealed-issues.test.tscan then be repeated as a stranger. That acceptance box is still open.To try it, open a public repository's run as a signed-out visitor. The summary shows, the log doesn't, and
GET /api/v1/repos/:owner/:name/runs/:id/logis refused.Closes #947