Skip to content

[codex] fix session creation BotID protection#873

Merged
nicoalbanese merged 1 commit intomainfrom
na/fix-session-botid-protection
May 6, 2026
Merged

[codex] fix session creation BotID protection#873
nicoalbanese merged 1 commit intomainfrom
na/fix-session-botid-protection

Conversation

@nicoalbanese
Copy link
Copy Markdown
Collaborator

Summary

  • Add POST /api/sessions to the BotID client protected route list.
  • Export the BotID protected route config and add a regression test for session creation protection.

Root cause

The server enforced BotID on POST /api/sessions, but the browser BotID initialization did not include that route. New chat creation could therefore reach the server without BotID verification and be rejected with 403 Access denied before trial or rate-limit checks ran.

Validation

  • bun test apps/web/instrumentation-client.test.ts
  • bun run ci

@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open-agents Ready Ready Preview May 6, 2026 8:39am

@nicoalbanese nicoalbanese marked this pull request as ready for review May 6, 2026 08:40
@nicoalbanese nicoalbanese merged commit 01eafbe into main May 6, 2026
5 checks passed
@nicoalbanese nicoalbanese deleted the na/fix-session-botid-protection branch May 6, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant