Spaces:
Sleeping
Sleeping
Commit History
20 days ago
-
fix(security): close auth takeover, harden RLS, repair adoption and NGO flows
Auth - Never sign in or refresh on a shared Supabase client; use a throwaway client per call so the server cannot hold another user's session - reset-password now requires the recovery token and changes only that user's password; logout revokes only the caller's session - Add POST /api/auth/refresh; frontend refreshes once on 401 Database - Migration 15: block users changing their own role, ban state or NGO approval; hide private profile columns from anon/authenticated; make counter RPCs service-role only - getProfile returns public columns only Adoption and NGO onboarding - Cross-user writes (plant status, adopter garden row) go through the service role and their errors are checked; approval cannot double-adopt - NGO applicants can reach onboarding and their status while still adopters; approved NGOs editing details stay approved Smaller fixes - Like, bookmark and comment counters cannot drift - Credentials bypass the HTML sanitiser - Care tips use a current Gemini mode…55ffa7e
-
fix: pin to Node 24 LTS — Vercel rejects Node 26
Shardul Chogale +2: Mukta Varak, Claude Opus 5The production deploy failed on Vercel: Found invalid or discontinued Node.js Version: "26.4.0". Please set "engines": { "node": "24.x" } in your `package.json` Vercel's build platform does not offer Node 26 at all, and names 24.x as the supported target. Since frontend/package.json declares the engine Vercel reads, 26.4.0 broke every frontend production deploy. GitHub Actions did not catch this: Vercel builds the frontend through its own GitHub integration rather than through ci.yml, so a green "Frontend — lint & build" on a Node 26 runner says nothing about whether Vercel can build the same tree. Changes: - engines.node "26.4.0" -> "24.x" in all three package.json files - .nvmrc 26.4.0 -> 24 - Dockerfiles node:26.4.0-slim -> node:24-slim Range form rather than an exact patch, which was raised in review: an exact pin rejects 24.5.1 and every later security patch. It is also the form Vercel asked for. Node 24 is LTS, so the Dockerfile comment is now accurate as well — it clai…f0601a1
-
chore: pin Node version to 26.4.0 across all services (fixes #198)
Mukta Varak0701703
-
fix: Add WebSocket polyfill for Supabase in Node 20
114d9ee -
security: resolve CodeQL scanning and Dependabot alerts
Mukta0170a0a13
-
feat(redis): implement distributed Redis rate limiting and multi-layer AI cache with offline fallbacks
Shardul Chogale0c56067
-
feat: enhance security with password validation, XSS middleware, role-based access restrictions, and updated environment configurations.
Shardul Chogale13c80ac
-
chore: re-initialize professional ESLint configuration for backend
Shardul Chogale8ce949c
-
## fix(map,plants): improve map rendering and adoption UI feedback
RishabhHatlunkar- Fix "AI Identify" navigation link in Navbar (pointed to wrong route) - Add PostGIS EWKB coordinate parsing to the map for proper marker rendering - Implement stable coordinate jitter to prevent markers from stacking perfectly - Enhance Plant Detail page with status-specific feedback (Pending/Adopted/Role-check) - Ensure "Apply to Adopt" button is only visible when applicable7c69d9c