Skip to content

Raise next/MCP SDK pins and treat external pins as caret floors - #30

Merged
s3rot0n1n merged 3 commits into
mainfrom
fix/external-pin-floors
Nov 9, 2026
Merged

s3rot0n1n merged 3 commits into
mainfrom
fix/external-pin-floors

Conversation

@s3rot0n1n

@s3rot0n1n s3rot0n1n commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #14.

Why

doctor required external deps to match the preset pin exactly, so products that took security fixes (e.g. next past 16.3.6, codelitdev/sendlit#21, codelitdev/medialit#193) failed conformance until a new CLI release.

What

Trade-off

Conformance no longer proves products run the exact externals the template was tested with; minor releases are trusted. When an advisory hits a pinned package, raise the template pin to exclude the vulnerable version.

Verification

bun run verify passes after merging main. template:smoke not run.

🤖 Generated with Claude Code

Rajat added 2 commits October 15, 2026 07:59
- Treat external pins as caret floors in doctor
- Raise Next.js and MCP SDK security floors
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T10:09:39.145325Z 2bc8c62 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2bc8c62881

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/architecture.md
Comment on lines +564 to +565
- **Hosted sign-in on the API host.** The API mounts the hosted pages from `@codelitdev/oauth-server-kit` (`createOAuthPagesRouter`). The web app's `/login` sends the browser to `<api>/login?redirect=<web URL>`. After sign-in the hosted page redirects back only to origins in `allowedRedirectOrigins`, which is the product's configured web origin.
- **Session cookie shared across subdomains.** Better Auth sets a product-specific `advanced.cookiePrefix` (`sendlit`, `frontlit`, `medialit`) and `crossSubDomainCookies` with `domain` taken from `AUTH_COOKIE_DOMAIN`, the shared parent domain. The cookie is HttpOnly, Secure, and SameSite=Lax. Without a cookie domain the cookie stays host-only on the API host and the web app never sees the session, so every deployment with separate API and web hostnames sets it. Local development leaves it unset because `localhost` cookies are not port-scoped.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align the browser-auth description with the shipped flow

Readers using the reference product or template would be directed to a flow the apps do not implement: apps/web/app/login/page.tsx renders an OTP form that calls /api/auth/* through the same-origin BFF, rather than redirecting to API-host /login, and referenceAuthOptions does not set the advanced cookie settings described here. This section therefore misstates the shipped auth behavior and may lead adopters to configure a cross-subdomain session flow the template does not provide; align the docs with the code or add the corresponding product-auth configuration.

AGENTS.md reference: AGENTS.md:L4-L4

Useful? React with 👍 / 👎.

# Conflicts:
#	bun.lock
#	packages/mcp-server-kit/package.json
#	packages/platform-cli/src/preset.json
#	templates/saas-product/apps/web/package.json
@s3rot0n1n
s3rot0n1n merged commit 03f8693 into main Nov 9, 2026
1 check passed
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.

platform-cli doctor pins vulnerable next 16.3.6 and MCP SDK 1.30.0, blocking security fixes downstream

1 participant