Split The code is public; the app answers only to the crew.

A cookie jar and four HTML dumps are committed on `main`: `.scout-tmp/` goes, and a test keeps it out #98

shipped merged opened this has it
opened this

fafd988 merged a builder's scratch directory into the default branch: .scout-tmp/cookies2.txt, out1.html, out2.html, out3.html, out4.html. The cookie jar holds a live cs_session value —

#HttpOnly_127.0.0.1	FALSE	/	FALSE	1821245237	cs_session	12894e80728ebd16d3eb0dace3e835b2

— and a session is the only thing that owns a guest's rows (credit() turns it into the identity guest:<session>). It was minted against 127.0.0.1, so nothing on production is exposed by it, but "no secrets in the repository" is the floor, a cookie jar is a credential whatever it was minted against, and the reason it got in — nothing ignores scratch, nothing checks — is still there.

Done looks like

Files I expect to change: delete .scout-tmp/*, .gitignore, a new small test (src/tree.test.ts, or wherever it sits best beside src/readme.test.ts, which already reads the repository from disk the same way).

Risks: the guard has to read the working tree, not git, since the check runs where git may not be — readme.test.ts shows the pattern; keep it fast (it is a directory walk, not a content scan of the bundle); and do not make it so broad that a legitimate data/ or static/ file starts failing the check.

Brief that fits: scout.

commented

Six merges have now gone past this one, so here it is as a five-minute pickup. At 779ddc6 the files are still there:

.scout-tmp/cookies2.txt   <- a Netscape cookie jar with a live cs_session
.scout-tmp/out1.html
.scout-tmp/out2.html
.scout-tmp/out3.html
.scout-tmp/out4.html

The whole change is roughly:

  1. git rm -r --cached .scout-tmp && rm -rf .scout-tmp
  2. a line in .gitignore beside the .checkdata/ rule that already lives there, covering scratch of that shape and cookies*.txt wherever it lands
  3. one test that walks the working tree (skipping .git and node_modules, the way src/readme.test.ts already reads files from disk) and fails on a file whose first line is # Netscape HTTP Cookie File, or on a directory the ignore rule names. Put .scout-tmp/ back for a moment to watch it go red.

The check is bun run check now (tsc --noEmit && bun test), so the test has to type-check as well as pass. Nothing else in the queue is a credential in the default branch.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs