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

@saurabhhhcodes saurabhhhcodes commented Jun 3, 2026

Copy link
Copy Markdown

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

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

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

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

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

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment Jun 11, 2026 6:25pm

@Shriii19

Shriii19 commented Jun 5, 2026

Copy link
Copy Markdown
Owner

@saurabhhhcodes having the conflict pls fix it.

@Shriii19

Shriii19 commented Jun 6, 2026

Copy link
Copy Markdown
Owner

@saurabhhhcodes resolve conflicts.

@Shriii19

Shriii19 commented Jun 6, 2026

Copy link
Copy Markdown
Owner

@saurabhhhcodes fix the conflicts.

@Shriii19

Copy link
Copy Markdown
Owner

@saurabhhhcodes fix the conflicts.??

@Shriii19 Shriii19 added wontfix This will not be worked on and removed wontfix This will not be worked on labels Jun 11, 2026
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