File size: 908 Bytes
92698bc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | -- Enable RLS on all tables to fix Supabase security advisories
-- rls_disabled_in_public + sensitive_columns_exposed
--
-- Run this in Supabase Dashboard > SQL Editor:
-- https://supabase.com/dashboard/project/wlkktggaewerugaoygcp/sql/new
--
-- Once RLS is enabled with no policies, anon/authenticated roles get zero access.
-- Your backend (psycopg2 via table owner) is unaffected.
ALTER TABLE users ENABLE ROW LEVEL SECURITY;
ALTER TABLE conversations ENABLE ROW LEVEL SECURITY;
ALTER TABLE messages ENABLE ROW LEVEL SECURITY;
ALTER TABLE user_profiles ENABLE ROW LEVEL SECURITY;
ALTER TABLE memories ENABLE ROW LEVEL SECURITY;
ALTER TABLE guest_ip_log ENABLE ROW LEVEL SECURITY;
ALTER TABLE shared_conversations ENABLE ROW LEVEL SECURITY;
ALTER TABLE payment_history ENABLE ROW LEVEL SECURITY;
ALTER TABLE admin_audit_log ENABLE ROW LEVEL SECURITY;
ALTER TABLE oauth_accounts ENABLE ROW LEVEL SECURITY;
|