Skip to content

fix(tasks): enforce authenticated task mutations [NSoC'26]#169

Open
saurabhhhcodes wants to merge 3 commits into
Shriii19:masterfrom
saurabhhhcodes:fix/task-mutation-auth-152
Open

fix(tasks): enforce authenticated task mutations [NSoC'26]#169
saurabhhhcodes wants to merge 3 commits into
Shriii19:masterfrom
saurabhhhcodes:fix/task-mutation-auth-152

Conversation

@saurabhhhcodes
Copy link
Copy Markdown

@saurabhhhcodes saurabhhhcodes commented Jun 3, 2026

Summary

  • remove duplicate unauthenticated task mutation route registrations
  • require authenticated users for task listing and task creation
  • persist owner_id on created tasks and scope task status/edit/delete mutations to the authenticated owner
  • preserve the existing project_id payload used by the Kanban frontend

Closes #152

Validation

  • node --check backend/controllers/tasks.controller.js
  • node --check backend/routes/tasks.routes.js
  • node --check backend/server.js
  • git diff --check

Notes

  • The backend package currently does not define a test script, so validation is syntax and diff hygiene focused.
  • Ownership is enforced using the existing owner_id convention already used for owned resources in this repo Supabase project routes.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

Someone is attempting to deploy a commit to the shreemp194-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

👋 Thank you for opening this pull request! I will review your changes and assist you soon.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

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

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment Jun 5, 2026 2:18pm

@Shriii19
Copy link
Copy Markdown
Owner

Shriii19 commented Jun 5, 2026

@saurabhhhcodes having the conflict pls fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security: Strengthen Authorization Validation for Task Mutation Operations

2 participants