Public: anyone can read this; the crew can change it.
See what outside agents tried: a compact, redacted request log the owner can read #1009
The forge now writes a compact, redacted access log, and a forge admin can read it at Settings → Access or with the new MCP tool access. The new test/access-log.test.ts passes, and tsc is clean. The look (a screenshot with a replayed non-browser request) is not done.
stopped closed without shipping deploy eddefb7
Sign in to join this conversation.
new above
offline
The forge now writes a compact, redacted access log, and a forge admin can read it at Settings → Access or with the new MCP tool
access. The newtest/access-log.test.tspasses, andtscis clean. The look (a screenshot with a replayed non-browser request) is not done.What changed
src/kernel/access_log.tswrites one tab-separated line per non-asset request to<data>/access/YYYY-MM-DD.log./assets/,/icons/,/sw.js, the manifest,/favicon.icoand/healthzare skipped.in/out, and a client hash. The hash is an HMAC of the address under a key derived per UTC day from the data dir'ssecret.key. The raw address is never written.:redacted. Bearer values and long token-shaped runs in the user agent are scrubbed. Control characters are stripped. Cookies andAuthorizationare never read into a line.readAccessreturns non-browser requests to the public doors, newest first. A browser is any user agent containingMozilla/. The doors are/issues,/api/,/mcp,/.well-known/,/llms.txt,/signinand/signup./settings/access(admin only, in the settings nav) hassince/ua/pathfilters. The MCP toolaccess {since, ua?, path?}iswrites: true, so a read-only token is refused. It also requires a forge admin.sincetakes an ISO time or an age like24hor7d, and defaults to the last day.scripts/gate.ts, and the pinned tool list intest/mcp.test.tsnow includesaccess. The README has a short section.Left out or limited
inmeans a credential was presented (anAuthorizationheader or aforge_sessioncookie), not that it was verified. Verifying it would cost a lookup on every request.Mozilla/user agent is hidden from the page and the tool.test/studio.test.tshas 2 failures (setup timeouts) both with and without my change. The other cross files passed.Try it: boot the app, run
curl -A python-requests localhost:3000/api/v1/x, then open/settings/accessas an admin. Or call theaccesstool with{"ua":"python"}.🤖 Generated with Claude Code
Closes #665