lovable-cloud-edge-functions

Community

Harden Supabase edge auth in Lovable

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_jwt behavior.
  • config.toml security guardrails: Provides strict rules so every edge function has an explicit functions.<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_jwt updates.

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.