[{"data":1,"prerenderedAt":1399},["ShallowReactive",2],{"blog-en-violates-check-constraint":3,"blog-index-en":775},{"id":4,"title":5,"body":6,"category":734,"cover":735,"coverAlt":736,"description":737,"draft":738,"extension":739,"faq":740,"image":756,"keywords":757,"meta":764,"navigation":765,"ogTitle":5,"path":766,"published":767,"seo":768,"stem":769,"tldr":770,"updated":767,"__hash__":774},"blog_en\u002Fblog\u002Fviolates-check-constraint.md","\"new row for relation violates check constraint\" in Supabase",{"type":7,"value":8,"toc":720},"minimark",[9,13,24,43,46,51,62,65,184,193,208,221,225,231,239,253,259,265,324,328,337,340,346,355,366,379,383,386,404,407,414,421,427,431,438,444,452,461,465,468,481,487,490,496,499,505,511,514,520,523,528,532,540,550,556,564,568,578,581,589,593,596,605,625,630,639,653,658,667,672,676,713],[10,11,12],"p",{},"You asked your builder for a Cancel button on each order. It added one, you\npress it, and the order stays exactly as it was. The browser console has the\nreason:",[14,15,20],"pre",{"className":16,"code":18,"language":19},[17],"language-text","{\n  \"code\": \"23514\",\n  \"details\": null,\n  \"hint\": null,\n  \"message\": \"new row for relation \\\"orders\\\" violates check constraint \\\"orders_status_check\\\"\"\n}\n","text",[21,22,18],"code",{"__ignoreMap":23},"",[10,25,26,27,30,31,34,35,38,39,42],{},"Supabase \"new row for relation violates check constraint\" means one value in the\nrow your app tried to save broke a rule written on the table, and Postgres\nrefused to save any of the row. Here the rule is ",[21,28,29],{},"orders_status_check"," on your\n",[21,32,33],{},"orders"," table. When the table was made, ",[21,36,37],{},"status"," was allowed to hold a short\nlist of words, and ",[21,40,41],{},"cancelled"," was left off the list.",[10,44,45],{},"The quickest way out is one line of SQL that drops the rule, and then the button\nworks. It also removes the one check on that column that applies to every\nrequest, including the ones that never go through your app. Read the rule first.\nThe fix is nearly always a word in your code or a word added to the rule.",[47,48,50],"h2",{"id":49},"what-does-violates-check-constraint-mean","What does \"violates check constraint\" mean?",[10,52,53,54,57,58,61],{},"It means the row carried a value the table's own rule refuses, so Postgres\nturned down the whole row and wrote nothing. A check constraint is a rule such\nas ",[21,55,56],{},"status in ('pending', 'paid', 'shipped')"," or ",[21,59,60],{},"quantity > 0",", stored with the\ntable and tested on every row that is added or changed.",[10,63,64],{},"Think of the table as a box, and the check constraint as shapes cut into its\nlid. A row drops in only through a shape it fits. Your app's form hands people\nshapes that fit. When a row matches none of the holes it stays on the lid, and\nthe message says which box and which lid.",[66,67,68,84],"table",{},[69,70,71],"thead",{},[72,73,74,78,81],"tr",{},[75,76,77],"th",{},"Field",[75,79,80],{},"Example",[75,82,83],{},"What it tells you",[85,86,87,113,128,147,161],"tbody",{},[72,88,89,94,99],{},[90,91,92],"td",{},[21,93,21],{},[90,95,96],{},[21,97,98],{},"23514",[90,100,101,102,105,106],{},"Postgres's code for this error, named ",[21,103,104],{},"check_violation"," in ",[107,108,112],"a",{"href":109,"rel":110},"https:\u002F\u002Fgithub.com\u002Fpostgres\u002Fpostgres\u002Fblob\u002Fmaster\u002Fsrc\u002Fbackend\u002Futils\u002Ferrcodes.txt",[111],"nofollow","its list of codes",[72,114,115,120,125],{},[90,116,117],{},[21,118,119],{},"message",[90,121,122],{},[21,123,124],{},"new row for relation \"orders\" violates check constraint \"orders_status_check\"",[90,126,127],{},"The table, then the rule. \"Relation\" is Postgres's word for a table",[72,129,130,135,144],{},[90,131,132],{},[21,133,134],{},"details",[90,136,137,140,141],{},[21,138,139],{},"Failing row contains (…)",", or ",[21,142,143],{},"null",[90,145,146],{},"A copy of the refused row, when Postgres decides the caller may see it. A section further down covers when that is",[72,148,149,154,158],{},[90,150,151],{},[21,152,153],{},"hint",[90,155,156],{},[21,157,143],{},[90,159,160],{},"Nothing to add for this error",[72,162,163,166,171],{},[90,164,165],{},"HTTP status",[90,167,168],{},[21,169,170],{},"400 Bad Request",[90,172,173,174,177,178,183],{},"PostgREST, the part of Supabase that turns ",[21,175,176],{},"supabase.from(...)"," calls into SQL, sends two constraint codes as 409 in ",[107,179,182],{"href":180,"rel":181},"https:\u002F\u002Fgithub.com\u002FPostgREST\u002Fpostgrest\u002Fblob\u002Fmain\u002Fsrc\u002Flibrary\u002FPostgREST\u002FError.hs",[111],"its code",", and every other one, this included, as 400",[10,185,186,187,192],{},"The wording comes from\n",[107,188,191],{"href":189,"rel":190},"https:\u002F\u002Fgithub.com\u002Fpostgres\u002Fpostgres\u002Fblob\u002Fmaster\u002Fsrc\u002Fbackend\u002Fexecutor\u002FexecMain.c",[111],"the function that tests a row before it is saved",",\nand it reads the same whether the row came from your app, a trigger or the SQL\nEditor. An update counts as a new row too, so changing an existing order gets\nthe same message.",[10,194,195,196,201,202,204,205,207],{},"The rule's name usually tells you the column. When a rule is created without a\nname, Postgres makes one up, and\n",[107,197,200],{"href":198,"rel":199},"https:\u002F\u002Fgithub.com\u002Fpostgres\u002Fpostgres\u002Fblob\u002Fmaster\u002Fsrc\u002Fbackend\u002Fcatalog\u002Fheap.c",[111],"the code that does it","\ndescribes the result as \"tab_col_check\" for a rule about one column and\n\"tab_check\" for one that reads several. So ",[21,203,29],{}," is about\n",[21,206,37],{},".",[10,209,210,211,215,216,220],{},"Two neighbours of this error have posts of their own:\n",[107,212,214],{"href":213},"\u002Fblog\u002Fduplicate-key-value-violates-unique-constraint","a value that already exists","\n(23505) and ",[107,217,219],{"href":218},"\u002Fblog\u002Fviolates-foreign-key-constraint","a row that points at nothing","\n(23503). The third, an empty value in a required column, comes up further down.",[47,222,224],{"id":223},"how-do-i-see-what-the-rule-allows","How do I see what the rule allows?",[10,226,227,228,230],{},"Ask Postgres. Open the SQL Editor in your Supabase dashboard and run this, with\nyour own table's name in place of ",[21,229,33],{},":",[14,232,237],{"className":233,"code":235,"language":236,"meta":23},[234],"language-sql","select conname, pg_get_constraintdef(oid)\nfrom pg_constraint\nwhere conrelid = 'public.orders'::regclass\n  and contype = 'c';\n","sql",[21,238,235],{"__ignoreMap":23},[10,240,241,244,245,248,249,252],{},[21,242,243],{},"pg_constraint"," is Postgres's list of every rule it keeps, ",[21,246,247],{},"contype = 'c'"," picks\nout the check constraints, and ",[21,250,251],{},"pg_get_constraintdef"," prints each one as Postgres\nstores it. A list of allowed words comes back rewritten, which is why it can look\nunfamiliar:",[14,254,257],{"className":255,"code":256,"language":19},[17],"orders_status_check | CHECK ((status = ANY (ARRAY['pending'::text, 'paid'::text, 'shipped'::text])))\n",[21,258,256],{"__ignoreMap":23},[10,260,261,262,264],{},"That reads: ",[21,263,37],{}," must equal one of these three. Put it beside the value your\napp sent, letter for letter. The usual mismatches:",[266,267,268,279,297,310],"ul",{},[269,270,271,275,276,278],"li",{},[272,273,274],"strong",{},"A word the rule never listed."," ",[21,277,41],{}," here. The rule was written\nbefore the button was.",[269,280,281,284,285,288,289,292,293,296],{},[272,282,283],{},"Another spelling of a listed word."," Postgres compares text exactly, so\n",[21,286,287],{},"Paid"," and ",[21,290,291],{},"paid "," with a trailing space both fail a rule that lists ",[21,294,295],{},"paid",". A\ndropdown that sends the label it shows, rather than the value behind it, is\nwhere these usually come from.",[269,298,299,275,302,305,306,309],{},[272,300,301],{},"A number outside a range.",[21,303,304],{},"check (rating between 1 and 5)"," comes back as\n",[21,307,308],{},"((rating >= 1) AND (rating \u003C= 5))",", and a star picker that resets to 0 fails\nit.",[269,311,312,315,316,319,320,323],{},[272,313,314],{},"An empty piece of text."," A rule such as ",[21,317,318],{},"char_length(name) > 0"," refuses\n",[21,321,322],{},"''",", which is what a cleared text box sends.",[47,325,327],{"id":326},"fix-the-value-or-change-the-rule","Fix the value, or change the rule?",[10,329,330,331,333,334,336],{},"Fix the value when the rule is right, and change the rule when your app has\noutgrown it. A dropdown sending ",[21,332,287],{}," is the first case: send ",[21,335,295],{},", and the\nrule stays as it was. A new button for a state the rule has never heard of is the\nsecond.",[10,338,339],{},"To change a rule, replace it inside one transaction, so the table is never left\nwithout one:",[14,341,344],{"className":342,"code":343,"language":236,"meta":23},[234],"begin;\nalter table public.orders drop constraint orders_status_check;\nalter table public.orders add constraint orders_status_check\n  check (status in ('pending', 'paid', 'shipped', 'cancelled'));\ncommit;\n",[21,345,343],{"__ignoreMap":23},[10,347,348,349,354],{},"Adding a rule makes Postgres test every row already in the table against it,\nand\n",[107,350,353],{"href":351,"rel":352},"https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002Fcurrent\u002Fsql-altertable.html",[111],"its documentation","\nwarns that \"other updates to the table are locked out\" until the change is\ncommitted. A list that only grew passes every old row. If the add fails anyway,\nnothing in the transaction is kept, and the old rule is still in place.",[10,356,357,358,361,362,365],{},"If your builder writes the migration for you, read it before it runs. A\n",[21,359,360],{},"drop constraint"," with no ",[21,363,364],{},"add constraint"," after it is the version that removes\nthe rule.",[10,367,368,369,372,373,378],{},"A check constraint can only look at the row being saved. The same documentation\nsays Postgres \"does not support ",[21,370,371],{},"CHECK"," constraints that reference table data\nother than the new or updated row being checked\", in\n",[107,374,377],{"href":375,"rel":376},"https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002Fcurrent\u002Fddl-constraints.html",[111],"its chapter on constraints",".\nA rule that depends on another table, such as how much stock is left or who owns\nthe order, belongs in a policy or a trigger.",[47,380,382],{"id":381},"why-not-drop-the-check-constraint","Why not drop the check constraint?",[10,384,385],{},"Because it is the one rule about values that holds for every request, including\nthe ones that never touch your form.",[10,387,388,389,392,393,398,399,403],{},"Your form hands out shapes that fit the lid. Anyone can reach the box without\nit. Your app talks to Supabase with its publishable key (the ",[21,390,391],{},"anon"," key in\nolder projects), and that key sits in the code every visitor downloads, on\npurpose. Supabase's own\n",[107,394,397],{"href":395,"rel":396},"https:\u002F\u002Fsupabase.com\u002Fdocs\u002Fguides\u002Fgetting-started\u002Fapi-keys",[111],"guide to API keys","\ncalls it \"Safe to expose online: web page, mobile or desktop app, GitHub\nactions, CLIs, source code\", because \"Anyone can read it, so it only reaches\nwhat Row Level Security allows\".\n",[107,400,402],{"href":401},"\u002Fblog\u002Fwhich-api-keys-are-safe-in-your-frontend","Why that key is meant to be there",",\nif it sounds wrong.",[10,405,406],{},"So anyone who copies the key out of your app can send a row straight to your\ntable, with any value your policies let through. Row Level Security, Supabase's\nrules about who may touch which rows, decides whose rows a request may write.\nThe check constraint decides what may be in them. A signed-in customer calling\nthe API with their own login is writing their own rows, and your insert policy\nis right to let them. With no rule on the columns, they can save an order line\nfor minus three items, a review with 500 stars, or an order whose status no\nscreen in your app knows, which then drops out of every list your app shows.",[10,408,409,410,413],{},"The secret key is held to it as well. The same guide says the secret key\n(",[21,411,412],{},"service_role"," in older projects) \"has the BYPASSRLS attribute, so it skips\nevery Row Level Security policy you attach\", and a check constraint sits outside\nthe policies. Postgres tests it on every row written, whoever writes it, so a\nbug in an Edge Function that holds the secret key meets the same lid as a\nstranger.",[10,415,416,417,207],{},"Whether a stranger can write to your tables comes down to your policies. What\nthey can read is something you can see from outside: our free scan asks each\ntable your app's code names how many rows a visitor with no login can count,\nreads only the number, and takes about 20 seconds with no account.\n",[107,418,420],{"href":419},"\u002Fsecurity-scanner","Scan your app",[422,423],"diagram",{"alt":424,"caption":425,"src":426},"Three lanes to the same box. From a browser form a teal circle drops through the lid and is ticked. A direct request to \u002Frest\u002Fv1\u002Forders brings an amber star that stops on the lid at 23514. With drop constraint the lid is gone and the amber star lands among the rows.","Your form is one way to the table. A request sent straight to the API meets the same rule, and only the rule. Drop it and the odd value lands with the rest.","\u002Fblog\u002Fviolates-check-constraint\u002Fevery-way-to-the-lid-1600x780.png",[47,428,430],{"id":429},"is-this-my-policys-with-check","Is this my policy's WITH CHECK?",[10,432,433,434,437],{},"No. A policy's ",[21,435,436],{},"with check"," clause fails with a different message and a\ndifferent code:",[14,439,442],{"className":440,"code":441,"language":19},[17],"new row violates row-level security policy for table \"orders\"\n",[21,443,441],{"__ignoreMap":23},[10,445,446,447,451],{},"That one is code 42501, and\n",[107,448,450],{"href":449},"\u002Fblog\u002Fnew-row-violates-row-level-security-policy","it has its own post",". The two\nare easy to mix up, because both start with \"new row\" and both involve something\ncalled a check. \"violates check constraint\" always names a rule on the table, and\nthe fix for it is never in your policies.",[10,453,454,455,460],{},"Postgres also tests them in a fixed order. In\n",[107,456,459],{"href":457,"rel":458},"https:\u002F\u002Fgithub.com\u002Fpostgres\u002Fpostgres\u002Fblob\u002Fmaster\u002Fsrc\u002Fbackend\u002Fexecutor\u002FnodeModifyTable.c",[111],"the code that saves a row",",\n\"Check any RLS WITH CHECK policies.\" comes before \"Check the constraints of the\ntuple.\" on an insert, and an update runs the two in the same order. Tuple is\nPostgres's word for a row. So a 23514 means the row had already passed your\npolicies: the person saving it was allowed to save that row, and only the value\nwas wrong.",[47,462,464],{"id":463},"check-constraint-is-violated-by-some-row","\"check constraint … is violated by some row\"",[10,466,467],{},"That message comes from adding a rule to a table. At least one row already in\nthe table breaks the new rule, so Postgres refused to add it, and nothing\nchanged. It carries the same code, 23514.",[10,469,470,471,474,475,480],{},"You usually meet it in a migration your builder wrote: a rule such as\n",[21,472,473],{},"check (quantity > 0)"," added to a table that already holds an old order line\nwith a 0 in it. It is a new lid on a box that already has things inside, and\nPostgres tries everything inside against the new holes first. One that does not\nfit is enough to refuse the lid.\n",[107,476,479],{"href":477,"rel":478},"https:\u002F\u002Fgithub.com\u002Fpostgres\u002Fpostgres\u002Fblob\u002Fmaster\u002Fsrc\u002Fbackend\u002Fcommands\u002Ftablecmds.c",[111],"The code that adds a rule","\nwords it like this:",[14,482,485],{"className":483,"code":484,"language":19},[17],"ERROR:  check constraint \"order_items_quantity_check\" of relation \"order_items\" is violated by some row\n",[21,486,484],{"__ignoreMap":23},[10,488,489],{},"Find the rows by asking for the opposite of the rule:",[14,491,494],{"className":492,"code":493,"language":236,"meta":23},[234],"select id, quantity\nfrom public.order_items\nwhere not (quantity > 0);\n",[21,495,493],{"__ignoreMap":23},[10,497,498],{},"Then fix each one, or delete it if it should never have existed, and add the\nrule again. Both change data you cannot get back by undoing the migration, so\nmake a copy of the database first.",[10,500,501,502,230],{},"If the old rows need somebody to look at them before they change, add the rule\nnow with ",[21,503,504],{},"not valid",[14,506,509],{"className":507,"code":508,"language":236,"meta":23},[234],"alter table public.order_items\n  add constraint order_items_quantity_check check (quantity > 0) not valid;\n",[21,510,508],{"__ignoreMap":23},[10,512,513],{},"Postgres's documentation says the rule \"will still be enforced against\nsubsequent inserts or updates\", while \"the database will not assume that the\nconstraint holds for all rows in the table\" until you validate it. So an update\nto an old row that breaks the rule fails, even when the update changes some\nother column, because the updated row is a new row and gets tested. Once the old\nrows are fixed:",[14,515,518],{"className":516,"code":517,"language":236,"meta":23},[234],"alter table public.order_items validate constraint order_items_quantity_check;\n",[21,519,517],{"__ignoreMap":23},[10,521,522],{},"That reads the whole table again, and the documentation says this step \"does not\nneed to lock out concurrent updates\", so your app keeps saving while it runs.",[422,524],{"alt":525,"caption":526,"src":527},"Two lanes, each a box of rows with one amber row inside. Under add constraint the new lid is held above the box with a cross beside it, and 23514 ends the lane. Under not valid the lid goes on over the amber row, a new amber star is stopped on top and a new teal circle is ticked, then validate constraint leads to the same box with every row teal.","Adding a rule tests every row already in the table, and one old row is enough to refuse it. With not valid the rule holds for every new and changed row, and the old ones wait to be fixed.","\u002Fblog\u002Fviolates-check-constraint\u002Fa-new-lid-on-a-full-box-1600x760.png",[47,529,531],{"id":530},"why-did-an-empty-value-get-through","Why did an empty value get through?",[10,533,534,535,539],{},"Because a check constraint lets a row in when its rule comes out true or\nunknown, and a comparison with an empty value comes out unknown. Postgres's\n",[107,536,538],{"href":375,"rel":537},[111],"chapter on constraints","\nsays: \"a check constraint is satisfied if the check expression\nevaluates to true or the null value.\" Null is Postgres's word for no value at\nall.",[10,541,542,543,545,546,549],{},"So ",[21,544,473],{}," stops a minus three and lets a missing quantity\nstraight through. The ",[21,547,548],{},"where not (quantity > 0)"," search above skips empty values\nfor the same reason, which matches the rule. If the column must always hold a\nvalue, give it the not-null rule as well:",[14,551,554],{"className":552,"code":553,"language":236,"meta":23},[234],"alter table public.order_items alter column quantity set not null;\n",[21,555,553],{"__ignoreMap":23},[10,557,558,559,563],{},"That rule has an error of its own, and\n",[107,560,562],{"href":561},"\u002Fblog\u002Fnull-value-violates-not-null-constraint","the post on \"null value in column violates not-null constraint\"","\ncovers where an empty value usually comes from.",[47,565,567],{"id":566},"is-it-safe-to-show-this-error-to-your-users","Is it safe to show this error to your users?",[10,569,570,571,573,574,577],{},"No. Show a sentence of your own and keep the raw error in your logs. The detail\nline, ",[21,572,139],{},", is a copy of the row as it would have been\nsaved, and the same Postgres function writes it for this error as for the\nnot-null one. A request with your publishable key to a table with Row Level\nSecurity on gets ",[21,575,576],{},"\"details\": null",", which is what the console at the top of this\npage showed. Server code holding the secret key gets the whole row, and passes it\nto the browser if it returns the error as it came. The not-null post linked above\ngoes through both cases.",[10,579,580],{},"In the app, catch the code and say what the person can do about it:",[14,582,587],{"className":583,"code":585,"language":586,"meta":23},[584],"language-js","const { error } = await supabase.from('order_items').insert(item)\n\nif (error?.code === '23514') {\n  setMessage('Choose a quantity of 1 or more.')\n} else if (error) {\n  setMessage('Something went wrong. Please try again.')\n}\n","js",[21,588,585],{"__ignoreMap":23},[47,590,592],{"id":591},"before-you-change-a-tables-rules","Before you change a table's rules",[10,594,595],{},"Keep a copy of the database from before you rewrite rows or replace a rule, and\nhear about it when a table starts answering strangers.",[10,597,598],{},[272,599,600,604],{},[107,601,603],{"href":602},"\u002Fsupabase-backups","Reeve Care"," keeps a copy of your Supabase database:",[266,606,607,610,613,616,619,622],{},[269,608,609],{},"an encrypted copy on a schedule, on Reeve's own storage in the EU, outside your Supabase account",[269,611,612],{},"the last copy before you fix the rows a new rule refuses holds them as they were",[269,614,615],{},"each copy verified before it counts, by counting the rows in every table",[269,617,618],{},"your uploaded files as well, once you connect a Storage credential",[269,620,621],{},"a one-click restore, with a safety copy of the current state taken first",[269,623,624],{},"everything Monitor does",[10,626,627],{},[107,628,629],{"href":602},"See what Care keeps",[10,631,632],{},[272,633,634,638],{},[107,635,637],{"href":636},"\u002Fwebsite-monitoring","Reeve Monitor"," keeps checking from outside:",[266,640,641,644,647,650],{},[269,642,643],{},"the full security check every hour, including how many rows a visitor with no login can count in the tables your app reads",[269,645,646],{},"whether your app answers, every 60 seconds, and up to 10 more pages you choose",[269,648,649],{},"an alert by email, Telegram, Slack or webhook when the app goes down or a page breaks",[269,651,652],{},"a monthly report on your app, written for you",[10,654,655],{},[107,656,657],{"href":636},"See what Monitor checks",[10,659,660,666],{},[272,661,662,665],{},[107,663,664],{"href":419},"The free scan"," shows what a visitor with no login can\ncount in your tables today."," About 20 seconds, and no account.",[10,668,669],{},[107,670,671],{"href":419},"Scan your app free in 20 seconds",[47,673,675],{"id":674},"what-to-do-now","What to do now",[677,678,679],"key-takeaways",{},[266,680,681,684,690,693,696,706],{},[269,682,683],{},"Read the table and the rule in the message. A rule created without a name is called after its table and column.",[269,685,686,687,689],{},"Print the rule with ",[21,688,251],{}," and compare it with the value your app sent, capitals and spaces included.",[269,691,692],{},"Fix the value when the rule is right. When your app has outgrown the rule, drop it and add the new one in a single transaction.",[269,694,695],{},"Keep the rule. Your publishable key is public, and the rule on the table holds for every request, the secret key's included.",[269,697,698,699,702,703,705],{},"For \"is violated by some row\", find the old rows with ",[21,700,701],{},"where not (…)",", copy the database, then fix them, or add the rule ",[21,704,504],{}," and validate it later.",[269,707,708,709,712],{},"Add ",[21,710,711],{},"not null"," as well when the column must always hold a value.",[10,714,715,716,719],{},"Start with the rule's definition, because it decides which of the two fixes is\nright. If the fix changes rows already in the table,\n",[107,717,718],{"href":602},"keep a copy of the database"," from before you run it.",{"title":23,"searchDepth":721,"depth":721,"links":722},3,[723,725,726,727,728,729,730,731,732,733],{"id":49,"depth":724,"text":50},2,{"id":223,"depth":724,"text":224},{"id":326,"depth":724,"text":327},{"id":381,"depth":724,"text":382},{"id":429,"depth":724,"text":430},{"id":463,"depth":724,"text":464},{"id":530,"depth":724,"text":531},{"id":566,"depth":724,"text":567},{"id":591,"depth":724,"text":592},{"id":674,"depth":724,"text":675},"Security basics","\u002Fblog\u002Fviolates-check-constraint\u002Fcover-1200x630.png","The lid of a box with a circle, a square and a triangle cut into it, and an amber star resting on top that fits none of them.","Supabase \"violates check constraint\": a value in the row broke a rule on the table. How to read the rule, and why you should keep it.",false,"md",[741,744,747,750,753],{"q":742,"a":743},"What does new row for relation violates check constraint mean?","It means a row your app tried to save had a value that broke a rule written on the table, so Postgres refused the whole row and saved nothing. The message names the table and the rule. A rule created without a name is called after its table and column, such as orders_status_check. The code is 23514, and from a Supabase app it arrives as HTTP 400.",{"q":745,"a":746},"How do I see what a check constraint allows?","In the SQL Editor, run select conname, pg_get_constraintdef(oid) from pg_constraint where conrelid = 'public.orders'::regclass and contype = 'c'; with your own table name in place of orders. Postgres prints each rule as it stores it, so a list of allowed words comes back as = ANY (ARRAY[...]). Compare it with the exact value your app sent, capitals included.",{"q":748,"a":749},"Should I drop the check constraint to make the error go away?","Change the value your app sends, or replace the rule with one that fits what your app does now. The publishable key in your app is meant to be public, so rows can reach the table without your form, and the rule on the table is what still holds for them. The secret key skips your Row Level Security policies and is still held to a check constraint.",{"q":751,"a":752},"Why does adding a check constraint fail with is violated by some row?","Because Postgres tests every row already in the table before it adds the rule, and at least one of them breaks it. Nothing was changed. Find those rows by selecting where not (your rule), fix or remove them, and add the rule again. Or add it with not valid, which holds new and changed rows to it at once, and validate it when the old rows are fixed.",{"q":754,"a":755},"Is violates check constraint a row-level security error?","No. A policy's with check clause fails with new row violates row-level security policy and code 42501. Violates check constraint names a rule on the table itself, with code 23514. Postgres tests the policies first, so a 23514 means the row had already passed them.","\u002Fblog\u002Fviolates-check-constraint\u002Fcard-800x500.png",[758,759,760,761,762,763,251],"violates check constraint","new row for relation violates check constraint","supabase check constraint","postgres check constraint error","check constraint is violated by some row","postgres 23514",{},true,"\u002Fblog\u002Fviolates-check-constraint","2026-11-25",{"title":5,"description":737},"blog\u002Fviolates-check-constraint",[771,772,773],"Supabase \"new row for relation violates check constraint\" (Postgres code 23514, HTTP 400 in your app) means one value in the row broke a rule written on the table. The message names the table and the rule. Nothing was saved.","Print the rule with pg_get_constraintdef and change the value your app sends. If your app has outgrown the rule, replace it in one transaction. Adding a rule that rows already break fails with \"is violated by some row\".","Keep the rule. Your publishable key is meant to be public, so rows can reach the table without your form, and the secret key skips your policies but still meets this check.","eUlgGlZvjJnRdT6h7Cr_hpX4q0D4HlsMrUmmBLugME8",[776,777,783,789,795,801,807,813,819,826,832,838,844,850,856,862,868,874,880,885,890,896,902,908,914,920,926,932,938,944,950,956,962,967,973,979,985,991,997,1003,1009,1015,1021,1027,1033,1039,1045,1051,1057,1063,1069,1075,1081,1087,1093,1099,1105,1111,1117,1123,1129,1135,1140,1146,1152,1158,1164,1170,1176,1182,1188,1194,1200,1206,1212,1218,1224,1230,1236,1242,1248,1254,1260,1266,1272,1278,1284,1290,1296,1302,1308,1314,1319,1325,1331,1337,1343,1349,1355,1361,1366,1372,1378,1384,1389,1395],{"path":766,"title":5,"description":737,"published":767,"category":734,"image":756,"draft":738},{"path":778,"title":779,"description":780,"published":781,"category":734,"image":782,"draft":738},"\u002Fblog\u002Foperator-does-not-exist-uuid-text","Supabase \"operator does not exist: uuid = text\" in a policy","Supabase \"operator does not exist: uuid = text\": auth.uid() is a uuid and your column is text. Make them match, and never loosen the policy.","2026-11-24","\u002Fblog\u002Foperator-does-not-exist-uuid-text\u002Fcard-800x500.png",{"path":784,"title":785,"description":786,"published":787,"category":734,"image":788,"draft":738},"\u002Fblog\u002Fcould-not-find-a-relationship-between","Supabase PGRST200: \"Could not find a relationship between\"","Supabase \"Could not find a relationship between\" means no foreign key links the two tables. Add one, use ! when there are two, and keep views under RLS.","2026-11-23","\u002Fblog\u002Fcould-not-find-a-relationship-between\u002Fcard-800x500.png",{"path":790,"title":791,"description":792,"published":793,"category":734,"image":794,"draft":738},"\u002Fblog\u002Fsupabase-only-returns-1000-rows","Supabase only returns 1000 rows: how to get the rest","Supabase only returns 1000 rows per request because of its Max rows setting. How to page through the rest, count them, and what the cap is there for.","2026-11-22","\u002Fblog\u002Fsupabase-only-returns-1000-rows\u002Fcard-800x500.png",{"path":796,"title":797,"description":798,"published":799,"category":734,"image":800,"draft":738},"\u002Fblog\u002Ferror-running-hook-uri","\"Error running hook URI\" in Supabase: why nobody can sign in","\"Error running hook URI\" means a Supabase Auth hook failed, so sign-in or sign-up fails for everyone. Where the real error is, and the safe fix.","2026-11-21","\u002Fblog\u002Ferror-running-hook-uri\u002Fcard-800x500.png",{"path":802,"title":803,"description":804,"published":805,"category":734,"image":806,"draft":738},"\u002Fblog\u002Fsupabase-realtime-channel-error","Supabase Realtime CHANNEL_ERROR: why a subscription gets nothing","Supabase Realtime CHANNEL_ERROR, or no events at all: usually a rule doing its job. How to read the reason and fix it without opening your data.","2026-11-20","\u002Fblog\u002Fsupabase-realtime-channel-error\u002Fcard-800x500.png",{"path":808,"title":809,"description":810,"published":811,"category":734,"image":812,"draft":738},"\u002Fblog\u002Ferr-ssl-version-or-cipher-mismatch","ERR_SSL_VERSION_OR_CIPHER_MISMATCH on a new custom domain","ERR_SSL_VERSION_OR_CIPHER_MISMATCH on a domain you just connected: why the name has no certificate yet, and when to wait, go DNS only or shorten the name.","2026-11-19","\u002Fblog\u002Ferr-ssl-version-or-cipher-mismatch\u002Fcard-800x500.png",{"path":814,"title":815,"description":816,"published":817,"category":734,"image":818,"draft":738},"\u002Fblog\u002Fapplication-error-a-client-side-exception-has-occurred","\"Application error: a client-side exception has occurred\" in Next.js","Application error: a client-side exception has occurred on your v0 or Next.js app: where the real error is and how to fix it.","2026-11-18","\u002Fblog\u002Fapplication-error-a-client-side-exception-has-occurred\u002Fcard-800x500.png",{"path":820,"title":821,"description":822,"published":823,"category":824,"image":825,"draft":738},"\u002Fblog\u002Freplit-database-rollback","Replit database rollback: does a checkpoint bring your data back?","A Replit database rollback restores the development database only when you ask. Your live data has a restore of its own. Which one you need, and how.","2026-11-17","Backups","\u002Fblog\u002Freplit-database-rollback\u002Fcard-800x500.png",{"path":827,"title":828,"description":829,"published":830,"category":734,"image":831,"draft":738},"\u002Fblog\u002Fthe-object-exceeded-the-maximum-allowed-size","\"The object exceeded the maximum allowed size\" in Supabase Storage","\"The object exceeded the maximum allowed size\" means a Supabase Storage limit refused the file. Which of two limits did it, and how to raise it.","2026-11-16","\u002Fblog\u002Fthe-object-exceeded-the-maximum-allowed-size\u002Fcard-800x500.png",{"path":833,"title":834,"description":835,"published":836,"category":734,"image":837,"draft":738},"\u002Fblog\u002Fsignups-not-allowed-for-this-instance","\"Signups not allowed for this instance\" in Supabase","\"Signups not allowed for this instance\" is Supabase refusing new accounts. Which switch does it, and why hiding your sign-up form is not the same thing.","2026-11-15","\u002Fblog\u002Fsignups-not-allowed-for-this-instance\u002Fcard-800x500.png",{"path":839,"title":840,"description":841,"published":842,"category":734,"image":843,"draft":738},"\u002Fblog\u002Fis-lovable-down-or-your-app","Is Lovable down, or is it your app? How to tell","Is Lovable down, or is it your app? Its editor, hosting and backend fail separately, and a paused backend looks like an outage. Here is how to tell.","2026-11-14","\u002Fblog\u002Fis-lovable-down-or-your-app\u002Fcard-800x500.png",{"path":845,"title":846,"description":847,"published":848,"category":734,"image":849,"draft":738},"\u002Fblog\u002Ffailed-to-load-module-script","\"Failed to load module script\": the blank page after a deploy","Failed to load module script and a blank page after a deploy: how to tell if one visitor or every visitor sees it, and the fix for each case.","2026-11-13","\u002Fblog\u002Ffailed-to-load-module-script\u002Fcard-800x500.png",{"path":851,"title":852,"description":853,"published":854,"category":734,"image":855,"draft":738},"\u002Fblog\u002Ferr-too-many-redirects","ERR_TOO_MANY_REDIRECTS on a custom domain behind Cloudflare","ERR_TOO_MANY_REDIRECTS after you put Cloudflare in front of your site: why the loop happens, and the fix that keeps your sign-ins encrypted.","2026-11-12","\u002Fblog\u002Ferr-too-many-redirects\u002Fcard-800x500.png",{"path":857,"title":858,"description":859,"published":860,"category":824,"image":861,"draft":738},"\u002Fblog\u002Flovable-cloud-backup","Lovable Cloud backup: does Lovable back up your database?","A Lovable Cloud backup is taken daily and kept about 14 days, in the same backend as your data. What it holds, who can restore it, how to keep a copy.","2026-11-11","\u002Fblog\u002Flovable-cloud-backup\u002Fcard-800x500.png",{"path":863,"title":864,"description":865,"published":866,"category":734,"image":867,"draft":738},"\u002Fblog\u002Fthis-site-cant-be-reached","\"This site can't be reached\" on your own domain: read the code","Your own site says \"This site can't be reached\". The code under the headline tells you whether the name, the host or the network failed, and what to fix.","2026-11-10","\u002Fblog\u002Fthis-site-cant-be-reached\u002Fcard-800x500.png",{"path":869,"title":870,"description":871,"published":872,"category":734,"image":873,"draft":738},"\u002Fblog\u002Fmax-client-connections-reached","Supabase \"max client connections reached\", explained","Supabase \"max client connections reached\" means the pooler has no room for one more client. The port in your connection string decides the limit.","2026-11-09","\u002Fblog\u002Fmax-client-connections-reached\u002Fcard-800x500.png",{"path":875,"title":876,"description":877,"published":878,"category":734,"image":879,"draft":738},"\u002Fblog\u002Funsupported-provider-provider-is-not-enabled","\"Unsupported provider: provider is not enabled\" in Supabase","\"Unsupported provider: provider is not enabled\" means Google sign-in is off in your Supabase project. How to turn it on, and fix redirect_uri_mismatch.","2026-11-08","\u002Fblog\u002Funsupported-provider-provider-is-not-enabled\u002Fcard-800x500.png",{"path":218,"title":881,"description":882,"published":883,"category":734,"image":884,"draft":738},"\"violates foreign key constraint\" on insert in Supabase","Supabase \"insert or update on table violates foreign key constraint\": your row points at a row that is not there. Which one, why, and the fix.","2026-11-07","\u002Fblog\u002Fviolates-foreign-key-constraint\u002Fcard-800x500.png",{"path":561,"title":886,"description":887,"published":888,"category":734,"image":889,"draft":738},"\"null value in column violates not-null constraint\" in Supabase","Supabase \"null value in column violates not-null constraint\": a required column arrived empty. Where the null came from, and the fix.","2026-11-06","\u002Fblog\u002Fnull-value-violates-not-null-constraint\u002Fcard-800x500.png",{"path":891,"title":892,"description":893,"published":894,"category":734,"image":895,"draft":738},"\u002Fblog\u002Fauth-session-missing","Supabase \"Auth session missing!\": where the session went","\"Auth session missing!\" is supabase-js finding no signed-in session and stopping before it asks Supabase. Where the session went, and the fix for each.","2026-11-05","\u002Fblog\u002Fauth-session-missing\u002Fcard-800x500.png",{"path":897,"title":898,"description":899,"published":900,"category":734,"image":901,"draft":738},"\u002Fblog\u002Finvalid-claim-missing-sub-claim","Supabase \"invalid claim: missing sub claim\": nobody is signed in","\"invalid claim: missing sub claim\" means Supabase Auth got a genuine token that names no user: your project key, sent where a session belongs.","2026-11-04","\u002Fblog\u002Finvalid-claim-missing-sub-claim\u002Fcard-800x500.png",{"path":903,"title":904,"description":905,"published":906,"category":734,"image":907,"draft":738},"\u002Fblog\u002Ffailed-to-send-a-request-to-the-edge-function","\"Failed to send a request to the Edge Function\" in Supabase","\"Failed to send a request to the Edge Function\" means the browser got no reply it could read. Its console says why, and whether your function ran.","2026-11-03","\u002Fblog\u002Ffailed-to-send-a-request-to-the-edge-function\u002Fcard-800x500.png",{"path":909,"title":910,"description":911,"published":912,"category":734,"image":913,"draft":738},"\u002Fblog\u002Fsupabase-auth-redirects-to-localhost","Why Supabase email links redirect to localhost:3000","A Supabase redirect to localhost:3000 means the Site URL was never changed, or your address is missing from Redirect URLs. The fix, and the wildcard to avoid.","2026-11-02","\u002Fblog\u002Fsupabase-auth-redirects-to-localhost\u002Fcard-800x500.png",{"path":915,"title":916,"description":917,"published":918,"category":734,"image":919,"draft":738},"\u002Fblog\u002Femail-link-is-invalid-or-has-expired","Supabase \"Email link is invalid or has expired\" on a fresh link","On a link sent a minute ago, Supabase's \"Email link is invalid or has expired\" usually means a mail filter used it first. How to check and fix it.","2026-11-01","\u002Fblog\u002Femail-link-is-invalid-or-has-expired\u002Fcard-800x500.png",{"path":921,"title":922,"description":923,"published":924,"category":734,"image":925,"draft":738},"\u002Fblog\u002Fcanceling-statement-due-to-statement-timeout","Supabase \"canceling statement due to statement timeout\", explained","Supabase \"canceling statement due to statement timeout\" means a query outran its role's limit, 3 seconds for a visitor. Check the RLS policy first.","2026-10-31","\u002Fblog\u002Fcanceling-statement-due-to-statement-timeout\u002Fcard-800x500.png",{"path":927,"title":928,"description":929,"published":930,"category":824,"image":931,"draft":738},"\u002Fblog\u002Fdatabase-error-deleting-user","\"Database error deleting user\" in Supabase, and what goes with it","\"Database error deleting user\" in Supabase means your database refused the delete. The reason is in your logs, and the fix decides what else is deleted.","2026-10-30","\u002Fblog\u002Fdatabase-error-deleting-user\u002Fcard-800x500.png",{"path":933,"title":934,"description":935,"published":936,"category":734,"image":937,"draft":738},"\u002Fblog\u002Fstripe-webhook-no-signatures-found","\"No signatures found matching the expected signature\" in Supabase","A Stripe webhook in a Supabase Edge Function that says \"No signatures found matching the expected signature\" has one of two causes. Never stop checking.","2026-10-29","\u002Fblog\u002Fstripe-webhook-no-signatures-found\u002Fcard-800x500.png",{"path":939,"title":940,"description":941,"published":942,"category":734,"image":943,"draft":738},"\u002Fblog\u002Fsupabase-invalid-login","\"Invalid login credentials\" in Supabase: the three causes","Supabase says \"Invalid login credentials\" for a wrong password, an unknown email and a Google account. How to tell which, and why it is vague.","2026-10-28","\u002Fblog\u002Fsupabase-invalid-login\u002Fcard-800x500.png",{"path":945,"title":946,"description":947,"published":948,"category":734,"image":949,"draft":738},"\u002Fblog\u002Fedge-function-returned-a-non-2xx-status-code","\"Edge Function returned a non-2xx status code\" in Supabase","\"Edge Function returned a non-2xx status code\" means your Supabase function answered with an error. Here is where to read the real one.","2026-10-27","\u002Fblog\u002Fedge-function-returned-a-non-2xx-status-code\u002Fcard-800x500.png",{"path":951,"title":952,"description":953,"published":954,"category":734,"image":955,"draft":738},"\u002Fblog\u002Fcertificate-not-trusted","Certificate not trusted: the three causes besides expiry","Certificate not trusted, and the date is fine? It names another address, it signed itself, or its chain is missing a link. How to tell which.","2026-10-26","\u002Fblog\u002Fcertificate-not-trusted\u002Fcard-800x500.png",{"path":957,"title":958,"description":959,"published":960,"category":734,"image":961,"draft":738},"\u002Fblog\u002Finvalid-input-syntax-for-type-uuid","Supabase \"invalid input syntax for type uuid\": read the quotes","Supabase \"invalid input syntax for type uuid\" means your app sent something that is not an id. Read the quotes, hold the query, keep the column.","2026-10-25","\u002Fblog\u002Finvalid-input-syntax-for-type-uuid\u002Fcard-800x500.png",{"path":213,"title":963,"description":964,"published":965,"category":734,"image":966,"draft":738},"Supabase \"duplicate key value violates unique constraint\", explained","Supabase \"duplicate key value violates unique constraint\" means the value is already taken. Find the column, pick a fix, and keep the value off screen.","2026-10-24","\u002Fblog\u002Fduplicate-key-value-violates-unique-constraint\u002Fcard-800x500.png",{"path":968,"title":969,"description":970,"published":971,"category":734,"image":972,"draft":738},"\u002Fblog\u002Fsupabase-relation-does-not-exist","Supabase \"relation does not exist\" when the table is right there","Supabase \"relation does not exist\" or PGRST205 means no table matches the name and schema your query used. Four checks, and what exposing a schema opens.","2026-10-23","\u002Fblog\u002Fsupabase-relation-does-not-exist\u002Fcard-800x500.png",{"path":974,"title":975,"description":976,"published":977,"category":734,"image":978,"draft":738},"\u002Fblog\u002Fsupabase-function-not-found","Supabase PGRST202: \"Could not find the function in the schema cache\"","Supabase \"Could not find the function in the schema cache\" lists the argument names your app sent. Compare them with the function first.","2026-10-22","\u002Fblog\u002Fsupabase-function-not-found\u002Fcard-800x500.png",{"path":980,"title":981,"description":982,"published":983,"category":734,"image":984,"draft":738},"\u002Fblog\u002Fsupabase-schema-cache-column-error","Supabase PGRST204: \"Could not find the column in the schema cache\"","Supabase \"Could not find the column in the schema cache\" usually means a name mismatch. Four checks in order, and the one-line reload.","2026-10-21","\u002Fblog\u002Fsupabase-schema-cache-column-error\u002Fcard-800x500.png",{"path":986,"title":987,"description":988,"published":989,"category":734,"image":990,"draft":738},"\u002Fblog\u002Fsupabase-email-rate-limit-exceeded","Supabase \"Email Rate Limit Exceeded\": two limits, one error code","Supabase \"Email Rate Limit Exceeded\" caps every email your project sends: 2 an hour on the built-in sender. What it counts and how to lift it.","2026-10-20","\u002Fblog\u002Fsupabase-email-rate-limit-exceeded\u002Fcard-800x500.png",{"path":992,"title":993,"description":994,"published":995,"category":734,"image":996,"draft":738},"\u002Fblog\u002Fsupabase-users-logged-out","Supabase \"Invalid Refresh Token: Refresh Token Not Found\": 3 causes","Supabase \"Invalid Refresh Token: Refresh Token Not Found\" logs your users out. Three causes, and how the auth log tells them apart.","2026-10-19","\u002Fblog\u002Fsupabase-users-logged-out\u002Fcard-800x500.png",{"path":998,"title":999,"description":1000,"published":1001,"category":734,"image":1002,"draft":738},"\u002Fblog\u002Fpermission-denied-for-schema-public","Supabase \"permission denied for schema public\": three causes","Supabase \"permission denied for schema public\" means a missing schema grant. What removed it, and the line that puts it back.","2026-10-18","\u002Fblog\u002Fpermission-denied-for-schema-public\u002Fcard-800x500.png",{"path":1004,"title":1005,"description":1006,"published":1007,"category":734,"image":1008,"draft":738},"\u002Fblog\u002Fsupabase-bucket-not-found","Supabase \"Bucket not found\": the three things it means","Supabase \"Bucket not found\" is one of three things: a public link to a private bucket, a name that is not an exact match, or the wrong project.","2026-10-17","\u002Fblog\u002Fsupabase-bucket-not-found\u002Fcard-800x500.png",{"path":1010,"title":1011,"description":1012,"published":1013,"category":734,"image":1014,"draft":738},"\u002Fblog\u002Fsupabase-invalid-jwt","Supabase invalid JWT: which key stopped working?","A Supabase invalid JWT error is PGRST301, and it means a signed token failed verification. On a newer project that token is your user, not your API key.","2026-10-16","\u002Fblog\u002Fsupabase-invalid-jwt\u002Fcard-800x500.png",{"path":1016,"title":1017,"description":1018,"published":1019,"category":734,"image":1020,"draft":738},"\u002Fblog\u002Fsupabase-single-row-error","Supabase \"multiple (or no) rows returned\" usually means no rows","Supabase returns PGRST116, \"JSON object requested, multiple (or no) rows returned\", when your query found none. A row your rules hide looks missing.","2026-10-15","\u002Fblog\u002Fsupabase-single-row-error\u002Fcard-800x500.png",{"path":1022,"title":1023,"description":1024,"published":1025,"category":734,"image":1026,"draft":738},"\u002Fblog\u002Fdatabase-error-saving-new-user","\"Database error saving new user\" in Supabase: how to fix it","\"Database error saving new user\" means something attached to your Supabase signup failed and it was all rolled back. The real error is in your logs.","2026-10-14","\u002Fblog\u002Fdatabase-error-saving-new-user\u002Fcard-800x500.png",{"path":1028,"title":1029,"description":1030,"published":1031,"category":734,"image":1032,"draft":738},"\u002Fblog\u002Fwhat-is-supabase","What is Supabase? The database your builder picked for you","What is Supabase: the database, login and file storage behind your app. Supabase runs the servers; the rules about who reads your rows are yours.","2026-10-13","\u002Fblog\u002Fwhat-is-supabase\u002Fcard-800x500.png",{"path":1034,"title":1035,"description":1036,"published":1037,"category":734,"image":1038,"draft":738},"\u002Fblog\u002Faws-access-key-exposed-in-frontend","An AWS access key exposed in your frontend is not like an OpenAI key","An AWS access key exposed in your frontend reads and writes your storage. The fix is usually a presigned URL rather than a new key.","2026-10-12","\u002Fblog\u002Faws-access-key-exposed-in-frontend\u002Fcard-800x500.png",{"path":1040,"title":1041,"description":1042,"published":1043,"category":734,"image":1044,"draft":738},"\u002Fblog\u002Fstorage-upload-violates-row-level-security","\"Row-level security policy for table objects\" on upload","\"New row violates row-level security policy for table objects\" means your upload has no insert rule. Making the bucket public does not add one.","2026-10-11","\u002Fblog\u002Fstorage-upload-violates-row-level-security\u002Fcard-800x500.png",{"path":1046,"title":1047,"description":1048,"published":1049,"category":734,"image":1050,"draft":738},"\u002Fblog\u002Fbase44-security-scan","Base44 security scan: the one thing only it can see","The Base44 security scan checks seven kinds of problem from inside your app. Here is the half it reads that nothing outside can, and the half it never looks at.","2026-10-10","\u002Fblog\u002Fbase44-security-scan\u002Fcard-800x500.png",{"path":1052,"title":1053,"description":1054,"published":1055,"category":734,"image":1056,"draft":738},"\u002Fblog\u002Fapi-key-leaked-what-to-do","Your API key leaked. Here is the order to do things in","An API key leaked and you want to know what to do first. Not every key in your frontend is one, and the order matters more than the speed.","2026-10-09","\u002Fblog\u002Fapi-key-leaked-what-to-do\u002Fcard-800x500.png",{"path":1058,"title":1059,"description":1060,"published":1061,"category":734,"image":1062,"draft":738},"\u002Fblog\u002Finfinite-recursion-in-policy-for-relation","\"Infinite recursion detected in policy\" without disabling RLS","\"Infinite recursion detected in policy for relation\" means your Supabase policy asked the table it protects. Here is how to break the circle.","2026-10-08","\u002Fblog\u002Finfinite-recursion-in-policy-for-relation\u002Fcard-800x500.png",{"path":1064,"title":1065,"description":1066,"published":1067,"category":734,"image":1068,"draft":738},"\u002Fblog\u002Fno-api-key-found-in-request","\"No API key found in request\" in Supabase, and the wrong fix","\"No API key found in request\" means your Supabase request arrived without a key. Most answers you find point at your database rules instead.","2026-10-07","\u002Fblog\u002Fno-api-key-found-in-request\u002Fcard-800x500.png",{"path":1070,"title":1071,"description":1072,"published":1073,"category":734,"image":1074,"draft":738},"\u002Fblog\u002Fis-base44-safe","Is Base44 safe? What 5,442 live Base44 apps showed","Is Base44 safe? We ran nine checks on 5,442 live Base44 apps. Almost all scored B for reasons the owner never chose, and one question nobody can answer.","2026-10-06","\u002Fblog\u002Fis-base44-safe\u002Fcard-800x500.png",{"path":1076,"title":1077,"description":1078,"published":1079,"category":734,"image":1080,"draft":738},"\u002Fblog\u002Fmove-a-secret-to-an-edge-function","Hide an API key: move it to a Supabase Edge Function","Hiding an API key means moving it off the browser, and a Supabase Edge Function is the smallest place to put it. Two steps around the move matter more.","2026-10-05","\u002Fblog\u002Fmove-a-secret-to-an-edge-function\u002Fcard-800x500.png",{"path":1082,"title":1083,"description":1084,"published":1085,"category":734,"image":1086,"draft":738},"\u002Fblog\u002Fenv-file-exposed-on-your-server","Is your .env file exposed? The twelve paths to check","Is your .env file exposed on your own web server? Twelve addresses tell you in a minute, and a hit means everything in the file is already public.","2026-10-04","\u002Fblog\u002Fenv-file-exposed-on-your-server\u002Fcard-800x500.png",{"path":1088,"title":1089,"description":1090,"published":1091,"category":734,"image":1092,"draft":738},"\u002Fblog\u002Fis-v0-safe","v0 security: all 1,790 v0 apps we scanned got an A","v0 security, measured on 1,790 live v0 apps: every one graded A. Only 17 named a database, and that is most of what the A is measuring.","2026-10-03","\u002Fblog\u002Fis-v0-safe\u002Fcard-800x500.png",{"path":1094,"title":1095,"description":1096,"published":1097,"category":734,"image":1098,"draft":738},"\u002Fblog\u002Fis-bolt-safe","Is Bolt safe? What 1,123 live Bolt apps showed","Is Bolt safe? We ran nine checks on 1,123 live Bolt apps. The hosting came back clean. The findings were API keys and open tables inside the apps.","2026-10-02","\u002Fblog\u002Fis-bolt-safe\u002Fcard-800x500.png",{"path":1100,"title":1101,"description":1102,"published":1103,"category":734,"image":1104,"draft":738},"\u002Fblog\u002Fis-supabase-down-or-your-app","Is Supabase down, or is it your app? How to tell","Is Supabase down, or is it your app? A paused project, a full database and a bug of your own all look like an outage. Four checks tell them apart.","2026-10-01","\u002Fblog\u002Fis-supabase-down-or-your-app\u002Fcard-800x500.png",{"path":1106,"title":1107,"description":1108,"published":1109,"category":734,"image":1110,"draft":738},"\u002Fblog\u002Fdoes-supabase-encrypt-my-data","Does Supabase encrypt my data? Yes. Here is what it stops","Does Supabase encrypt data? Yes: AES-256 at rest, TLS in transit, SOC 2 and ISO 27001 audited. What each one covers, and the leak none of them stops.","2026-09-30","\u002Fblog\u002Fdoes-supabase-encrypt-my-data\u002Fcard-800x500.png",{"path":1112,"title":1113,"description":1114,"published":1115,"category":734,"image":1116,"draft":738},"\u002Fblog\u002Fsupabase-free-plan-limits","Supabase free plan limits, and what happens at each one","The Supabase free plan limits you to 500 MB of database and 5 GB of egress, with no backups. What happens as you cross each line, and what $25 changes.","2026-09-29","\u002Fblog\u002Fsupabase-free-plan-limits\u002Fcard-800x500.png",{"path":1118,"title":1119,"description":1120,"published":1121,"category":824,"image":1122,"draft":738},"\u002Fblog\u002Ftest-your-supabase-backup","Test your Supabase backup before the day you need it","How to test your Supabase backup: restore it into a spare project, compare the row counts, sign in, and check for the line a cut-off file is missing.","2026-09-28","\u002Fblog\u002Ftest-your-supabase-backup\u002Fcard-800x500.png",{"path":1124,"title":1125,"description":1126,"published":1127,"category":824,"image":1128,"draft":738},"\u002Fblog\u002Fsupabase-backup-github-action","Free Supabase backup with a GitHub Action, and the catch","A Supabase backup GitHub Action costs nothing and suits a lot of apps. The workflow, the connection string that works on GitHub, and the egress each run uses.","2026-09-27","\u002Fblog\u002Fsupabase-backup-github-action\u002Fcard-800x500.png",{"path":1130,"title":1131,"description":1132,"published":1133,"category":824,"image":1134,"draft":738},"\u002Fblog\u002Fdownload-your-supabase-backup","Why you can't download your Supabase backup","You can't download your Supabase backup on a current project, because the daily copy is a physical snapshot. How to tell, and how to hold a copy of your own.","2026-09-26","\u002Fblog\u002Fdownload-your-supabase-backup\u002Fcard-800x500.png",{"path":1136,"title":1137,"description":1138,"published":1133,"category":734,"image":1139,"draft":738},"\u002Fblog\u002Fsupabase-permission-denied-for-table","Supabase \"permission denied for table\": the missing grant","From October 30, a new Supabase table answers \"permission denied for table\" until you grant access. The grant the email shows is half the fix.","\u002Fblog\u002Fsupabase-permission-denied-for-table\u002Fcard-800x500.png",{"path":1141,"title":1142,"description":1143,"published":1144,"category":734,"image":1145,"draft":738},"\u002Fblog\u002Fopen-api-endpoint-exposed","Is an open API endpoint a security problem? Look at the JSON","Your scan flagged an open API endpoint. Whether it matters depends on what came back, and most of the ones we found were the platform's own.","2026-09-25","\u002Fblog\u002Fopen-api-endpoint-exposed\u002Fcard-800x500.png",{"path":1147,"title":1148,"description":1149,"published":1150,"category":734,"image":1151,"draft":738},"\u002Fblog\u002Flovable-security-scan","Lovable security scan: the one thing it cannot prove","Lovable security scan: what the Quick and Deep scans check, when each one runs, and the one thing no scan from inside your project can prove.","2026-09-24","\u002Fblog\u002Flovable-security-scan\u002Fcard-800x500.png",{"path":1153,"title":1154,"description":1155,"published":1156,"category":824,"image":1157,"draft":738},"\u002Fblog\u002Fsupabase-backup-auth-users","Why your Supabase dump has no users in it","Run supabase db dump on its own and you get the shape of your database and none of its rows, with the auth schema your users live in left out entirely.","2026-09-23","\u002Fblog\u002Fsupabase-backup-auth-users\u002Fcard-800x500.png",{"path":1159,"title":1160,"description":1161,"published":1162,"category":734,"image":1163,"draft":738},"\u002Fblog\u002Fdomain-and-certificate-expiry","Domain expired, website down: what actually happens next","Your domain expired and your website is down. Here is the clock you are on, why a lapsed certificate is the easier of the two, and how to check both.","2026-09-22","\u002Fblog\u002Fdomain-and-certificate-expiry\u002Fcard-800x500.png",{"path":1165,"title":1166,"description":1167,"published":1168,"category":734,"image":1169,"draft":738},"\u002Fblog\u002Fis-lovable-safe","Is Lovable safe? What 18,554 live Lovable apps showed","Is Lovable safe? We ran nine checks on 18,554 live Lovable apps. The platform was the cleanest of five builders. Every finding was inside the app itself.","2026-09-21","\u002Fblog\u002Fis-lovable-safe\u002Fcard-800x500.png",{"path":1171,"title":1172,"description":1173,"published":1174,"category":734,"image":1175,"draft":738},"\u002Fblog\u002Fvibe-coded-app-security-checklist","The vibe coding security checklist, in nine checks","A vibe coding security checklist with nine items, each one something anyone can verify about your live app from outside, and each with a one-line test.","2026-09-20","\u002Fblog\u002Fvibe-coded-app-security-checklist\u002Fcard-800x500.png",{"path":1177,"title":1178,"description":1179,"published":1180,"category":734,"image":1181,"draft":738},"\u002Fblog\u002Fstripe-secret-key-in-frontend","A Stripe secret key exposed in your frontend can move money","A Stripe secret key exposed in your frontend can refund, charge and read every customer record you hold. Your pk_live_ key is meant to be there.","2026-09-19","\u002Fblog\u002Fstripe-secret-key-in-frontend\u002Fcard-800x500.png",{"path":1183,"title":1184,"description":1185,"published":1186,"category":734,"image":1187,"draft":738},"\u002Fblog\u002Fvite-and-next-public-env-vars","Vite env variables exposed: VITE_ and NEXT_PUBLIC_ mean publish this","Vite env variables exposed in your app did what the prefix asked. VITE_ and NEXT_PUBLIC_ mean publish this, and the AI that added one never knew the cost.","2026-09-18","\u002Fblog\u002Fvite-and-next-public-env-vars\u002Fcard-800x500.png",{"path":1189,"title":1190,"description":1191,"published":1192,"category":734,"image":1193,"draft":738},"\u002Fblog\u002Fbase44-source-maps","Base44 security: what a scan flags, and what is yours to fix","Base44 security on 5,438 scanned apps: three findings on nearly every one are the platform's, the source map is Base44's badge, and what is yours is short.","2026-09-17","\u002Fblog\u002Fbase44-source-maps\u002Fcard-800x500.png",{"path":1195,"title":1196,"description":1197,"published":1198,"category":734,"image":1199,"draft":738},"\u002Fblog\u002Fis-cursor-ai-safe","Is Cursor AI safe? The editor, the code, and the app you shipped","Is Cursor AI safe? Three questions in one search: what Cursor keeps, what the code it writes gets wrong, and whether the app you shipped is open.","2026-09-16","\u002Fblog\u002Fis-cursor-ai-safe\u002Fcard-800x500.png",{"path":1201,"title":1202,"description":1203,"published":1204,"category":734,"image":1205,"draft":738},"\u002Fblog\u002Fis-replit-safe","Is Replit safe? What we found in 3,042 live Replit apps","Is Replit safe? We ran nine external checks on 3,042 live Replit apps. The host was not where the findings were. The app each owner published was.","2026-09-15","\u002Fblog\u002Fis-replit-safe\u002Fcard-800x500.png",{"path":1207,"title":1208,"description":1209,"published":1210,"category":824,"image":1211,"draft":738},"\u002Fblog\u002Fsupabase-storage-backup","Supabase storage backup: why your database copy has no files","A Supabase storage backup is a separate job. Database backups keep the list of your files and none of the files, so a restore leaves every upload broken.","2026-09-14","\u002Fblog\u002Fsupabase-storage-backup\u002Fcard-800x500.png",{"path":1213,"title":1214,"description":1215,"published":1216,"category":824,"image":1217,"draft":738},"\u002Fblog\u002Fsupabase-point-in-time-recovery","Supabase point-in-time recovery: what it costs, what it misses","Supabase point-in-time recovery rewinds your database to any second in the last week. It costs $100 a month on top of Pro, and it covers your database only.","2026-09-13","\u002Fblog\u002Fsupabase-point-in-time-recovery\u002Fcard-800x500.png",{"path":1219,"title":1220,"description":1221,"published":1222,"category":824,"image":1223,"draft":738},"\u002Fblog\u002Fsupabase-project-paused-recover","Supabase project paused? Your data is still there","Supabase paused your project after a week of inactivity. Nothing is deleted, Restore sits beside the project name, and you have a year before that changes.","2026-09-12","\u002Fblog\u002Fsupabase-project-paused-recover\u002Fcard-800x500.png",{"path":1225,"title":1226,"description":1227,"published":1228,"category":734,"image":1229,"draft":738},"\u002Fblog\u002Fsafest-ai-app-builder","Which AI app builder is safest? We scanned 30,998 apps","Which AI app builder is safest? We scanned 30,998 live apps from Lovable, Base44, Replit, v0 and Bolt. The builder is not what decides your grade.","2026-09-11","\u002Fblog\u002Fsafest-ai-app-builder\u002Fcard-800x500.png",{"path":1231,"title":1232,"description":1233,"published":1234,"category":734,"image":1235,"draft":738},"\u002Fblog\u002Fenable-rls-on-every-supabase-table","Enable Row Level Security on every Supabase table, then prove it","Enabling Row Level Security in Supabase with no policy locks a table completely. A policy without the setting does nothing. Here is the SQL, and the test.","2026-09-10","\u002Fblog\u002Fenable-rls-on-every-supabase-table\u002Fcard-800x500.png",{"path":1237,"title":1238,"description":1239,"published":1240,"category":734,"image":1241,"draft":738},"\u002Fblog\u002Fsupabase-rls-disabled-in-public","Supabase \"RLS disabled in public\": what the warning misses","Supabase reports \"RLS disabled in public\" as an error. It says nothing about the read policy that leaves your table just as open to strangers.","2026-09-09","\u002Fblog\u002Fsupabase-rls-disabled-in-public\u002Fcard-800x500.png",{"path":1243,"title":1244,"description":1245,"published":1246,"category":734,"image":1247,"draft":738},"\u002Fblog\u002Frotate-supabase-service-role-key","How to rotate a leaked Supabase service_role key","Supabase says fix the leak first. Other guides say rotate now. Which is right depends on where your service_role key leaked.","2026-09-08","\u002Fblog\u002Frotate-supabase-service-role-key\u002Fcard-800x500.png",{"path":1249,"title":1250,"description":1251,"published":1252,"category":734,"image":1253,"draft":738},"\u002Fblog\u002Fvibe-coding-security-scanners-compared","Vibe coding security scanners compared, including ours","The best vibe coding security scanner comes down to three questions no feature list answers. Eight tools compared, with prices, and the jobs Reeve does not do.","2026-09-07","\u002Fblog\u002Fvibe-coding-security-scanners-compared\u002Fcard-800x500.png",{"path":1255,"title":1256,"description":1257,"published":1258,"category":734,"image":1259,"draft":738},"\u002Fblog\u002Fsupabase-security-checker","Supabase security checker: run the five checks yourself","A Supabase security checker reads your published app instead of your project settings. Here are the five checks it runs, and how to run each one yourself.","2026-09-06","\u002Fblog\u002Fsupabase-security-checker\u002Fcard-800x500.png",{"path":1261,"title":1262,"description":1263,"published":1264,"category":734,"image":1265,"draft":738},"\u002Fblog\u002Fvibe-coding-security-scanner","Vibe coding security scanner: what a URL scan misses","A vibe coding security scanner reads your live app from outside. Here is what that covers, the four things it cannot see, and how to read the result.","2026-09-05","\u002Fblog\u002Fvibe-coding-security-scanner\u002Fcard-800x500.png",{"path":1267,"title":1268,"description":1269,"published":1270,"category":734,"image":1271,"draft":738},"\u002Fblog\u002Fmissing-security-headers","Missing security headers: when it actually matters","Missing security headers is the finding our scanner prints most. Here is what it protects against, and when it is the least urgent line on your report.","2026-09-04","\u002Fblog\u002Fmissing-security-headers\u002Fcard-800x500.png",{"path":1273,"title":1274,"description":1275,"published":1276,"category":734,"image":1277,"draft":738},"\u002Fblog\u002Fopenai-api-key-exposed-in-frontend","Your OpenAI API key is exposed in your frontend. Rotate it.","An OpenAI API key exposed in your frontend cannot be locked to a domain. Rotate it today, move the call behind your own endpoint, and cap the spend.","2026-09-03","\u002Fblog\u002Fopenai-api-key-exposed-in-frontend\u002Fcard-800x500.png",{"path":1279,"title":1280,"description":1281,"published":1282,"category":734,"image":1283,"draft":738},"\u002Fblog\u002Fwhat-secrets-leak-from-vibe-coded-apps","An API key exposed in your frontend: what 30,998 apps shipped","An API key exposed in your frontend is usually a Google Maps key. We scanned 30,998 live vibe-coded apps and counted which secrets actually leak.","2026-09-02","\u002Fblog\u002Fwhat-secrets-leak-from-vibe-coded-apps\u002Fcard-800x500.png",{"path":1285,"title":1286,"description":1287,"published":1288,"category":824,"image":1289,"draft":738},"\u002Fblog\u002Fsupabase-backup-tools-compared","Supabase backup tools compared, including ours","Four kinds of Supabase backup tool, what each one actually copies, and the case where a free GitHub Action beats paying anyone, us included.","2026-09-01","\u002Fblog\u002Fsupabase-backup-tools-compared\u002Fcard-800x500.png",{"path":1291,"title":1292,"description":1293,"published":1294,"category":734,"image":1295,"draft":738},"\u002Fblog\u002Freplit-secrets-explained","How to use secrets in Replit, and what still gets published","How to use secrets in Replit: add one, read it back, and fix the two reasons it comes back undefined. Plus the keys the Secrets tool cannot keep private.","2026-08-31","\u002Fblog\u002Freplit-secrets-explained\u002Fcard-800x500.png",{"path":1297,"title":1298,"description":1299,"published":1300,"category":824,"image":1301,"draft":738},"\u002Fblog\u002Fback-up-supabase-free-tier","Supabase free tier backups: how to make one without a terminal","There are no Supabase free tier backups, so the copy has to come from you. How to make one from the dashboard, and what CSV leaves out.","2026-08-30","\u002Fblog\u002Fback-up-supabase-free-tier\u002Fcard-800x500.png",{"path":1303,"title":1304,"description":1305,"published":1306,"category":734,"image":1307,"draft":738},"\u002Fblog\u002Fis-supabase-secure","Is Supabase secure? Yes. Your project is a separate question","Is Supabase secure? The platform is audited, encrypted and pen-tested. Their own compliance documents say where that stops and your settings begin.","2026-08-29","\u002Fblog\u002Fis-supabase-secure\u002Fcard-800x500.png",{"path":1309,"title":1310,"description":1311,"published":1312,"category":734,"image":1313,"draft":738},"\u002Fblog\u002Fwhere-to-find-supabase-api-keys","Where to find your Supabase URL, publishable and secret keys","Your Supabase project URL, anon key and service_role key are on one dashboard page. Here is where that page is, and which of the four belongs in your app.","2026-08-28","\u002Fblog\u002Fwhere-to-find-supabase-api-keys\u002Fcard-800x500.png",{"path":449,"title":1315,"description":1316,"published":1317,"category":734,"image":1318,"draft":738},"New row violates row-level security policy in Supabase. Now what?","\"New row violates row-level security policy\" means Supabase refused a write. The fix that clears it in ten seconds also reopens the table to everyone.","2026-08-27","\u002Fblog\u002Fnew-row-violates-row-level-security-policy\u002Fcard-800x500.png",{"path":1320,"title":1321,"description":1322,"published":1323,"category":734,"image":1324,"draft":738},"\u002Fblog\u002Fcors-wildcard-security-risk","Is a CORS wildcard a security risk? Usually not.","Is a CORS wildcard a security risk? Usually it is your builder default, and it gives away nothing your server was not already handing to anyone who asked.","2026-08-26","\u002Fblog\u002Fcors-wildcard-security-risk\u002Fcard-800x500.png",{"path":1326,"title":1327,"description":1328,"published":1329,"category":824,"image":1330,"draft":738},"\u002Fblog\u002Fsupabase-branching-is-not-a-backup","Supabase branching is not a backup. It only goes forwards.","Supabase branching is not a backup: a branch starts with none of your data, and merging only moves schema. What it is for, and what to use instead.","2026-08-25","\u002Fblog\u002Fsupabase-branching-is-not-a-backup\u002Fcard-800x500.png",{"path":1332,"title":1333,"description":1334,"published":1335,"category":824,"image":1336,"draft":738},"\u002Fblog\u002Fhow-to-restore-a-supabase-backup","How to restore a Supabase backup, and what breaks after","How to restore a Supabase backup from the dashboard or from a dump file, what the restore replaces, and why your app can still be broken when it finishes.","2026-08-24","\u002Fblog\u002Fhow-to-restore-a-supabase-backup\u002Fcard-800x500.png",{"path":1338,"title":1339,"description":1340,"published":1341,"category":734,"image":1342,"draft":738},"\u002Fblog\u002Fsupabase-storage-bucket-public","Your Supabase storage bucket is public. Is that a problem?","A public Supabase storage bucket means anyone with a file URL can open it. It does not mean anyone can list what is in there. Two different settings.","2026-08-23","\u002Fblog\u002Fsupabase-storage-bucket-public\u002Fcard-800x500.png",{"path":1344,"title":1345,"description":1346,"published":1347,"category":734,"image":1348,"draft":738},"\u002Fblog\u002Fgoogle-api-key-exposed-in-frontend","Is a Google API key exposed in your frontend a problem?","A Google API key exposed in your frontend is the key our scanner finds most often, and usually it is fine. One free setting decides which it is.","2026-08-22","\u002Fblog\u002Fgoogle-api-key-exposed-in-frontend\u002Fcard-800x500.png",{"path":1350,"title":1351,"description":1352,"published":1353,"category":824,"image":1354,"draft":738},"\u002Fblog\u002Fai-agent-deleted-my-database","An AI agent deleted my Supabase data. What can I recover?","An AI agent deleted your database data. What you can recover was decided before it ran, and the next few minutes decide how much of it survives.","2026-08-21","\u002Fblog\u002Fai-agent-deleted-my-database\u002Fcard-800x500.png",{"path":1356,"title":1357,"description":1358,"published":1359,"category":734,"image":1360,"draft":738},"\u002Fblog\u002Fcan-anyone-read-your-supabase-database","Can anyone read your Supabase database? We checked 3,680 apps","Can anyone read your Supabase database without logging in? We scanned 30,998 live apps built with AI builders and measured how often the answer is yes.","2026-08-18","\u002Fblog\u002Fcan-anyone-read-your-supabase-database\u002Fcard-800x500.png",{"path":1362,"title":1363,"description":1364,"published":1359,"category":734,"image":1365,"draft":738},"\u002Fblog\u002Fsource-maps-exposed-in-production","Source maps exposed: your app is publishing its original code","An exposed source map lets anyone read your app's original code, comments included. The 30-second check, and what actually matters if yours are public.","\u002Fblog\u002Fsource-maps-exposed-in-production\u002Fcard-800x500.png",{"path":1367,"title":1368,"description":1369,"published":1370,"category":734,"image":1371,"draft":738},"\u002Fblog\u002Fsupabase-new-api-keys","Supabase publishable key: is it the same as the anon key?","Supabase replaced anon and service_role with publishable and secret keys. Which one belongs in your app, and which never does?","2026-08-12","\u002Fblog\u002Fsupabase-new-api-keys\u002Fcard-800x500.png",{"path":1373,"title":1374,"description":1375,"published":1376,"category":824,"image":1377,"draft":738},"\u002Fblog\u002Fdoes-supabase-back-up-my-database","Does Supabase back up my database? It depends on your plan.","Does Supabase back up your database? Daily on paid plans, and not at all on the free one. How to check which you have, and what that copy cannot survive.","2026-08-11","\u002Fblog\u002Fdoes-supabase-back-up-my-database\u002Fcard-800x500.png",{"path":1379,"title":1380,"description":1381,"published":1382,"category":734,"image":1383,"draft":738},"\u002Fblog\u002Fsupabase-rls-on-but-table-still-public","Supabase Row Level Security is on. Your table is still public.","Turning on Supabase Row Level Security does not protect a table. Your policies do, and the policy that fixed your broken app may let everyone in.","2026-08-10","\u002Fblog\u002Fsupabase-rls-on-but-table-still-public\u002Fcard-800x500.png",{"path":1385,"title":1386,"description":1387,"published":1382,"category":824,"image":1388,"draft":738},"\u002Fblog\u002Fversion-history-is-not-a-backup","Version history is not a backup. It cannot undo a deleted table.","Lovable and Bolt keep version history for your code. Your database is a separate service, so rolling back to this morning does not bring your data back.","\u002Fblog\u002Fversion-history-is-not-a-backup\u002Fcard-800x500.png",{"path":1390,"title":1391,"description":1392,"published":1393,"category":824,"image":1394,"draft":738},"\u002Fblog\u002Fthree-ways-to-back-up-a-supabase-database","Three ways to back up a Supabase database, and what each misses","The dashboard, pg_dump, and a managed service. What each one actually saves, what it quietly leaves out, and which one survives losing the account.","2026-08-09","\u002Fblog\u002Fthree-ways-to-back-up-a-supabase-database\u002Fcard-800x500.png",{"path":401,"title":1396,"description":1397,"published":1393,"category":734,"image":1398,"draft":738},"Which API keys are safe in your frontend, and which aren't","Your Supabase anon key is supposed to be public. Your service_role key is not, and it ignores every rule you set. Here is how to tell them apart.","\u002Fblog\u002Fwhich-api-keys-are-safe-in-your-frontend\u002Fcard-800x500.png",1795595685468]