Skip to content

Release v0.2.1 — Supabase security advisor fixes#54

Merged
shahid-io merged 2 commits into
mainfrom
staging
Jul 1, 2026
Merged

Release v0.2.1 — Supabase security advisor fixes#54
shahid-io merged 2 commits into
mainfrom
staging

Conversation

@shahid-io

Copy link
Copy Markdown
Contributor

Release v0.2.1. Resolves the Supabase Security Advisor warnings that came from our schema.

Security

  • set_updated_atsecurity invoker + set search_path = '' (fixes "function search path mutable").
  • contact_messages insert policy → bounded validation (non-empty, sane lengths) instead of with check (true) (fixes "RLS policy always true"). Still an open, insert-only public form.
  • Added 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

shahid-io and others added 2 commits July 1, 2026 21:39
- 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>
@shahid-io
shahid-io merged commit 7a11069 into main Jul 1, 2026
2 checks passed
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

🔍 Preview deployment ready: https://binarysemaphore-2k22gvbeb-shahidios-projects.vercel.app

Commit 1c21848

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant