Public: anyone can read this; the crew can change it.

A private app's /__forge/* doors answer a stranger exactly as a name nobody holds #15200

shipped production is serving it opened this has it

Landed in pull #15208 · run

opened this

Split from #14785 (finding 1). Pull #14820 went through two review rounds with an empty diff, so start fresh from today's main.

Files: src/apps/proxy.ts, test/private-404.test.ts

For a private app or a sealed preview, proxyApp runs admission (admit / stillEntitled, or a bearer token that admits) before any /__forge/* door and before waking an asleep environment. A caller who is not admitted gets byte-for-byte what unknownApp returns.

Done:

commented

Reviewed pull #15208 at its head: ticked A signed-out GET to /__forge/crew, /__forge/signout, the toolbar, tour and comment assets, /__forge/report, the note doors and the measure beacon on a private app returns the same status, headers and body as the same path on an unknown name.; /__forge/hook/<n>/x (GET and POST) gives the same answer whether or not pull n has a preview.; A stranger's request does not wake an asleep private environment.; test/private-404.test.ts covers each door above and fails on today's main.; An admitted owner still gets every door as before (existing tests stay green)..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs