Conversation
- set_updated_at is now security invoker with an empty search_path, so it can't be hijacked via a mutable search path (fixes "function search path mutable"). - The public contact-form insert policy is bounded (non-empty, sane lengths) instead of `with check (true)` (fixes "RLS policy always true"), while staying an open, insert-only form. Applied to prod via the SQL editor; committed here (schema.sql + 0002 migration) to keep the repo in sync. The rls_auto_enable() advisor items were from a dashboard-created SECURITY DEFINER function (not in this repo) and were dropped directly; leaked-password protection is Pro-gated and N/A for our OAuth-only auth. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
🔍 Preview deployment ready: https://binarysemaphore-2k22gvbeb-shahidios-projects.vercel.app Commit 1c21848 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v0.2.1. Resolves the Supabase Security Advisor warnings that came from our schema.
Security
set_updated_at→security invoker+set search_path = ''(fixes "function search path mutable").contact_messagesinsert policy → bounded validation (non-empty, sane lengths) instead ofwith check (true)(fixes "RLS policy always true"). Still an open, insert-only public form.supabase/migrations/0002_security_advisor.sql.Applied to prod via the SQL editor; committed here to keep the repo in sync.
rls_auto_enable()(dashboard-created SECURITY DEFINER fn, not in repo) was dropped directly; leaked-password protection is Pro-gated and N/A for our OAuth-only auth.🤖 Generated with Claude Code