lovable-cloud-edge-functions
CommunityHarden Supabase edge auth in Lovable
Software Engineering#authentication#supabase#edge functions#security hardening#config.toml#jwt verification#lovable cloud
Authorjcdendrite
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents misconfigured Supabase Edge Functions in Lovable Cloud that could accidentally expose browser-invoked endpoints or weaken defense-in-depth around service-role and webhook access control.
Core Features & Use Cases
- Auth tier guidance for Edge Functions: Enforces a clear mapping between caller type (browser, service role/cron, external webhook, or intentionally public) and the required
verify_jwtbehavior. config.tomlsecurity guardrails: Provides strict rules so every edge function has an explicitfunctions.<name>section and avoids risky bulk changes.- In-code authentication requirements: Ensures Tier 1 relies on cryptographic user JWT validation (since gateway verification cannot apply) and Tier 2 includes both gateway verification and role-claim validation.
- Webhook signature verification correctness: Reduces HMAC verification failures by requiring raw-body consumption before any other body read.
- Deployment awareness for Lovable: Clarifies that Lovable does not auto-deploy external changes, and instructs how to request deployment for new/modified functions and
verify_jwtupdates.
Quick Start
Update your Supabase supabase/config.toml and edge function code to match the tier-based verify_jwt and in-code auth requirements described in this skill, then explicitly ask Lovable to deploy the affected edge functions.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lovable-cloud-edge-functions Download link: https://github.com/jcdendrite/claude-config/archive/main.zip#lovable-cloud-edge-functions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.