fix(api): delete dev endpoints + CI guard (Brief 3 of fix-auth-bypass) #7
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#7
Loading…
Reference in a new issue
No description provided.
Delete branch "brief/fix-auth-bypass/3-delete-dev-endpoints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Convoy
fix-auth-bypass/ Brief 3 of 5. Resolves AGENTS.md gotcha #5 (pages/api/setup-database.jswas a public endpoint that triggers DDL). See.convoys/fix-auth-bypass.mdfor the full convoy plan. This brief has no dependency on Brief 1 (PR #6) — they can ship in either order./api/simple,/api/test-auth,/api/test-db,/api/setup-database).setup-databaseis the highest-impact — public POST that ran schema bootstrap + seeded the defaultadmin@tcgvault.com/admin123credentials.forbidden-endpointsjob to.github/workflows/ci.ymlthat blocks the build if any of those four paths reappear OR if a newpages/api/test-*.jsfile shows up. Cheap insurance against a future agent re-introducing one from an outdated tutorial.GET /api/test-dbline from the README's API list. The rest of the API list is intentionally left for the doc-writer pass at the end of the convoy.Files changed
pages/api/simple.js,pages/api/test-auth.js,pages/api/test-db.js,pages/api/setup-database.js.github/workflows/ci.yml(newforbidden-endpointsjob afterschema-map-fresh)README.md(one-line removal under "Health Check")Test plan
npm run buildexits 0 (no broken imports — zero source callers acrosspages/,components/,lib/)Pre-merge requirements
Out of scope (intentionally — see convoy plan)
pages/api/cards/import-*.jsdeletion/gating → `add-rate-limiting` convoy (admin-imports have rate-limit concerns)Audit cohort
Reviewer dispatch follows post-push. No UI surface → design-system + a11y + browser-smoke auditors do not run for this PR.
🤖 Pipeline metadata: convoy=fix-auth-bypass, brief=3, depends_on=[], audit=reviewer-only
Made with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.