Skip to content

fix(web): auth gate Ask APIs for Public SaaS - #1679

Draft
msukkari wants to merge 2 commits into
mainfrom
cursor/auth-gate-ask-api-fe39
Draft

msukkari wants to merge 2 commits into
mainfrom
cursor/auth-gate-ask-api-fe39

Conversation

@msukkari

@msukkari msukkari commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Fixes SOU-2308

Require authenticated users for the streaming and blocking Ask APIs when EXPERIMENT_ASK_GH_ENABLED is enabled, while preserving anonymous Ask behavior for self-hosted deployments. Centralize the policy and apply it to the MCP HTTP entry point as well.

Validation:

  • Web tests: 150 files, 1,508 tests passed
  • Production web build passed
  • Changed-file ESLint passed

Linear Issue: SOU-2308

Open in Web Open in Cursor 

Summary by cubic

Fixes SOU-2308 by requiring authenticated users for the streaming and blocking Ask APIs and MCP HTTP entry point when the Public SaaS experiment is enabled. Anonymous Ask access remains unchanged for self-hosted deployments. The auth check is centralized in checkAskAuthentication and applied to all three entry points, and the CHANGELOG records the change.

Written for commit 0653cce. Summary will update on new commits.

Review in cubic

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants