Skip to content

feat: gate hosted access by email domain instead of trial limits#863

Open
nicoalbanese wants to merge 3 commits intomainfrom
na/a741484a
Open

feat: gate hosted access by email domain instead of trial limits#863
nicoalbanese wants to merge 3 commits intomainfrom
na/a741484a

Conversation

@nicoalbanese
Copy link
Copy Markdown
Collaborator

Summary

  • Replaces complex "trial" restrictions with strict email domain gating for hosted deployments.
  • Users without an approved email domain (configurable, defaults to @vercel.com) are redirected to the /deploy-your-own page.
  • Secures backend APIs to return 403 Access Denied for unauthorized domains instead of enforcing trial limits.
  • Removes previous trial limitations (message limits, session limits, code editor restrictions, model hiding).

Redirect non-allowed users away from the managed deployment so hosted GitHub connector flows are only available to supported domains.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

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

Project Deployment Actions Updated (UTC)
open-agents Ready Ready Preview May 3, 2026 10:27am

Copy link
Copy Markdown

@vercel vercel Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

In the /api/models route, getServerSession() throws a NEXT_REDIRECT error for non-allowed managed template users, which is caught by the surrounding try/catch block, producing a 500 error instead of the intended access-denied response.

Fix on Vercel

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