<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: glitchbound</title>
    <description>The latest articles on DEV Community by glitchbound (@glitchbound).</description>
    <link>https://dev.to/glitchbound</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4055417%2F57611ce1-a653-43cc-a2cc-478624eb75e9.png</url>
      <title>DEV Community: glitchbound</title>
      <link>https://dev.to/glitchbound</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/glitchbound"/>
    <language>en</language>
    <item>
      <title>Supabase Edge Functions and verify_jwt: a valid token does not tell you who is calling</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Wed, 02 Dec 2026 13:37:04 +0000</pubDate>
      <link>https://dev.to/glitchbound/supabase-edge-functions-and-verifyjwt-a-valid-token-does-not-tell-you-who-is-calling-4p3i</link>
      <guid>https://dev.to/glitchbound/supabase-edge-functions-and-verifyjwt-a-valid-token-does-not-tell-you-who-is-calling-4p3i</guid>
      <description>&lt;p&gt;Your app probably has a few small server functions. One calls an AI model, one sends email, one does something the browser must not do alone. AI tools write these quickly, and they work the first time.&lt;/p&gt;

&lt;p&gt;This is the third post of a short series. In the &lt;a href="https://dev.to/glitchbound/85-security-fixes-in-lovable-apps-what-was-actually-wrong-dcb"&gt;first&lt;/a&gt; I read 85 security fixes in Lovable apps, and the &lt;a href="https://dev.to/glitchbound/check-your-lovable-or-supabase-database-rules-with-6-read-only-queries-23mc"&gt;second&lt;/a&gt; has six queries for the database half. This one is about the server half.&lt;/p&gt;

&lt;p&gt;Of the 85 fixes, 8 were server functions that did their work without really knowing who called them, and 10 more trusted an id or a path that the caller sent. Earlier, in the code of six public apps, I had counted 16 functions across four apps that never look at who is calling. Here are the four ways it goes wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The platform check is switched off
&lt;/h2&gt;

&lt;p&gt;Supabase can check the caller's token before a function runs. A setting called &lt;code&gt;verify_jwt&lt;/code&gt; turns that check off. It is meant for things like payment webhooks, where the function checks the sender another way.&lt;/p&gt;

&lt;p&gt;In two of the six apps, four functions had the check off and did no check of their own. Anyone on the internet who knows the address can call them. The address is not a secret. It is in the code your app sends to every browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The check is on, and the public key passes it
&lt;/h2&gt;

&lt;p&gt;With the check on, the platform confirms that the request carries a valid key or token. It does not decide which user that is, or whether there is a user at all.&lt;/p&gt;

&lt;p&gt;The key that ships to every visitor's browser passes that check, whether it is the older anon key or the newer publishable key. Supabase's own guide says so: the check alone does not authenticate a caller that sends only a key (&lt;a href="https://supabase.com/docs/guides/functions/auth-headers" rel="noopener noreferrer"&gt;Authorization headers&lt;/a&gt;). So a visitor who never signed in still gets through the door, and what happens next depends only on your function.&lt;/p&gt;

&lt;p&gt;One of the 85 fixes was exactly this, written out by hand. A group of timer routes compared what the caller sent with the public key, and let in whoever matched. Every browser holds that key.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The function reads the token by hand
&lt;/h2&gt;

&lt;p&gt;One function took the caller's token apart itself, read the role out of it, and went on if the role said &lt;code&gt;service_role&lt;/code&gt;. Nothing checked the signature. A token is three pieces of text, and anyone can write one that says anything. Reading a token is not the same as verifying it.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The function believes what it is told
&lt;/h2&gt;

&lt;p&gt;Two of the 16 functions took the user's id from the request itself and then worked with the admin key, the one that skips every database rule. Whoever calls them can name any user and act as that user.&lt;/p&gt;

&lt;p&gt;Among the 85 fixes this was the larger group. Six functions took an id or a storage path from the request and reached a row or a file without asking whose it is, and four built a file path from what was sent. A check of the token does not help here, because the caller is honest about having a token and lies about everything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Newer Lovable apps: the same questions, another place
&lt;/h2&gt;

&lt;p&gt;Apps that Lovable builds today often have no Edge Functions at all. Their server code is written as server functions inside the app. A server function is an address like any other: the browser calls it, and so can anyone else. It is checked only if something in front of it checks the user, usually a small piece of code that every protected function names. A function that does not name it is open.&lt;/p&gt;

&lt;p&gt;One of the 85 fixes was of this kind: a lookup that told any caller whether an email is registered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it costs money
&lt;/h2&gt;

&lt;p&gt;At least nine of the 16 functions used a paid key for an AI or email service. A stranger who finds one can run it in a loop on your account. You find out from the invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to look for in your own functions
&lt;/h2&gt;

&lt;p&gt;Open each function and answer four questions.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Does it work out the user from a token that was verified, and not from anything in the request body?&lt;/li&gt;
&lt;li&gt;Does it stop with an error when there is no signed-in user?&lt;/li&gt;
&lt;li&gt;Does it read and write through the caller's own access, so your database rules still apply?&lt;/li&gt;
&lt;li&gt;If it uses the admin key, does every query filter by the user it worked out in step 1?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If a function fails the first two and uses a paid key or the admin key, treat it as open to everyone. Supabase's &lt;a href="https://supabase.com/docs/guides/functions/auth" rel="noopener noreferrer"&gt;guide on auth in Edge Functions&lt;/a&gt; shows the current way to do each step.&lt;/p&gt;

&lt;p&gt;For a function that only a timer or another service should call, the test is different: does it compare what was sent with a secret that only your server holds? The public key is not one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I have and have not shown
&lt;/h2&gt;

&lt;p&gt;I read code. I did not call any of these functions, and live settings may differ from the files.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want this checked on your app
&lt;/h2&gt;

&lt;p&gt;I do this as a fixed-price check on &lt;a href="https://www.upwork.com/services/product/development-it-a-security-check-of-your-lovable-or-supabase-app-and-fixes-with-proof-2121704156900226683" rel="noopener noreferrer"&gt;my Upwork listing&lt;/a&gt;. It reads the repository: the database rules, the server functions, the routes and the pages. You get a report with the file and line of each finding, and every row is read by hand before you see it. $149 is an opening price for the first five clients, then $249. Fixing what it found is a separate order: up to three findings for $300, each with proof that it shut what was open and opened nothing new. Nothing is run against your live app, and no key is ever tried. An empty report does not mean your app is secure.&lt;/p&gt;

</description>
      <category>vibecoding</category>
      <category>security</category>
      <category>supabase</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Check your Lovable or Supabase database rules with 6 read-only queries</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Wed, 02 Dec 2026 12:31:37 +0000</pubDate>
      <link>https://dev.to/glitchbound/check-your-lovable-or-supabase-database-rules-with-6-read-only-queries-23mc</link>
      <guid>https://dev.to/glitchbound/check-your-lovable-or-supabase-database-rules-with-6-read-only-queries-23mc</guid>
      <description>&lt;p&gt;In the &lt;a href="https://dev.to/glitchbound/85-security-fixes-in-lovable-apps-what-was-actually-wrong-dcb"&gt;last post&lt;/a&gt; I read 85 security fixes in Lovable apps and wrote down what was open before each one. 43 of the 85 were in the rules of the database itself.&lt;/p&gt;

&lt;p&gt;Most of those shapes can be looked for from the SQL editor of your own project. Here are six queries for that. All six only read the catalog, the tables where Postgres keeps its own description of your database. They change nothing and read none of your rows. Paste each one into the SQL editor in the Supabase dashboard and run it.&lt;/p&gt;

&lt;p&gt;A row in a result is a place to look, not a verdict. For each query I say what a row means and what the real fixes did about it. I ran every query and every fix below on a made-up database that has each hole once.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Tables with row level security off
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relname&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;table_name&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_class&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;join&lt;/span&gt; &lt;span class="n"&gt;pg_namespace&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relnamespace&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nspname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relkind&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'r'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relrowsecurity&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A table on this list has no rules of its own. Wherever the browser's roles hold rights on it, anyone who holds the public key of your project can read and change every row, and that key is in the code your site sends to every browser. Until this year every new table was handed to those roles. Supabase &lt;a href="https://supabase.com/changelog/45329-breaking-change-tables-not-exposed-to-data-and-graphql-api-automatically" rel="noopener noreferrer"&gt;changed that in 2026&lt;/a&gt;: a new table is no longer reachable until it is granted, and tables made before the change keep their rights. The fix is one line a table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;backups&lt;/span&gt; &lt;span class="n"&gt;enable&lt;/span&gt; &lt;span class="k"&gt;row&lt;/span&gt; &lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="n"&gt;security&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With row level security on and no policy, the browser reaches nothing in the table. Your server code, which works with the service key, still does.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Policies that let every caller through
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;policyname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cmd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;roles&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_policies&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;qual&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'true'&lt;/span&gt; &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="n"&gt;with_check&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'true'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are policies whose whole condition is &lt;code&gt;true&lt;/code&gt;. On a &lt;code&gt;SELECT&lt;/code&gt; that can be right: a table of blog posts is meant to be read. Ask it of each row anyway, because 11 of the 85 fixes were tables that more people could read than was meant. On an &lt;code&gt;INSERT&lt;/code&gt;, &lt;code&gt;UPDATE&lt;/code&gt; or &lt;code&gt;DELETE&lt;/code&gt; it is almost never right.&lt;/p&gt;

&lt;p&gt;The usual fix names the owner of the row:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;drop&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Profiles are viewable by everyone"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;profiles&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Users read own profile"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;profiles&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One limit: a policy can ask nothing of the caller without being the word &lt;code&gt;true&lt;/code&gt;. &lt;code&gt;using (published = true)&lt;/code&gt; lets everyone read the published rows, and this query does not list it.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Functions with their owner's rights that the browser may run
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;proname&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;function_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;pg_get_function_identity_arguments&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nf"&gt;has_function_privilege&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'anon'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'execute'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;anyone_can_run&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prorettype&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'boolean'&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regtype&lt;/span&gt;
        &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="nf"&gt;pg_get_function_identity_arguments&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt; &lt;span class="s1"&gt;'uuid'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;answers_about_a_user&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_proc&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;
&lt;span class="k"&gt;join&lt;/span&gt; &lt;span class="n"&gt;pg_namespace&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pronamespace&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nspname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prosecdef&lt;/span&gt;
  &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;prorettype&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'trigger'&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regtype&lt;/span&gt;
  &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;has_function_privilege&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'anon'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'execute'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
       &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="nf"&gt;has_function_privilege&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'authenticated'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'execute'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A &lt;code&gt;security definer&lt;/code&gt; function runs with the rights of whoever created it, so the policies on the tables do not apply inside it. A function in the &lt;code&gt;public&lt;/code&gt; schema can be called from the browser by name. Each row here is a function that does both. Read each one and ask what a stranger could do by calling it with values of their own choosing.&lt;/p&gt;

&lt;p&gt;For a function that only your server or a timer needs, take it away from the browser. Name the two roles: taking it away from &lt;code&gt;public&lt;/code&gt; alone was not enough in one of the real projects.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;revoke&lt;/span&gt; &lt;span class="n"&gt;execute&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;purge_backups&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;anon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The column &lt;code&gt;answers_about_a_user&lt;/code&gt; marks the shape that 9 of the 85 fixes were about: a helper such as &lt;code&gt;has_role&lt;/code&gt; that is handed a user id and answers yes or no. Your policies call it with the caller's own id. A browser can call it with anybody's id and learn who the admins are. Do not take this one away from signed-in users, because your policies run as them and would stop working. Make it answer only about the caller:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;or&lt;/span&gt; &lt;span class="k"&gt;replace&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has_role&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_user_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_role&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;returns&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="n"&gt;language&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt; &lt;span class="n"&gt;stable&lt;/span&gt; &lt;span class="n"&gt;security&lt;/span&gt; &lt;span class="n"&gt;definer&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="n"&gt;search_path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; $$
  &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;_user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
     &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="k"&gt;exists&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user_roles&lt;/span&gt;
                 &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;_user_id&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;_role&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
$$&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The helper stays on the list after this, since the list is of functions to read and you have now read this one. If an admin page or your server code asks it about other users, that needs another way to ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Views that answer with their creator's rights
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relname&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;view_name&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_class&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
&lt;span class="k"&gt;join&lt;/span&gt; &lt;span class="n"&gt;pg_namespace&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;oid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relnamespace&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nspname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relkind&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'v'&lt;/span&gt;
  &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="nb"&gt;coalesce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;option_value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'true'&lt;/span&gt;
                    &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="nf"&gt;pg_options_to_table&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reloptions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;
                    &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;option_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'security_invoker'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A reader of the last post pointed this one out, and it hides well. A view runs with the rights of its creator, so the policies on the tables under it do not apply to whoever reads the view. An app can have tight policies on a table of deals and still show everyone every total through a view over it. On Postgres 15 and later the fix is one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;alter&lt;/span&gt; &lt;span class="k"&gt;view&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;deal_totals&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;security_invoker&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Update policies on tables that hold rank or money
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;policyname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;string_agg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;', '&lt;/span&gt; &lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;columns_a_user_may_change&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_policies&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;
&lt;span class="k"&gt;join&lt;/span&gt; &lt;span class="n"&gt;information_schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
  &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table_schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tablename&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'UPDATE'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ALL'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;column_name&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt; &lt;span class="s1"&gt;'^(role|is_admin|is_staff|is_pro|is_premium|plan|tier|credits?|balance|subscription_.*|is_verified|is_approved)$'&lt;/span&gt;
  &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="nf"&gt;has_column_privilege&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'authenticated'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'%I.%I'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schemaname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;regclass&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;column_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'UPDATE'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;group&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;11 of the 85 fixes were a user giving themselves rank or money. A policy that lets a user update their own row covers every column of that row, the paid flag and the credits too. This lists update policies on tables that hold such a column, where the signed-in role still has the right to change it. The list of column names is mine, so add the names your app uses.&lt;/p&gt;

&lt;p&gt;The fix that holds takes the right on the whole table away and gives it back for the columns a user may change:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;revoke&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;profiles&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;anon&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;grant&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;full_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;profiles&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;authenticated&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Taking the right away for one column does nothing while the right on the whole table stands. That is how Postgres works, and it is why the first line is needed. If a trigger guards the column in your app instead, this query cannot see it: read the trigger and check that it names every column that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Insert policies that say nothing of the role
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;policyname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;with_check&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_policies&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;
&lt;span class="k"&gt;join&lt;/span&gt; &lt;span class="n"&gt;information_schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;
  &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table_schema&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;table_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tablename&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;column_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'role'&lt;/span&gt;
&lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cmd&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'INSERT'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ALL'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;coalesce&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;with_check&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;qual&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!~*&lt;/span&gt; &lt;span class="s1"&gt;'\mrole\M'&lt;/span&gt;
&lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;with check (user_id = auth.uid())&lt;/code&gt; on a table of team members says whose row it is. It says nothing about which team the row joins or what &lt;code&gt;role&lt;/code&gt; it holds, so a signed-in user can add themselves to any team as an admin. This lists insert policies on tables with a &lt;code&gt;role&lt;/code&gt; column whose condition never mentions the role.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;drop&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Members can join"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_members&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Members can join"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;team_members&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="k"&gt;check&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'member'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the one who adds the row is the owner of the team, picking the role is theirs to do, and that policy is fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  What these six do not show
&lt;/h2&gt;

&lt;p&gt;They cover the database half. The other half of the 85 was in server code and in pages: a server function that never checks who is calling, a file path taken from the request, text from the database put into HTML. No query sees those. Neither does a query know the rules that only your app knows, such as which students a teacher may see.&lt;/p&gt;

&lt;p&gt;And the queries read the database as it is today. If you also keep your rules in migration files, the two can differ. The last post has a section on that.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want this checked on your app
&lt;/h2&gt;

&lt;p&gt;I do this as a fixed-price check on &lt;a href="https://www.upwork.com/services/product/development-it-a-security-check-of-your-lovable-or-supabase-app-and-fixes-with-proof-2121704156900226683" rel="noopener noreferrer"&gt;my Upwork listing&lt;/a&gt;. It reads the repository as well as the rules: the server functions, the routes and the pages. You get a report with the file and line of each finding, and every row is read by hand before you see it. $149 is an opening price for the first five clients, then $249. Fixing what it found is a separate order: up to three findings for $300, each with proof that it shut what was open and opened nothing new. Nothing is run against your live app, and no key is ever tried. An empty report does not mean your app is secure.&lt;/p&gt;

</description>
      <category>vibecoding</category>
      <category>security</category>
      <category>supabase</category>
      <category>webdev</category>
    </item>
    <item>
      <title>85 security fixes in Lovable apps: what was actually wrong</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Tue, 01 Dec 2026 20:19:34 +0000</pubDate>
      <link>https://dev.to/glitchbound/85-security-fixes-in-lovable-apps-what-was-actually-wrong-dcb</link>
      <guid>https://dev.to/glitchbound/85-security-fixes-in-lovable-apps-what-was-actually-wrong-dcb</guid>
      <description>&lt;p&gt;When Lovable's agent fixes a security problem in an app, the fix is a commit. If the repository is public, anyone can read it: what the code looked like before, and what changed.&lt;/p&gt;

&lt;p&gt;I searched GitHub for such commits and read about 300 of them. Most were package updates, new features, or tightening where nothing was shown to be open. I kept 85, one per project, where the commit closed something that a stranger or another user could really have used. For each one I wrote down what was open before the fix.&lt;/p&gt;

&lt;p&gt;Two things to know before the numbers. I found the commits by searching for words such as "Fix security", "privilege escalation" and "XSS", so the mix below is shaped by the words I searched for. Read the counts as examples, not as rates. And every one of these was fixed. The question for you is whether your app has the same thing, and nobody has asked for the fix yet. I name no project here.&lt;/p&gt;

&lt;p&gt;In an &lt;a href="https://dev.to/glitchbound/after-the-lovable-data-exposure-study-what-i-found-in-the-code-of-six-apps-43a2"&gt;earlier post&lt;/a&gt; I read the code of six apps. This is the same question on a larger pile.&lt;/p&gt;

&lt;h2&gt;
  
  
  About half of them were in the database rules
&lt;/h2&gt;

&lt;p&gt;43 of the 85 were in the rules of the database itself: the policies on the tables, and the SQL functions. Not in the pages, and not in the server code. (A few of the 43 are told further down, where they fit better.)&lt;/p&gt;

&lt;h3&gt;
  
  
  A helper that tells anyone who the admins are (9 of 85)
&lt;/h3&gt;

&lt;p&gt;Many of these apps have this function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;public&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has_role&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_user_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_role&lt;/span&gt; &lt;span class="n"&gt;app_role&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;returns&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="n"&gt;language&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt; &lt;span class="n"&gt;security&lt;/span&gt; &lt;span class="n"&gt;definer&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; $$
  &lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="k"&gt;exists&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;user_roles&lt;/span&gt;
                 &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;_user_id&lt;/span&gt; &lt;span class="k"&gt;and&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;_role&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
$$&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The policies call it with the caller's own id, which is fine. But a function in the &lt;code&gt;public&lt;/code&gt; schema can also be called from the browser by name, with any id. So anyone can ask it about any user and learn who the admins are.&lt;/p&gt;

&lt;p&gt;Most of the fixes did one of two things. Some moved the helper to a schema the browser cannot reach. Others made it answer only about the caller.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rank or money that a user gives themselves (11 of 85)
&lt;/h3&gt;

&lt;p&gt;Seven of these were the same shape: a policy that lets a user update their own row.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Users update own profile"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;profiles&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;update&lt;/span&gt; &lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A row policy covers the whole row. If the row holds &lt;code&gt;is_pro&lt;/code&gt;, &lt;code&gt;credits&lt;/code&gt;, a commission rate or a staff flag, the user can change that too, straight from the browser.&lt;/p&gt;

&lt;p&gt;Two details from the fixes are worth knowing. A trigger that puts a list of columns back to their old values protects only the columns on the list. In one project the list did not hold the staff flag. And in PostgreSQL, taking away the right to update one column does nothing while the right on the whole table stands. The fixes that hold take the right on the table away first, and then give it back for the columns a user may change.&lt;/p&gt;

&lt;p&gt;Three more were the sign-up trigger. It copied a role from what the new user sent about themselves at sign-up into the table of roles. Whoever signs up with &lt;code&gt;role: admin&lt;/code&gt; in that data is an admin. And one was a server function that marked its caller as a paying user, with no proof of payment.&lt;/p&gt;

&lt;h3&gt;
  
  
  A row of your own, in a group you picked (6 of 85 were policies that let too many add rows)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt; &lt;span class="s2"&gt;"Members can join"&lt;/span&gt; &lt;span class="k"&gt;on&lt;/span&gt; &lt;span class="n"&gt;team_members&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="k"&gt;insert&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="k"&gt;check&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;auth&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;uid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This says whose row it is. It says nothing about which team the row joins, or what &lt;code&gt;role&lt;/code&gt; it holds. A signed-in user can add themselves to any team, as an admin. The fix in one project was a few words more in the policy: &lt;code&gt;and role = 'member'&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Another project had a policy that was named for what it forbids. It refused one kind of user and asked nothing of anybody else, so every other signed-in user could add rows under any id.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tables that more people could read than was meant (11 of 85)
&lt;/h3&gt;

&lt;p&gt;Six could be read by anyone. Two could be read by every signed-in user, and one of those held the app's settings. That sounds narrow, but in an app where anyone can sign up, "signed in" means everyone. Three more showed credentials, keys or files to more people than they should.&lt;/p&gt;

&lt;h2&gt;
  
  
  The server code: nobody asked who is calling
&lt;/h2&gt;

&lt;p&gt;12 of the 85 were functions that never checked their caller. Four were SQL functions that run with their owner's rights and that any visitor could run. Seven were server functions that worked for callers who were not signed in: calls to a paid AI service on the owner's key, an export of logs, a lookup that told whether an email is registered. One of them took the public key, which every browser holds, as proof that a timer was calling. And one function read the caller's role out of a token by hand, without checking the signature. Anyone can write a token that says &lt;code&gt;service_role&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One detail from the SQL ones. In one project a first fix took the function away from &lt;code&gt;public&lt;/code&gt;, and a later fix had to come back for it. In Supabase the two roles a browser acts as hold their own grant, so the fix that holds names them: &lt;code&gt;revoke execute on function ... from public, anon, authenticated&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;13 more trusted something the caller sent. Six took an id or a storage path from the request and reached a row or a file without asking whose it is. Five built a file path from what was sent. One fetched any address it was handed, and one sent the visitor on to an address taken from the link.&lt;/p&gt;

&lt;h2&gt;
  
  
  The page: text from the database shown as HTML
&lt;/h2&gt;

&lt;p&gt;15 of the 85. The page took text that a user had typed, a name or a note, and put it into HTML as it was.&lt;/p&gt;

&lt;p&gt;React escapes text for you, so most of these were in the places where the code builds HTML by hand: a print view that writes a new window with &lt;code&gt;document.write&lt;/code&gt;, the popup of a map, a page that shows stored HTML with &lt;code&gt;dangerouslySetInnerHTML&lt;/code&gt;. Two were links: a saved address that starts with &lt;code&gt;javascript:&lt;/code&gt; runs when another user clicks it. Three were spreadsheet exports. A cell that starts with &lt;code&gt;=&lt;/code&gt; is run as a formula by the program that opens the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  One thing I did not expect: two folders of migrations
&lt;/h2&gt;

&lt;p&gt;27 of the 85 projects keep their database changes in two folders: &lt;code&gt;supabase/migrations&lt;/code&gt;, named by date, and a newer &lt;code&gt;drizzle/migrations&lt;/code&gt;, numbered from 0000. In 9 of them the older folder was still getting new files after the newer one began.&lt;/p&gt;

&lt;p&gt;This matters if you, a reviewer, or an AI assistant read "the migrations" to learn what your rules are today. Both folders have to be read, in the order the changes were made. My own checker read them in the wrong order until a few days ago, and reported holes that a later migration had already closed. If a tool tells you a policy is open and you remember fixing it, look for a second folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  What reading the code does not find
&lt;/h2&gt;

&lt;p&gt;8 of the 85 were things that no list of patterns covers, and most of them were rules that only the app knows. Which students a teacher may see. What a refund takes back. A plan limit that only the browser kept. Somebody has to know what the app is meant to allow.&lt;/p&gt;

&lt;p&gt;And a few of the 85 were about things that were made in the live database and are in no file of the repository. Reading code cannot see those either.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want this checked on your app
&lt;/h2&gt;

&lt;p&gt;I do this as a fixed-price check on &lt;a href="https://www.upwork.com/services/product/development-it-a-security-check-of-your-lovable-or-supabase-app-and-fixes-with-proof-2121704156900226683" rel="noopener noreferrer"&gt;my Upwork listing&lt;/a&gt;. You give read access to the repository. You get a report with the file and line of each finding, sorted into fix now, check and information, and every row is read by hand before you see it. $149 is an opening price for the first five clients, then $249. Fixing what it found is a separate order: up to three findings for $300, each with proof that it shut what was open and opened nothing new. Nothing is run against your live app, and no key is ever tried. An empty report does not mean your app is secure.&lt;/p&gt;

</description>
      <category>vibecoding</category>
      <category>security</category>
      <category>supabase</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Hiring trends by stock ticker: daily job postings for NVDA, AMZN, WMT and 920 more US companies</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:19:13 +0000</pubDate>
      <link>https://dev.to/glitchbound/hiring-trends-by-stock-ticker-daily-job-postings-for-nvda-amzn-wmt-and-920-more-us-companies-3kgn</link>
      <guid>https://dev.to/glitchbound/hiring-trends-by-stock-ticker-daily-job-postings-for-nvda-amzn-wmt-and-920-more-us-companies-3kgn</guid>
      <description>&lt;p&gt;Every night I read job postings straight from about 63,000 employers' own career sites: Workday, Oracle, iCIMS, SuccessFactors, Greenhouse, Lever and 18 more applicant tracking systems. No job board sits in between. Each posting is kept with the day it appeared and the day it closed, so the number of open roles on any past day is a count of real postings, not an estimate.&lt;/p&gt;

&lt;p&gt;923 of those employers map to a US stock ticker. This is what their hiring looked like at the end of November 2026, and how to get it as data.&lt;/p&gt;

&lt;h2&gt;
  
  
  November in two numbers
&lt;/h2&gt;

&lt;p&gt;Across the 820 companies with a full month of history, open roles fell from 432,829 to 401,454, down 7.2%. 567 of them have fewer openings than a month ago, 218 have more, and 35 are flat.&lt;/p&gt;

&lt;p&gt;The 343 companies tracked for 90 days show the shape: 141,371 open roles 90 days ago, 153,551 a month ago, 141,044 now. October's rise is gone, and the total is back where it was at the end of August.&lt;/p&gt;

&lt;p&gt;Growing fastest, among companies with 300 or more open roles a month ago:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ticker&lt;/th&gt;
&lt;th&gt;Company&lt;/th&gt;
&lt;th&gt;Open now&lt;/th&gt;
&lt;th&gt;30 days ago&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;STLA&lt;/td&gt;
&lt;td&gt;Stellantis&lt;/td&gt;
&lt;td&gt;1,312&lt;/td&gt;
&lt;td&gt;1,019&lt;/td&gt;
&lt;td&gt;+28.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SNY&lt;/td&gt;
&lt;td&gt;Sanofi&lt;/td&gt;
&lt;td&gt;1,439&lt;/td&gt;
&lt;td&gt;1,139&lt;/td&gt;
&lt;td&gt;+26.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AVGO&lt;/td&gt;
&lt;td&gt;Broadcom&lt;/td&gt;
&lt;td&gt;459&lt;/td&gt;
&lt;td&gt;373&lt;/td&gt;
&lt;td&gt;+23.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ADSK&lt;/td&gt;
&lt;td&gt;Autodesk&lt;/td&gt;
&lt;td&gt;446&lt;/td&gt;
&lt;td&gt;369&lt;/td&gt;
&lt;td&gt;+20.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MRVL&lt;/td&gt;
&lt;td&gt;Marvell&lt;/td&gt;
&lt;td&gt;422&lt;/td&gt;
&lt;td&gt;353&lt;/td&gt;
&lt;td&gt;+19.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Shrinking fastest, same rule:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ticker&lt;/th&gt;
&lt;th&gt;Company&lt;/th&gt;
&lt;th&gt;Open now&lt;/th&gt;
&lt;th&gt;30 days ago&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;BBY&lt;/td&gt;
&lt;td&gt;Best Buy&lt;/td&gt;
&lt;td&gt;1,002&lt;/td&gt;
&lt;td&gt;3,515&lt;/td&gt;
&lt;td&gt;-71.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HLN&lt;/td&gt;
&lt;td&gt;Haleon&lt;/td&gt;
&lt;td&gt;177&lt;/td&gt;
&lt;td&gt;384&lt;/td&gt;
&lt;td&gt;-53.9%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HII&lt;/td&gt;
&lt;td&gt;Huntington Ingalls Industries&lt;/td&gt;
&lt;td&gt;276&lt;/td&gt;
&lt;td&gt;496&lt;/td&gt;
&lt;td&gt;-44.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ELV&lt;/td&gt;
&lt;td&gt;Elevance Health&lt;/td&gt;
&lt;td&gt;216&lt;/td&gt;
&lt;td&gt;387&lt;/td&gt;
&lt;td&gt;-44.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AEP&lt;/td&gt;
&lt;td&gt;American Electric Power&lt;/td&gt;
&lt;td&gt;208&lt;/td&gt;
&lt;td&gt;357&lt;/td&gt;
&lt;td&gt;-41.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Best Buy's drop is mostly store hiring: of the 5,034 postings it closed in those 30 days, 2,597 were retail sales or warehouse associates, and 574 more had "seasonal" or "holiday" in the title. Seasonal swings like this are the main trap in hiring data, and the reason the 90-day view matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes the count trustworthy, and where it is not
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A one-day jump is usually the reader, not the company.&lt;/strong&gt; When a career site changes how it lists jobs, or moves to a new system, its count can double or halve overnight. Any one-day move of 30% or more restarts the comparison from that day, so it never shows up as a fake surge or collapse. Dollar General shows 91,384 open roles and no 30-day change for exactly this reason: its history restarts on 26 November.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Workday hides most of a big employer's jobs.&lt;/strong&gt; Workday's job API reports at most 2,000 jobs for a search and returns nothing past that, even when the board holds 20,000. The largest employers are read through the facets in the same answer instead, each one a search under the cap. I wrote that part up in &lt;a href="https://dev.to/glitchbound/workday-says-the-board-has-2000-jobs-target-has-12525-reading-the-rest-7c9"&gt;Workday says the board has 2,000 jobs. Target has 12,525.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A ticker is assigned only when it is confirmed.&lt;/strong&gt; A company gets one when its own website matches the official website listed for the ticker, or its exact legal name matches a large listed issuer. Pairs that look right but are not are excluded, and when in doubt a company gets no ticker. That is why the list is 923 long and not 5,000.&lt;/p&gt;

&lt;p&gt;History starts in August 2026, so the 90-day change exists for 343 companies today, and more each week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting the data
&lt;/h2&gt;

&lt;p&gt;The 718 companies with 20 or more open roles and a month of history each have a free page with a daily chart, for example &lt;a href="https://glitchbound-jobs.pages.dev/hiring-trends/nvda/" rel="noopener noreferrer"&gt;NVIDIA&lt;/a&gt; or &lt;a href="https://glitchbound-jobs.pages.dev/hiring-trends/stla/" rel="noopener noreferrer"&gt;Stellantis&lt;/a&gt;. &lt;a href="https://glitchbound-jobs.pages.dev/hiring-trends/" rel="noopener noreferrer"&gt;The index page&lt;/a&gt; lists every company with a page and the biggest movers.&lt;/p&gt;

&lt;p&gt;As data, it is an Apify Actor priced per company row, with no subscription. One call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/glitchbound~stock-hiring-trends/run-sync-get-dataset-items?token=$APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"tickers": ["NVDA", "AMZN", "STLA"], "includeHistory": false}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each row has the ticker and company, &lt;code&gt;openRoles&lt;/code&gt; today and 7, 30 and 90 days ago where the history reaches, the change in roles and in percent, roles opened and closed in the last 30 days, leadership, senior, junior and remote counts, departments, departments new this month, and the day the history starts. With &lt;code&gt;includeHistory&lt;/code&gt; you also get the daily count since August.&lt;/p&gt;

&lt;p&gt;The Actor: &lt;a href="https://apify.com/glitchbound/stock-hiring-trends" rel="noopener noreferrer"&gt;Stock Hiring Trends&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If a number here looks wrong to you, say so in the comments. Every odd number so far has turned out to be a reading problem worth fixing.&lt;/p&gt;

</description>
      <category>api</category>
      <category>datascience</category>
      <category>python</category>
      <category>fintech</category>
    </item>
    <item>
      <title>After the Lovable data exposure study: what I found in the code of six apps</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Sun, 15 Nov 2026 08:25:44 +0000</pubDate>
      <link>https://dev.to/glitchbound/after-the-lovable-data-exposure-study-what-i-found-in-the-code-of-six-apps-43a2</link>
      <guid>https://dev.to/glitchbound/after-the-lovable-data-exposure-study-what-i-found-in-the-code-of-six-apps-43a2</guid>
      <description>&lt;p&gt;On 14 November a study by Crissy Field, a German firm, was on the front page of Hacker News. They looked at 159,041 Lovable projects found in the Common Crawl web archive. 34,545 of them used Supabase, and 24,664 of those sent database records as soon as the page loaded. On 7,403 of the 24,664, they could read tables with email addresses without signing in. They say themselves that this is not a confirmed leak rate, since some of those addresses may be public contacts or test data. The cases they describe include more than 200,000 private chat messages and more than 1,000 records with passport details. You can read it &lt;a href="https://www.crissyfield.de/research/lovable-en/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Their study looked at live sites from the outside. Earlier this month I did the opposite, on a much smaller scale: I read the code of six Lovable apps and tried nothing against them. Reading the code shows the rule behind a readable table, and it also finds problems that a look from the outside cannot see, such as a user who can give themselves a paid plan.&lt;/p&gt;

&lt;p&gt;You built an app with Lovable. It has sign-in, a database and maybe a paid plan. It works, and people use it. What the screen cannot tell you is whether a stranger can read your users' data, or run up your AI bill, without ever signing in.&lt;/p&gt;

&lt;p&gt;In an &lt;a href="https://dev.to/glitchbound/vibe-code-cleanup-how-to-know-the-cleanup-did-not-break-your-ai-built-app-1ga7"&gt;earlier post&lt;/a&gt; I wrote that a cleanup does not find security problems, and that finding them is a different job. Enough founders need that job that I built a check for it. Before selling it, I ran it on six real apps. It failed. This post is about what it missed and what it finds now.&lt;/p&gt;

&lt;h2&gt;
  
  
  The six apps
&lt;/h2&gt;

&lt;p&gt;They are six public apps built with Lovable on Supabase, with their code open on GitHub. I read the code and its history and nothing else. I ran nothing, signed in to nothing and tried nothing against a live app. I am not naming the apps, and I left out every detail that would point to one of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first version failed
&lt;/h2&gt;

&lt;p&gt;The first version looked for the classic things: keys left in the code, keys that were deleted but are still in the history, risky code patterns, and tables with no access rules. It passed its own tests. After I fixed three false alarms, it gave sensible results on five open-source developer projects.&lt;/p&gt;

&lt;p&gt;On the six Lovable apps it was wrong in both directions.&lt;/p&gt;

&lt;p&gt;It raised its loudest alarm, "Fix now", on a settings file in three of the six. That file holds only values that every visitor's browser receives anyway, and Lovable projects commonly commit it. I wrote about that file &lt;a href="https://dev.to/glitchbound/lovable-put-a-env-file-in-my-github-repo-is-my-supabase-key-leaked-2bc6"&gt;here&lt;/a&gt;. It also flagged the same chart component, which comes from a widely used UI kit, in five of the six.&lt;/p&gt;

&lt;p&gt;And it did not raise one of the real problems. The closest it came was a line of background information saying that a table can be read by everyone, without noticing what was in the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the problems really were
&lt;/h2&gt;

&lt;p&gt;None of the six had a leaked secret key. The check read 1,015 commits of history across them and found none. The thing people warn about most was not there.&lt;/p&gt;

&lt;p&gt;The problems were in two places the first version barely read: the database rules, and the small server functions that these apps use for things like AI calls and email.&lt;/p&gt;

&lt;p&gt;So I rebuilt the check around those two. It now reads the database files in order, down to the rules the app ends up with, because a rule written in one file is often dropped or replaced in a later one. And it reads every server function to see whether it ever asks who is calling.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the second version found
&lt;/h2&gt;

&lt;p&gt;Five of the six apps had findings a founder would want to know about. I confirmed the main findings by reading the code myself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Private data behind a rule that asks nothing of the caller.&lt;/strong&gt; Two apps have a rule that lets anyone, signed in or not, read every row of a table that holds something private. In one it is every user's email address. In the other it is a table of API keys.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Users who can upgrade themselves.&lt;/strong&gt; In one app, each user may edit their own profile row, and that same row holds their subscription tier. A row rule covers the whole row, every column in it, so nothing in the code stops a user from setting their own plan from the browser. The table that counts their usage is theirs to edit too.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Server functions that never look at who is calling.&lt;/strong&gt; There are 16 of them across four apps. Four, in two apps, have the platform's token check switched off, so anyone on the internet can call them. For the other twelve the platform only checks that a key or token was sent, and the public key that every visitor's browser has passes that check, whether it is the older anon key or the newer publishable key. At least nine of the 16 use a paid AI or email key, so a stranger can run them on the owner's account. Two take the user's id from the request itself and then work with the key that skips every database rule. A caller can read or change another user's data through them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rules that are not in the code at all.&lt;/strong&gt; In two apps, some or all of the tables were created outside the repository, so no file says who may read them. The check cannot judge those. Its report prints one read-only query for the owner to run instead.&lt;/p&gt;

&lt;p&gt;Each of the six also had between 25 and 32 packages with a published vulnerability, and none that is known to be malicious. That sounds worse than it is. It does not mean the app can be attacked through them, and updating the package is the usual fix.&lt;/p&gt;

&lt;p&gt;The sixth app had nothing to fix and nothing to check, only notes. I read its rules by hand and agreed.&lt;/p&gt;

&lt;p&gt;The owners of three of the apps have the details from me, sent privately before this post.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three things you can look at today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Rows a user owns.&lt;/strong&gt; If the row a user may edit also holds their plan, role or credits, they can change those as well.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server functions.&lt;/strong&gt; Open each one and look for the line that checks who the caller is. If a function uses a paid key or the service role key and has no such line, treat it as open to everyone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tables made in the dashboard.&lt;/strong&gt; Run this in the Supabase SQL editor. It only reads.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rowsecurity&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_tables&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A table with &lt;code&gt;rowsecurity = false&lt;/code&gt; has no rules at all. Anyone who has your public key can usually read and change it, and that key is in every visitor's browser. Supabase has been changing this during 2026 so that new tables cannot be reached until you grant access, but tables that already existed keep the access they had.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not tell you
&lt;/h2&gt;

&lt;p&gt;Six apps is a small sample next to the study above, and all six are apps whose code is public. I would not turn "five of six" into a claim about every Lovable app.&lt;/p&gt;

&lt;p&gt;I read code. I did not test whether any of this can be used against the running apps, and their live settings may differ from the files. Newer Supabase projects, for example, are stricter by default about what a visitor can reach.&lt;/p&gt;

&lt;p&gt;The check looks for a fixed list of problems. It cannot see settings that were changed by hand in a dashboard, or mistakes in the logic of the app, such as one customer being able to open another customer's order. An empty report means these problems were not found. It does not mean the app is secure, and the report says so in bold at the top.&lt;/p&gt;

&lt;p&gt;I have not yet run it on Bolt, Next.js or Firebase apps.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want it run on your app
&lt;/h2&gt;

&lt;p&gt;The check is an option with the scan on &lt;a href="https://www.upwork.com/services/product/development-it-a-cleanup-of-your-ai-written-code-with-proof-that-nothing-broke-2120785581882277469" rel="noopener noreferrer"&gt;my Upwork listing&lt;/a&gt;. The scan costs $95, and the security check adds one day and $50. That is an opening price for the first five clients. After that it is $150. You give read access to the repository. You get a report with the file and line of each finding, sorted into fix now, check and information. The report ends with a fixed price for fixing what it found. Fixing it is a separate order: up to three findings cost $300. If you then hire me for a cleanup, the $95 for the scan comes off its price. Nothing is run against your live app, and no key is ever tried.&lt;/p&gt;

</description>
      <category>vibecoding</category>
      <category>security</category>
      <category>supabase</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Lovable put a .env file in my GitHub repo. Is my Supabase key leaked?</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Fri, 13 Nov 2026 17:08:00 +0000</pubDate>
      <link>https://dev.to/glitchbound/lovable-put-a-env-file-in-my-github-repo-is-my-supabase-key-leaked-2bc6</link>
      <guid>https://dev.to/glitchbound/lovable-put-a-env-file-in-my-github-repo-is-my-supabase-key-leaked-2bc6</guid>
      <description>&lt;p&gt;You open your project on GitHub and see a file called &lt;code&gt;.env&lt;/code&gt;. Inside is your Supabase address and a long key. Every guide says never commit a &lt;code&gt;.env&lt;/code&gt; file. Is your app leaking?&lt;/p&gt;

&lt;p&gt;Usually not. My own checker made this exact mistake. Its first version raised its loudest alarm on this file in three of six apps, and it was wrong all three times.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is in the file
&lt;/h2&gt;

&lt;p&gt;In the apps I looked at, the file held the project address, a key named &lt;code&gt;VITE_SUPABASE_PUBLISHABLE_KEY&lt;/code&gt; or &lt;code&gt;VITE_SUPABASE_ANON_KEY&lt;/code&gt;, and one more public setting such as the project id.&lt;/p&gt;

&lt;p&gt;Two things make these harmless to publish.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;VITE_&lt;/code&gt; prefix.&lt;/strong&gt; The build tool copies every value with that prefix into the code that runs in the browser. Anyone who visits your app already has it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The kind of key.&lt;/strong&gt; Supabase has public keys and secret keys. The publishable key is the public kind, and Supabase's own guide calls it safe to expose online. The older anon key is the earlier version of the same thing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the file tells the world nothing your website does not already tell it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The condition that matters
&lt;/h2&gt;

&lt;p&gt;The public key is safe only if your database rules are in place. It opens the door to the database, and Row Level Security decides what the visitor can do once inside. With a table that has no rules, that public key is usually enough to read and change the table.&lt;/p&gt;

&lt;p&gt;That is the real question. It is not "is my key visible". It is "what can someone do with it".&lt;/p&gt;

&lt;h2&gt;
  
  
  Which key is the dangerous one
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;New style: a key starting with &lt;code&gt;sb_secret_&lt;/code&gt; is secret. One starting with &lt;code&gt;sb_publishable_&lt;/code&gt; is public.&lt;/li&gt;
&lt;li&gt;Old style: both keys are long strings starting with &lt;code&gt;eyJ&lt;/code&gt;. In the Supabase dashboard one is labelled &lt;code&gt;anon&lt;/code&gt; and the other &lt;code&gt;service_role&lt;/code&gt;. The &lt;code&gt;service_role&lt;/code&gt; key is the secret one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A secret key skips every rule you have. It belongs on a server only. It is a real leak if it appears in any of these places:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;code&gt;.env&lt;/code&gt; file in your repository.&lt;/li&gt;
&lt;li&gt;In any variable whose name starts with &lt;code&gt;VITE_&lt;/code&gt;, even if the file is not committed.&lt;/li&gt;
&lt;li&gt;In an older commit. Deleting a file does not remove it from the history.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The same goes for keys of other paid services, such as an AI provider or an email service.&lt;/p&gt;

&lt;h2&gt;
  
  
  If the secret key was exposed
&lt;/h2&gt;

&lt;p&gt;Deleting it is not enough. First take it out of the code, so the new key does not leak the same way. Then create a new key in the Supabase dashboard, switch your server to it, and turn the old one off. Supabase calls this rotating the key.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two-minute check
&lt;/h2&gt;

&lt;p&gt;Run this in the Supabase SQL editor. It only reads.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;select&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rowsecurity&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pg_tables&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;schemaname&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'public'&lt;/span&gt; &lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;by&lt;/span&gt; &lt;span class="n"&gt;tablename&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any table with &lt;code&gt;rowsecurity = false&lt;/code&gt; has no rules at all. That matters far more than the &lt;code&gt;.env&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;One more thing to know: Supabase says it is deprecating the older &lt;code&gt;anon&lt;/code&gt; and &lt;code&gt;service_role&lt;/code&gt; keys by the end of 2026, so a move to the new keys is coming either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want your app checked
&lt;/h2&gt;

&lt;p&gt;I read your repository and its history for a fixed list of problems, including secret keys in the code and tables without rules, and report each with its file and line. It is an option with the scan on &lt;a href="https://www.upwork.com/services/product/development-it-a-cleanup-of-your-ai-written-code-with-proof-that-nothing-broke-2120785581882277469" rel="noopener noreferrer"&gt;my Upwork listing&lt;/a&gt;. The scan costs $95, and the security check adds one day and $50. That is an opening price for the first five clients. After that it is $150. An empty report does not mean the app is secure.&lt;/p&gt;

</description>
      <category>supabase</category>
      <category>security</category>
      <category>vibecoding</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Vibe code cleanup: how to know the cleanup did not break your AI-built app</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Tue, 10 Nov 2026 20:48:13 +0000</pubDate>
      <link>https://dev.to/glitchbound/vibe-code-cleanup-how-to-know-the-cleanup-did-not-break-your-ai-built-app-1ga7</link>
      <guid>https://dev.to/glitchbound/vibe-code-cleanup-how-to-know-the-cleanup-did-not-break-your-ai-built-app-1ga7</guid>
      <description>&lt;p&gt;You built an app with Lovable, Cursor, Bolt or Claude Code, and it works. People use it. But every new feature now breaks an old one, and the AI keeps writing things again that it already wrote.&lt;/p&gt;

&lt;p&gt;The fix is a cleanup. The problem is that a cleanup can break the app that works today, and you may not find out until a customer does.&lt;/p&gt;

&lt;p&gt;I offer a cleanup service for AI-written code, and its whole promise is that you get proof nothing broke. Before selling that, I wanted to know whether the proof could be trusted. So I ran it on a real app and then tried to fool it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The app
&lt;/h2&gt;

&lt;p&gt;I picked an open-source web app with more than 900 stars. Its author describes it as vibe-coded, built over about a year with AI tools. It is a real product that people use, and it comes with 817 automated tests of its own.&lt;/p&gt;

&lt;p&gt;A scan found what a year of AI-written code usually leaves behind. The same small function was written several times in different files. Old copies of files were left lying around with nothing using them. Some files had grown to thousands of lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cleanup
&lt;/h2&gt;

&lt;p&gt;I merged the identical copies into one, deleted the files nothing used, and split two oversized files into smaller ones. That came to 28 files changed and 2,937 fewer lines.&lt;/p&gt;

&lt;p&gt;I left alone anything that would change how the parts of the app talk to each other. One 4,906-line piece of code stayed as it was, because splitting it is a design decision that belongs to the owner.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then I broke it on purpose
&lt;/h2&gt;

&lt;p&gt;On a throwaway copy, I removed one small step from one of the merged functions. It was the step that turns a file name into lower case.&lt;/p&gt;

&lt;p&gt;All 817 tests still passed.&lt;/p&gt;

&lt;p&gt;In the app itself, four export screens now produced &lt;code&gt;My-Demo-File-_v2&lt;/code&gt; where they used to produce &lt;code&gt;my-demo-file-_v2&lt;/code&gt;. It is a harmless example of a serious problem. "The tests pass" is the usual evidence that a cleanup was safe, and here it would have been wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  What caught it
&lt;/h2&gt;

&lt;p&gt;The cleanup is checked four ways, and each one compares the old version with the new one.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Every piece of code in the old version is matched to the new version. All 2,348 were accounted for. This check caught the planted bug.&lt;/li&gt;
&lt;li&gt;The app's own tests run on both versions. All 817 passed on both, and no test was edited.&lt;/li&gt;
&lt;li&gt;The same screens are opened in the old build and the new build. All 16 were identical down to the pixel, with the same text, errors, network requests and saved data. This check caught the planted bug too, on exactly the four screens that use the function.&lt;/li&gt;
&lt;li&gt;The functions that were touched are run with the same inputs on both versions. 594 of 594 results were identical.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One more thing came out of the first check. Eleven places in this app define a function with the same name, and they do not all do the same thing. Merging the wrong two would change behaviour far away from the edit, so the check follows where every name leads, not only whether the text looks the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking the checks
&lt;/h2&gt;

&lt;p&gt;One planted bug is an anecdote. So the cleaned code was broken in 230 small ways, one at a time, and the first check noticed all 230.&lt;/p&gt;

&lt;p&gt;My checks were not perfect the first time, and I think you should know that. The cleanup deleted a file that a settings file still mentioned. Nothing broke, but the report should have pointed at it and did not. I fixed the check, corrected the report in public, and the report now lists that line for a person to read.&lt;/p&gt;

&lt;p&gt;Four open-source maintainers have merged cleanups of mine. The largest went through all four checks above: in Ascii-Motion, an ASCII animation editor whose README says it was vibe-coded, the author merged a cleanup that removed 3,028 lines from 21 files, and you can read it &lt;a href="https://github.com/CameronFoxly/Ascii-Motion/pull/191" rel="noopener noreferrer"&gt;here&lt;/a&gt;. Three smaller ones went through the first two checks. In Calino, a calendar app, one removed 55 duplicated lines from one file, and you can read it &lt;a href="https://github.com/Ivan-Malinovski/calino/pull/268" rel="noopener noreferrer"&gt;here&lt;/a&gt;. In relay-ai, a tool its README says was vibe coded, one replaced two identical copies of a function with a single shared copy, and you can read it &lt;a href="https://github.com/jacob-bd/relay-ai/pull/91" rel="noopener noreferrer"&gt;here&lt;/a&gt;. In better-agent-terminal, a terminal app whose README says it was built with Claude Code, one moved two helper functions that each existed twice into one shared file, and you can read it &lt;a href="https://github.com/tony1223/better-agent-terminal/pull/154" rel="noopener noreferrer"&gt;here&lt;/a&gt;. Five of relay-ai's tests need the internet, so they fail in my sandbox, the same way before and after my change. They passed in the maintainer's own run. Four of better-agent-terminal's fifteen test files fail in my sandbox with a network error, also the same way before and after.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a cleanup does not do
&lt;/h2&gt;

&lt;p&gt;A cleanup that changes nothing also fixes nothing. If your app has a bug or a security hole today, a careful cleanup keeps it, because keeping behaviour the same is the whole point.&lt;/p&gt;

&lt;p&gt;Finding security problems, such as open database rules or leaked keys, is a different job, usually called an audit. Many founders need that before launch. Make sure you know which of the two you are buying, because they are often sold under one name.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you get when you hire me
&lt;/h2&gt;

&lt;p&gt;It always starts with a scan, which costs $95. You get a report on your whole repository that lists the duplicated functions, the look-alikes that are not safe to merge, the files over 1,000 lines and the values that are retyped in many places. It ends with a fixed price for the cleanup, so you know the cost before you commit to anything. If you then hire me for the cleanup, the $95 comes off its price.&lt;/p&gt;

&lt;p&gt;Then we agree on what gets cleaned and which parts of the app matter most to you. I do the cleanup in small steps and run the four checks above on your app.&lt;/p&gt;

&lt;p&gt;You receive two things. The first is one pull request, which is the cleaned code ready for you to accept. The second is the proof report, which lists every piece of code that was moved, merged or removed, with before and after screenshots of your screens.&lt;/p&gt;

&lt;p&gt;If a change in behaviour caused by my cleanup shows up within 30 days, I fix it free.&lt;/p&gt;

&lt;p&gt;Your code runs on my machine only inside a sandbox with no internet, after its packages have been checked against a public malware database. I am happy to sign an NDA.&lt;/p&gt;

&lt;p&gt;The service covers JavaScript and TypeScript apps, the languages that tools like Lovable and Bolt normally produce for web apps. It does not cover other languages such as Python or Swift.&lt;/p&gt;

&lt;p&gt;You can order the scan or a cleanup through &lt;a href="https://www.upwork.com/services/product/development-it-a-cleanup-of-your-ai-written-code-with-proof-that-nothing-broke-2120785581882277469" rel="noopener noreferrer"&gt;my Upwork listing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three questions for anyone you hire
&lt;/h2&gt;

&lt;p&gt;Whoever does your cleanup, these are worth asking.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What evidence will I get that compares the old version with the new one?&lt;/li&gt;
&lt;li&gt;What can that evidence not see?&lt;/li&gt;
&lt;li&gt;Has it ever caught a mistake planted on purpose?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the only answer is "the tests pass", you now know what that is worth.&lt;/p&gt;

</description>
      <category>vibecoding</category>
      <category>ai</category>
      <category>webdev</category>
      <category>startup</category>
    </item>
    <item>
      <title>Coinbase, Kalshi and Binance app rankings API: the App Store and Google Play finance charts in 30 countries</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Fri, 30 Oct 2026 16:39:21 +0000</pubDate>
      <link>https://dev.to/glitchbound/coinbase-kalshi-and-binance-app-rankings-api-the-app-store-and-google-play-finance-charts-in-30-9jg</link>
      <guid>https://dev.to/glitchbound/coinbase-kalshi-and-binance-app-rankings-api-the-app-store-and-google-play-finance-charts-in-30-9jg</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, 15 November 2026:&lt;/strong&gt; the Google Play half of this post has ended. Google's robots.txt asks automated tools not to read the Play Store address its charts came from, and the Actor follows robots.txt. The App Store charts work as before. The Google Play figures below are a record of what those charts showed on the day they were read.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Coinbase's place in the App Store is a number people watch. On 2026-10-30 it was #37 among free finance apps on the US iPhone, and no crypto exchange was in the overall top 100 of either store in any of the 30 countries read here. Five things to know, read from both stores' top free finance and overall charts on 2026-10-30 between 16:27 and 16:32 UTC, 100 apps a chart in 30 countries, from the United States and Brazil to Japan and Nigeria.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Coinbase is outside every overall top 100
&lt;/h2&gt;

&lt;p&gt;Coinbase was in the top 100 free finance apps in 12 of the 30 countries on the iPhone and 8 on Google Play. Its best places were #37 on the iPhone in the United States and #33 on Google Play in Canada (#47 in the US). It was in neither store's overall top 100 anywhere, and neither was any other crypto exchange. The highest any exchange reached in a finance chart was Kraken at #9 on Google Play in Italy; on the iPhone it was Binance at #16 in the United Arab Emirates.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Kalshi leads US finance
&lt;/h2&gt;

&lt;p&gt;Kalshi, a prediction market, was #2 among free finance apps on the US iPhone and #1 on Google Play, and #7 and #16 in the overall US charts. It was in no other country's charts. Polymarket was #12 in US finance on the iPhone and #50 on Google Play; Robinhood was #29 and #51.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Binance travels, and stock brokers sit higher
&lt;/h2&gt;

&lt;p&gt;Binance's main app was in the iPhone finance top 100 in 23 of the 30 countries, and on Google Play in 12. Bitvavo (#17 in the Netherlands), OKX (#18 in Poland) and Luno (#32 in South Africa) ranked above it on the iPhone, and Kraken led the crypto apps on Google Play in Italy, France, Spain, Germany and Sweden. Stock brokers ranked higher still: XTB #4 in Poland, Trading 212 #5 in the United Kingdom and Trade Republic #6 in Germany and Spain, on the iPhone.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. One app's place in Apple's finance chart
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rank&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;  &lt;span class="c"&gt;# country, app id: that app's place among the country's top 100 free finance apps&lt;/span&gt;
  curl -s &lt;span class="s2"&gt;"https://itunes.apple.com/$1/rss/topfreeapplications/limit=100/genre=6015/json"&lt;/span&gt; \
    &lt;span class="o"&gt;|&lt;/span&gt; jq -r --arg id &lt;span class="s2"&gt;"$2"&lt;/span&gt; &lt;span class="s1"&gt;'.feed.entry | to_entries[] | select(.value.id.attributes["im:id"] == $id) | "\(.key + 1) \(.value["im:name"].label)"'&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
rank us 886427730
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That printed &lt;code&gt;37 Coinbase: Buy Crypto &amp;amp; Stocks&lt;/code&gt;. The same id is "Coinbase: Buy BTC, ETH, SOL" in Canada and "Coinbase: BTC, ETH, SOL kaufen" in Germany, so match on the id, not the title. No output means outside the top 100: this genre feed returns 100 apps even when asked for 200. &lt;code&gt;6015&lt;/code&gt; is Finance.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The #1 finance app is usually a bank or a wallet
&lt;/h2&gt;

&lt;p&gt;Lloyds led both stores in the United Kingdom, ING in Australia, Mercado Pago in Mexico and ShopeePay in Malaysia and Thailand; on Google Play, PhonePe led in India, PayPay in Japan and GCash in the Philippines. The same app led both stores in 10 of the 30 countries. Google Wallet led Google Play in Canada, Israel and the Netherlands, and was in the overall Google Play top 100 in 13 countries, more than any other finance app. In the United States, Capital One led the iPhone and Kalshi led Google Play.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosted
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apify.com/glitchbound/app-charts-scraper" rel="noopener noreferrer"&gt;App Store Top Charts Scraper&lt;/a&gt; and &lt;a href="https://apify.com/glitchbound/google-play-charts-scraper" rel="noopener noreferrer"&gt;Google Play Top Charts Scraper&lt;/a&gt; on Apify take a list of countries, charts and categories (&lt;code&gt;finance&lt;/code&gt; on both) and return every app with its id, rank, developer and price, and how far it moved since your previous run, so a daily run turns Coinbase's place into a series. The 30 countries above, finance and overall, were one run of each: under six minutes for the iPhone, 72 seconds for Google Play.&lt;/p&gt;

</description>
      <category>api</category>
      <category>cryptocurrency</category>
      <category>fintech</category>
      <category>mobile</category>
    </item>
    <item>
      <title>O'Reilly Auto Parts, Dollar Tree and Trane jobs API: the same jobs on two careers sites, and the id that joins them</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Fri, 30 Oct 2026 16:24:39 +0000</pubDate>
      <link>https://dev.to/glitchbound/oreilly-auto-parts-dollar-tree-and-trane-jobs-api-the-same-jobs-on-two-careers-sites-and-the-id-34h5</link>
      <guid>https://dev.to/glitchbound/oreilly-auto-parts-dollar-tree-and-trane-jobs-api-the-same-jobs-on-two-careers-sites-and-the-id-34h5</guid>
      <description>&lt;p&gt;O'Reilly Auto Parts (&lt;code&gt;careers.oreillyauto.com&lt;/code&gt;), Dollar Tree (&lt;code&gt;careers.dollartree.com&lt;/code&gt;) and Trane Technologies (&lt;code&gt;careers.tranetechnologies.com&lt;/code&gt;) show their jobs on a Phenom careers site, and the same jobs sit in the Workday site behind it. Read both and you hold every job twice. Five things to know, measured on 2026-10-29 with a few seconds between requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Two sites, one list
&lt;/h2&gt;

&lt;p&gt;The two sides report nearly the same count: O'Reilly 19,120 jobs on Phenom and 19,104 on Workday, Dollar Tree 15,537 and 15,573, Trane 1,751 and 1,746. They are not two pools of jobs, they are two views of one, refreshed at slightly different moments.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The requisition id joins them
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;req&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s -X POST https://careers.oreillyauto.com/widgets -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"ddoKey":"refineSearch","jobs":true,"from":0,"size":1,"sort":{"order":"desc","field":"dateCreated"}}'&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.refineSearch.data.jobs[0] | "\(.reqId) \(.title)"'&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Phenom: $req"&lt;/span&gt;
curl -s -X POST https://oreillyauto.wd1.myworkdayjobs.com/wday/cxs/oreillyauto/oreilly/jobs \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; -d &lt;span class="s2"&gt;"{\"limit\":5,\"offset\":0,\"searchText\":\"${req%% *}\",\"appliedFacets\":{}}"&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; jq -c &lt;span class="s1"&gt;'{total, jobs: [.jobPostings[] | {title, id: .bulletFields[0]}]}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That printed &lt;code&gt;Phenom: R209433 Parts Specialist&lt;/code&gt;, then &lt;code&gt;{"total":1,"jobs":[{"title":"Parts Specialist","id":"R209433"}]}&lt;/code&gt;. Phenom's &lt;code&gt;reqId&lt;/code&gt; is Workday's requisition id, the one in &lt;code&gt;bulletFields&lt;/code&gt; and at the end of the job's &lt;code&gt;externalPath&lt;/code&gt;. The same held for Dollar Tree (&lt;code&gt;R-363425&lt;/code&gt;) and Trane (&lt;code&gt;JR-19071&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Same jobs, different order
&lt;/h2&gt;

&lt;p&gt;O'Reilly's first 100 jobs on each side shared 52: the same openings, sorted differently. So comparing first pages, or titles and cities, says little. Collect both lists and join them on the employer plus the requisition id.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How many
&lt;/h2&gt;

&lt;p&gt;In a nightly harvest of 2.77 million jobs from 52,000 boards on 2026-10-29, 45,024 rows were a second copy of a job read on another system: 19,080 at O'Reilly, 15,525 at Dollar Tree, 1,731 at Trane, then Northrop Grumman (1,360), Applied Materials (1,126) and Morgan Stanley (1,013), each with Eightfold over Workday, and Mayo Clinic (1,035) with Eightfold over Oracle. By system, 37,725 were Phenom over Workday, 5,256 Eightfold over Workday and 2,043 Eightfold over Oracle.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Keep the system's copy, keep the front end's extras
&lt;/h2&gt;

&lt;p&gt;Key the join on the employer's name, not on each board's own label: Workday names O'Reilly by its tenant, &lt;code&gt;oreillyauto&lt;/code&gt;, and Phenom says "O'Reilly Auto Parts", so a join on the raw labels finds nothing. Keep the Workday or Oracle copy, which is read whole, but take what only the front end has before dropping it: Dollar Tree's Phenom records carry a &lt;code&gt;salaryRange&lt;/code&gt; that its Workday list does not, on 5,244 of its 15,526 jobs that night.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosted
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apify.com/glitchbound/ats-jobs-search" rel="noopener noreferrer"&gt;Job Listings API&lt;/a&gt; on Apify searches that nightly index and returns each of these jobs once, with the pay the front end carried. The &lt;a href="https://apify.com/glitchbound/ats-jobs-scraper" rel="noopener noreferrer"&gt;Company Career Page Jobs Scraper&lt;/a&gt; takes &lt;code&gt;O'Reilly Auto Parts&lt;/code&gt; or &lt;code&gt;Dollar Tree&lt;/code&gt; by name, reads both sites, and keeps one row per requisition. Every other system's public endpoint, with a tested &lt;code&gt;curl&lt;/code&gt;, is in &lt;a href="https://github.com/danielhagever/job-board-apis" rel="noopener noreferrer"&gt;job-board-apis&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>python</category>
      <category>webscraping</category>
      <category>career</category>
    </item>
    <item>
      <title>Temu, Shopee and Amazon shopping app rankings API: the App Store and Google Play shopping charts in 30 countries</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Fri, 30 Oct 2026 00:07:32 +0000</pubDate>
      <link>https://dev.to/glitchbound/temu-shopee-and-amazon-shopping-app-rankings-api-the-app-store-and-google-play-shopping-charts-in-2cgg</link>
      <guid>https://dev.to/glitchbound/temu-shopee-and-amazon-shopping-app-rankings-api-the-app-store-and-google-play-shopping-charts-in-2cgg</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, 15 November 2026:&lt;/strong&gt; the Google Play half of this post has ended. Google's robots.txt asks automated tools not to read the Play Store address its charts came from, and the Actor follows robots.txt. The App Store charts work as before. The Google Play figures below are a record of what those charts showed on the day they were read.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Temu is in the top 100 free shopping apps on the iPhone and on Google Play in all 30 countries read here, and #1 on both stores in six. Most of the other #1s are local. Five things to know, read from both stores' top free shopping charts on 2026-10-29 between 23:51 and 23:54 UTC, 100 apps a chart in 30 countries, from the United States and Brazil to Japan and Nigeria.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Temu is in the top 100 everywhere
&lt;/h2&gt;

&lt;p&gt;Temu was #1 on both stores in the United Arab Emirates, Egypt, Israel, Nigeria, Singapore and South Africa, and in the top 10 in 21 of the 30 countries on the iPhone and 23 on Google Play. Its lowest places were #61 on the iPhone in Turkey and #57 on Google Play in Indonesia. In the United States, Vinted was #1 on both stores; Temu was #2 on the iPhone and #3 on Google Play.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The #1 is local almost everywhere else
&lt;/h2&gt;

&lt;p&gt;14 brands were #1 on the iPhone across the 30 countries, and 15 on Google Play. Mercado Libre led the iPhone in Argentina, Brazil and Mexico, and Google Play in Mexico. Meesho led both stores in India, Naver's store in Korea and A101 in Turkey. Shopify's Shop app was #1 on the iPhone in France, Italy, the Netherlands and Sweden. On Google Play, AliExpress was #1 in Australia and Brazil, and Shein in Saudi Arabia.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Apple's shopping chart is the same feed with a genre
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;top&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;  &lt;span class="c"&gt;# country, genre id: the App Store's top 10 free apps in that genre&lt;/span&gt;
  curl -s &lt;span class="s2"&gt;"https://itunes.apple.com/$1/rss/topfreeapplications/limit=10/genre=$2/json"&lt;/span&gt; \
    &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.feed.entry | to_entries[] | "\(.key + 1) \(.value["im:name"].label)"'&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
top us 6024
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That printed Vinted, Temu, Walmart, Shop and Amazon Shopping as the first five. &lt;code&gt;6024&lt;/code&gt; is the Shopping genre (&lt;code&gt;6014&lt;/code&gt; is Games); &lt;code&gt;limit&lt;/code&gt; goes up to 100, and the position in &lt;code&gt;entry&lt;/code&gt; is the rank.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. One brand, many apps
&lt;/h2&gt;

&lt;p&gt;Shopee's main app is a separate app in each of the nine countries where it charted, on both stores. On the iPhone it is &lt;code&gt;959841443&lt;/code&gt; in Indonesia, &lt;code&gt;959841449&lt;/code&gt; in Vietnam and &lt;code&gt;959841453&lt;/code&gt; in Thailand, under eight developer names, from "SHOPEE THAILAND COMPANY LIMITED" to "SHPS I Private Limited" in Brazil; on Google Play it is &lt;code&gt;com.shopee.id&lt;/code&gt;, &lt;code&gt;com.shopee.vn&lt;/code&gt;, &lt;code&gt;com.shopee.th&lt;/code&gt; and so on. Counted as one brand, Shopee was #1 on the iPhone in three countries and on Google Play in six. Amazon is six iPhone apps across the 30: &lt;code&gt;297606951&lt;/code&gt; in 20 countries including the United States, &lt;code&gt;335187483&lt;/code&gt; in the United Kingdom, Spain, Italy, the Netherlands, Poland and Sweden, and one each for Germany, France, India and Japan. On Google Play it is one package, &lt;code&gt;com.amazon.mShop.android.shopping&lt;/code&gt;, in 28 countries, and a separate one in India. Keep a table that maps app ids to a brand: a developer name won't hold, and a title carries the current sale ("Shopee 11.11 Big Sale").&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The two stores pick different winners
&lt;/h2&gt;

&lt;p&gt;The same brand led both stores in 18 of the 30 countries. In the other 12 they split: in the United Kingdom, Amazon was #1 on the iPhone and GoWish, a wishlist app, on Google Play; in Japan, MUJI's app led the iPhone and Amazon led Google Play; in Canada it was Old Navy and DealSeek, in France Shop and Action. Shein shows the same gap: #1 on Google Play in Saudi Arabia, and #2 at best on the iPhone (Israel and South Africa).&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosted
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apify.com/glitchbound/app-charts-scraper" rel="noopener noreferrer"&gt;App Store Top Charts Scraper&lt;/a&gt; and &lt;a href="https://apify.com/glitchbound/google-play-charts-scraper" rel="noopener noreferrer"&gt;Google Play Top Charts Scraper&lt;/a&gt; on Apify take a list of countries, charts and categories (&lt;code&gt;shopping&lt;/code&gt; on both) and return every app with its id, rank, developer and price, and how far it moved since your previous run. The 30 countries above were one run of each: under three minutes for the iPhone, 30 seconds for Google Play.&lt;/p&gt;

</description>
      <category>api</category>
      <category>ecommerce</category>
      <category>mobile</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Roblox, Royal Match and Candy Crush rankings API: the top grossing mobile games in 30 countries on both stores</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Thu, 29 Oct 2026 23:31:03 +0000</pubDate>
      <link>https://dev.to/glitchbound/roblox-royal-match-and-candy-crush-rankings-api-the-top-grossing-mobile-games-in-30-countries-on-3no7</link>
      <guid>https://dev.to/glitchbound/roblox-royal-match-and-candy-crush-rankings-api-the-top-grossing-mobile-games-in-30-countries-on-3no7</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update, 15 November 2026:&lt;/strong&gt; the Google Play half of this post has ended. Google's robots.txt asks automated tools not to read the Play Store address its charts came from, and the Actor follows robots.txt. The App Store charts work as before. The Google Play figures below are a record of what those charts showed on the day they were read.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The top grossing chart is each store's list of the games taking the most money that day. Five things to know about it, read from both stores' top grossing and top free game charts on 2026-10-29 (23:22 UTC for Google Play, 23:24 UTC for the iPhone), 100 games a chart in 30 countries, from the United States and Brazil to Japan and Nigeria.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Five games are in the top 10 grossing almost everywhere
&lt;/h2&gt;

&lt;p&gt;Gossip Harbor was in the top 10 grossing in 27 of the 30 countries on the iPhone and 28 on Google Play. Roblox was in 25 on each, Royal Match in 25 and 21, Candy Crush Saga in 22 and 24, and Kingshot in 23 and 21.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The #1 is often a different game in each store
&lt;/h2&gt;

&lt;p&gt;In the United States, Gossip Harbor was #1 on the iPhone and Monopoly Go #2; on Google Play, Monopoly Go was #1 and Gossip Harbor #4. eFootball was #1 on the iPhone in eight countries (Brazil, India, Indonesia, Japan, Malaysia, Nigeria, Thailand and Turkey); on Google Play it was #2 to #8 in seven of them and #35 in Japan. Coin Master was #1 on Google Play in eight (the United Kingdom, Germany, France, Spain, Italy, Poland, Israel and Vietnam), and on the iPhone #1 in four of those and #2 or #3 in the rest. Mobile Legends led Google Play in Malaysia, the Philippines and Singapore.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Apple's games chart is the same feed with a genre
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;top&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;  &lt;span class="c"&gt;# country, chart: the App Store's top 10 games there&lt;/span&gt;
  curl -s &lt;span class="s2"&gt;"https://itunes.apple.com/$1/rss/$2/limit=10/genre=6014/json"&lt;/span&gt; \
    &lt;span class="o"&gt;|&lt;/span&gt; jq -r &lt;span class="s1"&gt;'.feed.entry | to_entries[] | "\(.key + 1) \(.value["im:name"].label)"'&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
top us topgrossingapplications
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That printed Gossip Harbor, Monopoly Go, Royal Match, Pokémon TCG Pocket and Roblox as the first five. &lt;code&gt;6014&lt;/code&gt; is the Games genre; &lt;code&gt;topfreeapplications&lt;/code&gt; and &lt;code&gt;toppaidapplications&lt;/code&gt; work the same way, up to 100 rows, and the position in &lt;code&gt;entry&lt;/code&gt; is the rank.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Match on the app id: the titles are translated
&lt;/h2&gt;

&lt;p&gt;Pokémon TCG Pocket was #1 on the iPhone in France and Italy, as "Le JCC Pokémon Pocket" and "GCC Pokémon Pocket"; in Spain, Argentina and Mexico it is "JCC Pokémon Pocket". Roblox is "Roblox (ロブロックス)" in Japan and "로블록스(Roblox)" in Korea. Of the iPhone's top grossing games, 58 appeared under three or more titles across the 30 countries; on Google Play, 6 did. Group by the app's id (&lt;code&gt;431946152&lt;/code&gt; and &lt;code&gt;com.roblox.client&lt;/code&gt; for Roblox), never by its name.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Free and grossing are different charts
&lt;/h2&gt;

&lt;p&gt;The top free chart is led by puzzles: Block Out! was #1 on the iPhone in nine countries and Meowdoku #1 on Google Play in twelve. Roblox is the game that sits high on both: in the top 10 free in 19 countries on the iPhone and 23 on Google Play, and #1 free on Google Play in Mexico, Malaysia, Saudi Arabia and Thailand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosted
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apify.com/glitchbound/app-charts-scraper" rel="noopener noreferrer"&gt;App Store Top Charts Scraper&lt;/a&gt; (category &lt;code&gt;games&lt;/code&gt;) and &lt;a href="https://apify.com/glitchbound/google-play-charts-scraper" rel="noopener noreferrer"&gt;Google Play Top Charts Scraper&lt;/a&gt; (&lt;code&gt;all-games&lt;/code&gt;, or one of 17 game genres) on Apify take a list of countries and charts and return every game with its rank, developer and price, and how far it moved since your previous run. Both charts in the 30 countries above took under three minutes a chart on the iPhone and 67 seconds together on Google Play.&lt;/p&gt;

</description>
      <category>api</category>
      <category>gamedev</category>
      <category>mobile</category>
      <category>datascience</category>
    </item>
    <item>
      <title>CommonSpirit Health, Crunch Fitness and The Joint jobs API: the pay in a job page's schema.org markup</title>
      <dc:creator>glitchbound</dc:creator>
      <pubDate>Thu, 29 Oct 2026 17:22:37 +0000</pubDate>
      <link>https://dev.to/glitchbound/commonspirit-health-crunch-fitness-and-the-joint-jobs-api-the-pay-in-a-job-pages-schemaorg-5d41</link>
      <guid>https://dev.to/glitchbound/commonspirit-health-crunch-fitness-and-the-joint-jobs-api-the-pay-in-a-job-pages-schemaorg-5d41</guid>
      <description>&lt;p&gt;Crunch Fitness (&lt;code&gt;crunchfitness&lt;/code&gt;), The Joint Chiropractic (&lt;code&gt;thejointchiropractic&lt;/code&gt;) and Ethos Veterinary Health (&lt;code&gt;ethosveterinaryhealth&lt;/code&gt;) hire through JazzHR, and CommonSpirit Health through Radancy. Both put a schema.org &lt;code&gt;JobPosting&lt;/code&gt; on each job's page, the markup Google for Jobs reads, and it has a field for the pay: &lt;code&gt;baseSalary&lt;/code&gt;. Five things to know about it, measured on 2026-10-29 on the eight newest jobs of five JazzHR boards and the ten newest of four Radancy sites, a few seconds between requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. JazzHR's list has no posting; the job page has a JobPosting
&lt;/h2&gt;

&lt;p&gt;A JazzHR board's &lt;code&gt;/apply&lt;/code&gt; page lists each opening's title, place and department, and nothing else. The posting, the date and the pay are on the job's own page, in a &lt;code&gt;JobPosting&lt;/code&gt;: on 7 of the 8 newest at Crunch Fitness, 7 at Bath Concepts, 6 at CentiMark, 5 at Ethos and 2 at The Joint. A page without one still shows the posting in its &lt;code&gt;#job-description&lt;/code&gt; block, but no date.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. One request per job page
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;jp&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;  &lt;span class="c"&gt;# a JazzHR job page: its schema.org JobPosting's title, date and pay&lt;/span&gt;
  curl -s &lt;span class="s2"&gt;"$1"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; perl -0ne &lt;span class="s1"&gt;'print "$1\n" while /&amp;lt;script type="application\/ld\+json"&amp;gt;(.*?)&amp;lt;\/script&amp;gt;/sg'&lt;/span&gt; \
    &lt;span class="o"&gt;|&lt;/span&gt; jq -c &lt;span class="s1"&gt;'select(."@type" == "JobPosting") | {title, datePosted, baseSalary}'&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
jp https://centimark.applytojob.com/apply/Oyh2N2Nl4F/Assistant-Roofing-Foreman
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That printed &lt;code&gt;{"title":"Assistant Roofing Foreman","datePosted":"2026-10-08","baseSalary":{"@type":"MonetaryAmount","currency":"USD","value":{"@type":"QuantitativeValue","unitText":"HOUR","minValue":27,"maxValue":33}}}&lt;/code&gt;. That page carries two &lt;code&gt;ld+json&lt;/code&gt; blocks, the employer's &lt;code&gt;Organization&lt;/code&gt; first, so the command keeps the one whose &lt;code&gt;@type&lt;/code&gt; is &lt;code&gt;JobPosting&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. baseSalary is there when the employer fills it in
&lt;/h2&gt;

&lt;p&gt;On those eight jobs a board, &lt;code&gt;baseSalary&lt;/code&gt; had numbers on 5 at Ethos, 3 at CentiMark, 2 at The Joint, 1 at Crunch Fitness (an Operations Manager, 31,200 to 41,360 a year) and none at Bath Concepts. A band is &lt;code&gt;minValue&lt;/code&gt; and &lt;code&gt;maxValue&lt;/code&gt;; a single rate is &lt;code&gt;value&lt;/code&gt;, as The Joint wrote it for a Chiropractic Manager in Colorado: &lt;code&gt;{"@type":"QuantitativeValue","unitText":"YEAR","value":110000}&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The unit can be wrong
&lt;/h2&gt;

&lt;p&gt;Ethos marks four of its five bands &lt;code&gt;"unitText":"YEAR"&lt;/code&gt;: 28 to 32, 28 to 35 and 30 to 35 for licensed veterinary technicians, 12 to 27 for a veterinary assistant. Nobody is paid $28 a year; those are hourly rates, and the fifth, 28 to 35 for another technician, says &lt;code&gt;HOUR&lt;/code&gt;. Check the numbers against the unit before trusting either.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Radancy sends the field on every job, often empty
&lt;/h2&gt;

&lt;p&gt;CommonSpirit Health filled &lt;code&gt;baseSalary&lt;/code&gt; on all ten of its newest jobs, &lt;code&gt;61.81&lt;/code&gt; to &lt;code&gt;105.18&lt;/code&gt; an hour for a Nursing House Supervisor. UnitedHealth Group, Kaiser Permanente and Comcast, on the same system, sent it on all ten too, every time as &lt;code&gt;{"@type":"MonetaryAmount","currency":"","value":{"@type":"QuantitativeValue","unitText":""}}&lt;/code&gt;. At UnitedHealth the pay is in the posting's text instead: 7 of its 8 newest postings state it, 73,188 to 109,782 a year for a Clinical Manager.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hosted
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://apify.com/glitchbound/ats-jobs-scraper" rel="noopener noreferrer"&gt;Company Career Page Jobs Scraper&lt;/a&gt; on Apify takes &lt;code&gt;CommonSpirit Health&lt;/code&gt; or &lt;code&gt;The Joint Chiropractic&lt;/code&gt; by name, and JazzHR boards as &lt;code&gt;jazzhr:crunchfitness&lt;/code&gt;. It returns the pay as &lt;code&gt;salaryMin&lt;/code&gt;, &lt;code&gt;salaryMax&lt;/code&gt;, &lt;code&gt;salaryCurrency&lt;/code&gt; and &lt;code&gt;salaryPeriod&lt;/code&gt;: from a filled &lt;code&gt;baseSalary&lt;/code&gt; (CommonSpirit's on every run), from each JazzHR job page with &lt;code&gt;includeDescription&lt;/code&gt;, and from the posting's text where the field is empty or its unit cannot be true. Every other system's public endpoint, with a tested &lt;code&gt;curl&lt;/code&gt;, is in &lt;a href="https://github.com/danielhagever/job-board-apis" rel="noopener noreferrer"&gt;job-board-apis&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>api</category>
      <category>python</category>
      <category>webscraping</category>
      <category>career</category>
    </item>
  </channel>
</rss>
