<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>PeekLok posts</title>
<link>https://peeklok.com/posts/</link>
<description>Short security tips for apps built with Lovable, Bolt, Replit, v0 and Base44.</description>
<language>en-au</language>
<atom:link href="https://peeklok.com/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 31 Oct 2026 20:00:00 GMT</lastBuildDate>
<item>
<title>Your tables have RLS. Do your views?</title>
<link>https://peeklok.com/posts/2026-11-01-your-tables-have-rls-do-your-views/</link>
<guid isPermaLink="true">https://peeklok.com/posts/2026-11-01-your-tables-have-rls-do-your-views/</guid>
<pubDate>Sat, 31 Oct 2026 20:00:00 GMT</pubDate>
<description>&lt;p&gt;If your Lovable, Bolt or v0 app shows a dashboard, leaderboard or summary page, your builder may have made a Supabase view: a saved query that acts like a table.&lt;/p&gt;
&lt;p&gt;Supabase's docs say views bypass RLS by default, because they're usually created by the postgres user. So a view over a protected table can return every row your policies were meant to hide.&lt;/p&gt;
&lt;p&gt;Quick check: in your Supabase dashboard, open the Security Advisor. A &amp;quot;Security Definer View&amp;quot; finding names a view that skips RLS.&lt;/p&gt;
&lt;p&gt;If you find one, ask your builder to set &lt;code&gt;security_invoker = true&lt;/code&gt; on it (Postgres 15 and above), so it follows the RLS of the tables underneath. On older Postgres, revoke access from anon and authenticated, or move the view out of an exposed schema.&lt;/p&gt;
&lt;p&gt;Want a free check of your live app? &lt;a href=&quot;/#scan&quot;&gt;https://peeklok.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris, PeekLok&lt;/p&gt;</description>
</item>
<item>
<title>Does your app decide who's an admin from user_metadata?</title>
<link>https://peeklok.com/posts/2026-10-31-does-your-app-decide-who-s-an-admin-from-user-metadata/</link>
<guid isPermaLink="true">https://peeklok.com/posts/2026-10-31-does-your-app-decide-who-s-an-admin-from-user-metadata/</guid>
<pubDate>Fri, 30 Oct 2026 20:00:00 GMT</pubDate>
<description>&lt;p&gt;If your Lovable, Bolt or v0 app uses Supabase Auth, each user has a user_metadata field. It's handy for names and avatars, but Supabase's docs warn that users can change it themselves, with no validation.&lt;/p&gt;
&lt;p&gt;So a security rule that checks user_metadata for something like is_admin can be beaten: a signed-in user can call &lt;code&gt;updateUser&lt;/code&gt; and set is_admin to true.&lt;/p&gt;
&lt;p&gt;Quick check: in your Supabase dashboard, open the Security Advisor. A finding called &amp;quot;Security policy relies on user-editable data&amp;quot; means a policy uses user_metadata. You can also search your policies for &lt;code&gt;user_metadata&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you find one, ask your builder to keep roles somewhere users can't edit, such as a separate roles table protected by RLS.&lt;/p&gt;
&lt;p&gt;Want a free check of your live app? &lt;a href=&quot;/#scan&quot;&gt;https://peeklok.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris, PeekLok&lt;/p&gt;</description>
</item>
<item>
<title>Is your OpenAI or Stripe key in a VITE_ variable?</title>
<link>https://peeklok.com/posts/2026-10-30-is-your-openai-or-stripe-key-in-a-vite-variable/</link>
<guid isPermaLink="true">https://peeklok.com/posts/2026-10-30-is-your-openai-or-stripe-key-in-a-vite-variable/</guid>
<pubDate>Thu, 29 Oct 2026 20:00:00 GMT</pubDate>
<description>&lt;p&gt;Many Lovable and Bolt apps are built with Vite. Vite has one rule worth knowing: any environment variable whose name starts with VITE_ is bundled into the app's browser code when it's built.&lt;/p&gt;
&lt;p&gt;Vite's own docs say VITE_ variables should not hold sensitive information such as API keys. A key stored as VITE_OPENAI_KEY or VITE_STRIPE_SECRET can be read by anyone who opens your site and looks at its code.&lt;/p&gt;
&lt;p&gt;Quick check: open your project's .env file or settings and read each name starting with VITE_. A public value like your site URL is fine. A secret API key is not.&lt;/p&gt;
&lt;p&gt;If you find one, ask your builder to move that call into a backend function (for example a Supabase Edge Function), store the key there as a secret, and replace the old key.&lt;/p&gt;
&lt;p&gt;Want a free check of your live app for exposed keys? &lt;a href=&quot;/#scan&quot;&gt;https://peeklok.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris, PeekLok&lt;/p&gt;</description>
</item>
<item>
<title>Are your users' uploads open to anyone with the link?</title>
<link>https://peeklok.com/posts/2026-10-29-are-your-users-uploads-open-to-anyone-with-the-link/</link>
<guid isPermaLink="true">https://peeklok.com/posts/2026-10-29-are-your-users-uploads-open-to-anyone-with-the-link/</guid>
<pubDate>Wed, 28 Oct 2026 20:00:00 GMT</pubDate>
<description>&lt;p&gt;If your Lovable, Bolt or v0 app lets people upload files, they probably land in a Supabase Storage bucket. Buckets are private by default, but they can be switched to public.&lt;/p&gt;
&lt;p&gt;Supabase's docs say a public bucket bypasses access controls for retrieving files: anyone who has a file's URL can open it. That suits profile pictures and blog images. It doesn't suit invoices, ID photos or anything private.&lt;/p&gt;
&lt;p&gt;Quick check: in your Supabase dashboard, open Storage and look at each bucket. If one holding private files is marked public, ask your builder to make it private, add RLS policies on storage.objects, and serve files with signed URLs.&lt;/p&gt;
&lt;p&gt;Want us to check your live app for exposed files? The first check is free at &lt;a href=&quot;/#scan&quot;&gt;https://peeklok.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris, PeekLok&lt;/p&gt;</description>
</item>
<item>
<title>Is your app's master key sitting in the browser?</title>
<link>https://peeklok.com/posts/2026-10-28-is-your-app-s-master-key-sitting-in-the-browser/</link>
<guid isPermaLink="true">https://peeklok.com/posts/2026-10-28-is-your-app-s-master-key-sitting-in-the-browser/</guid>
<pubDate>Tue, 27 Oct 2026 20:00:00 GMT</pubDate>
<description>&lt;p&gt;Supabase gives your app two kinds of key. The publishable key (or the older anon key) is meant for the browser. The secret key (or the older service_role key) is not.&lt;/p&gt;
&lt;p&gt;Supabase's docs are blunt: a secret key bypasses every row-level security policy you have, and a leaked one exposes all of your project's data.&lt;/p&gt;
&lt;p&gt;Quick check: open your live Lovable, Bolt or v0 app, view the page source and its JavaScript files, and search for &lt;code&gt;sb_secret_&lt;/code&gt; and &lt;code&gt;service_role&lt;/code&gt;. If either turns up, ask your builder to move that code to a server or Edge Function, then follow Supabase's steps to rotate the leaked key.&lt;/p&gt;
&lt;p&gt;Want us to look for leaked keys on your live app? The first check is free at &lt;a href=&quot;/#scan&quot;&gt;https://peeklok.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris, PeekLok&lt;/p&gt;</description>
</item>
<item>
<title>Row-level security is on. Is it actually doing anything?</title>
<link>https://peeklok.com/posts/2026-10-27-row-level-security-is-on-is-it-actually-doing-anything/</link>
<guid isPermaLink="true">https://peeklok.com/posts/2026-10-27-row-level-security-is-on-is-it-actually-doing-anything/</guid>
<pubDate>Mon, 26 Oct 2026 20:00:00 GMT</pubDate>
<description>&lt;p&gt;If your Lovable, Bolt or v0 app uses Supabase, turning on row-level security is step one. Step two is the policy, and that's where it can quietly go wrong.&lt;/p&gt;
&lt;p&gt;Supabase's docs warn that a policy reading &lt;code&gt;to anon using (true)&lt;/code&gt; lets every signed-out visitor read every row. Builders sometimes add one just to make an error go away.&lt;/p&gt;
&lt;p&gt;Quick check: open the Policies page in your Supabase dashboard and look for any policy whose rule is just &lt;code&gt;true&lt;/code&gt;. Keep it only on data that's meant to be public. For customer data, ask your builder for a rule like &lt;code&gt;(select auth.uid()) = user_id&lt;/code&gt;, so each person sees only their own rows.&lt;/p&gt;
&lt;p&gt;Want us to test it on your live app? The first check is free at &lt;a href=&quot;/#scan&quot;&gt;https://peeklok.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Chris, PeekLok&lt;/p&gt;</description>
</item>
</channel>
</rss>
