Рет қаралды 8,564
This is your step-by-step guide to enabling and testing RLS (Row Level Security) in Supabase.
Day 1 - Supabase Studio Updates: AI Assistant, User Impersonation, and more: supabase.com/blog/studio-intr...
Row Level Security (RLS) is a super powerful way to implement authorization directly in your PostgreSQL database! In this video, Jon explains what RLS is and how to use AI to write policies from a simple text input! 🤖
In this new Supabase tutorial, we’re talking about security features in Supabase, specifically Row Level Security (RLS) in Postgres and Supabase. Watch as Jon demonstrates how it empowers you to implement robust authorisation directly within your database. Forget about complex back-end logic for data filtering-RLS does it seamlessly for you!
What you'll learn:
✅ Understanding RLS: Learn the basics of RLS and why you need it. It’s a powerful feature in Postgres that allows you to enforce data access controls directly at the database level.
✅ Setting Up RLS in Supabase: Learn how to activate RLS from the Supabase dashboard or via SQL commands to enhance your app's security.
✅ Crafting RLS Policies with AI: Utilise Supabase AI to generate and refine security policies, making the setup process less intimidating and more accessible.
✅ Testing RLS Policies: See how to test these policies for specific user scenarios to ensure they perform as expected.
✅ Practical Demonstration: Follow a step-by-step guide to creating and applying RLS policies to a blog post table, ensuring that only published posts are visible to users.
After watching this video, you'll be able to:
✅ Configure RLS on your tables confidently with Supabase.
✅ Write and apply selective access policies that enhance the security and usability of your applications.
✅ Utilise AI tools to simplify the creation and management of security policies.
Don’t let the backend logistics scare you away; with Supabase’s RLS and AI tools, setting up database security is straightforward and really quick. If you want to handle authorisation in Supabase - watch this!
More Launch Week 🆇: supabase.com/launch-week?utm_...
CHAPTERS:
0:00 What you'll learn!
0:16 What is RLS (Row Level Security)
0:28 Example of RLS policy on site
0:58 Enabling RLS in Supabase
1:48 Empty array troubleshooting
2:04 Enabling RLS in Supabase and troubleshooting tips
4:44 Authenticating users
💻 Videos to watch next:
▶ Watch ALL Postgres/Supabase videos: • Learn Postgres
▶ Implement Authorization using Row Level Security with Supabase
: • Implement Authorizatio...
▶ Supabase is now GA: • Supabase is now GA
👇 Learn more about Supabase 👇
🕸 Website: supabase.com/
🏁 Get started: app.supabase.com/
📄 Docs: supabase.com/docs
🔔 Subscribe for more tutorials and feature updates from Supabase: / @supabase
📱 Connect with Us:
🐙 Github: www.github.com/supabase
💬 Discord: www.discord.supabase.com/
🐦 Twitter: / supabase
▶ Instagram (follow for memes): / supabasecom
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools