Repository navigation
Remove Stack Auth from the old app: no sign-in, no handler, no dependency - #212
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (16)
💤 Files with no reviewable changes (11)
Limit details: You’ve used the included review currently available. Your 112 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. 📜 Recent review details⏰ Context from checks skipped due to timeout. (3)
📝 WalkthroughWalkthroughThe app removes Stack Auth configuration, runtime integration, user helpers, authentication navigation controls, and handler routes. The robots test and legacy URL catalog are updated for the removed routes. ChangesStack Auth removal
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~15 minutes Change: Other Merge Risk: ⚪ Minimal · up to The old app no longer offers sign-in, as intended. No actionable issue remains in the supplied evidence; the PR is mergeable after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The inspected changes remove sign-in functionality and user-aware navigation, not access checks protecting surviving pages. The operational cron endpoint retains independent authorization. No introduced security issue was established, but deployed credential and identity-provider retirement remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
✨ Simplify code
Usage-based review receipt
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing. Comment |
Preview · Change Stack · Checks · Files: +21 −485 in 17 files
What
Step 9 of the admin audit: the old Next app drops Stack Auth (Neon Auth). With the admin and profiles gone (#207), nothing needed a signed-in user.
StackProviderandStackThemefromapp/src/app/layout.tsx.ThemeProviderand the toaster stay.getUser()calls:page-layout.tsxno longer reads a user, andcomponents/auth-nav.tsxis deletedapp/src/app/handler/**(Stack's sign-in pages)lib/stack.tsx,lib/auth/config.ts(andmainConfig.database.neonAuth),lib/client-user.tsandlib/users.ts@stackframe/stackdependency (bun remove;bun.lockloses 277 lines)NEXT_PUBLIC_STACK_*/STACK_SECRET_SERVER_KEYlines inapp/example.env/handlerfromrobots.tsrobots.test.tschecks/api/cron. In the legacy-URL manifest,/handler/[...stack]now notes the old site answers 404.app/src/lib/cutover/redirect.tssends/handler/*to allthings.dev, where the Worker answers 410 (Answer sign-in, profile and admin paths with 410 Gone on the Worker #194).neon_auth.users_syncand the tables that reference it: dropping them would be a migration, and none is part of this.Env vars. This PR doesn't touch the Vercel env. Once it is deployed, nothing reads
NEXT_PUBLIC_STACK_PROJECT_ID,NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEYorSTACK_SECRET_SERVER_KEY, andbetter-env validateno longer requires them.Why
Erik: remove the old admin and its sign-in now. They're dead weight while we refactor.
Verify
On the Vercel preview: the public pages render as before, with no Sign In button, and
/handler/sign-inanswers 404.Summary by CodeRabbit