Deutsch

Tim Geithner

Founder of ShipRely

Lovable Certified Partner 2026

Tim is the founder of ShipRely and builds his own products with AI coding tools such as Lovable. He is responsible for every piece on this site: drafts are written with AI assistance, checked against primary sources and tested against our own deliberately broken test apps.

Written with AI assistance, then checked against the sources on this page and tested where code is shown.

Articles

Supabase · Edge FunctionsFix “blocked by CORS policy” when calling a Supabase Edge Functionhas been blocked by CORS policy: Response to preflight request doesn't pass access control check5 min readSupabase · PostgRESTFix “Cannot coerce the result to a single JSON object” (PGRST116) in SupabaseCannot coerce the result to a single JSON object4 min readSupabase · PostgRESTFix “Could not find the table ‘public.notes’ in the schema cache” in SupabaseCould not find the table 'public.notes' in the schema cache4 min readSupabase · PostgresFix “duplicate key value violates unique constraint” in Supabaseduplicate key value violates unique constraint "profiles_pkey"5 min readSupabase · AuthFix “email rate limit exceeded” in Supabase Authemail rate limit exceeded4 min readSupabase · RLSFix “infinite recursion detected in policy for relation” in Supabaseinfinite recursion detected in policy for relation "members"4 min readSupabase · AuthFix “JWT expired” in Supabase without longer tokens or the service role keyJWT expired4 min readSupabase · RLSFix “new row violates row-level security policy” in Supabasenew row violates row-level security policy for table "notes"4 min readSupabase · PostgresFix “null value in column ... violates not-null constraint” in Supabasenull value in column "user_id" of relation "notes" violates not-null constraint4 min readSupabase · FunctionsFix “permission denied for function” in Supabase (error 42501)permission denied for function get_team_stats5 min readSupabase · GrantsFix “permission denied for table” in Supabase (error 42501)permission denied for table notes5 min readSupabase · PostgresFix “violates foreign key constraint” in Supabase, on insert and on deleteinsert or update on table "notes" violates foreign key constraint "notes_user_id_fkey"5 min readStripe · WebhooksFix Stripe “No signatures found matching the expected signature for payload”No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?5 min readSupabase · API keysFix Supabase “Invalid API key” (401)Invalid API key6 min readSupabase · RLSFix Supabase “update() returns error: null, but nothing changes”update() returns error: null, but nothing changes5 min readSupabase · RLSSupabase query returns “data: [], error: null”: why your rows are missingdata: [], error: null5 min readSupabase · Access controlCriticalAdmin check only in the frontend: why hiding the admin page protects nothingHiding the admin page in React does not stop anyone from reading admin data or making themselves admin. Move the role into the database and enforce it in policies.3 min readSecurity · SecretsAPI keys in AI-built apps: what is safe in the frontend and what is notWhich keys may sit in browser code and which must stay on the server: Supabase publishable vs secret keys, VITE_ variables, OpenAI, Anthropic and Stripe keys.12 min readSecurity · AI appsCalling OpenAI or Anthropic safely: server proxy, quotas and spend capsHow to call AI APIs from a Lovable or Supabase app without leaking the key or the budget: an Edge Function proxy, per-user quotas, token caps and spend limits.6 min readSecurity · Web basicsCORS explained for vibe coders: what it protects and what it does notWhat CORS really does, why it is not authentication, how preflight works, the credentials and wildcard rule, and how to set CORS headers on a Supabase Edge Function.6 min readCORS · APIsMediumCORS with credentials for any origin: other sites read your users’ dataAn API that echoes any Origin back and allows credentials lets every website read your users’ responses with their cookies. Use a fixed allowlist instead.3 min readSupabase · PaymentsHighCredits, paid status or prices set by the client: stop trusting the browser with moneyIf the browser writes the price, the payment status or the credit balance, users can set their own. Lock these columns with grants and compute them in the database.3 min readSupabase · Edge FunctionsHighEdge function trusts user_id from the request bodyAn edge function that takes userId from the request body and queries with the admin key lets anyone read any user’s data. Take the user from the verified token.4 min readSupabase · Edge FunctionsHighEdge function without an auth check: who is calling your function?A Supabase edge function that never checks its caller is a public API for everyone. How to find such functions and verify the user before any data work.4 min readAuth · Account privacyLowEmail enumeration: your sign-up and reset forms say who has an accountMessages like ‘no account with this email’ or ‘already registered’ let anyone test which addresses use your app. Answer the same way for every address.4 min readSecurity · ReportsHow to read a security report: severity, confidence and what to fix firstSeverity, confidence and exploitability are three different questions. How to read a security report, spot false positives and decide what to fix first.7 min readSupabase · DatabaseHow to test your Supabase RLS policies with SQLTest Supabase RLS policies the way an attacker would: as a visitor, as two different users and as the service role, in plain SQL and with pgTAP.6 min readSupabase · Billing logicHow users bypass paywalls in AI-built apps, and how to stop itWhy a plan or credit check in your React code doesn’t protect anything, and how to enforce plans, credits and paid status in Supabase with RLS, grants and functions.6 min readLovable · SecurityIs your Lovable app secure? A 30-minute self-auditA timed self-audit for Lovable apps: run Lovable’s built-in security check, then test database rules, keys, functions and a second account in 30 minutes.11 min readSupabase · IncidentLeaked Supabase service_role key: what to do in the first 60 minutesYour Supabase secret or service_role key leaked. A minute-by-minute plan: stop the leak, rotate the key, retire the old one, check logs and clean up git.7 min readSupabase · Access controlHighMissing ownership check on update and delete: any user can change anyone’s dataIf your update and delete rules only check that someone is signed in, every user can edit or delete other users’ rows. Find these policies and add the owner check.3 min readSupabase · DatabaseMulti-tenant data isolation: users must never see each other’s dataKeep workspaces and customers apart in a Supabase app: tenant IDs, a membership table, RLS helpers, composite foreign keys and a two-tenant test.14 min readAI · CostsMediumNo AI spend cap: one bug or one abuser can empty your budgetWithout a hard spend limit at your AI provider and a per-user quota in your app, one leaked key or bot can run up a large bill. Set both before launch.4 min readAuth · AIMediumNo rate limit on login or AI endpointsWithout rate limits, bots can guess passwords and burn through your AI budget. Use Supabase Auth’s limits and CAPTCHA, and add a limiter to your own endpoints.4 min readStripe · WebhooksMediumNon-idempotent Stripe webhook: one payment, credits granted twiceStripe may deliver the same event more than once. A webhook that adds credits on every delivery hands out extras. Record each event id and process it only once.4 min readAuth · RedirectsMediumOpen redirect after login: your sign-in page sends users anywhereA login page that follows ?next= or ?redirect= to any URL lets phishers borrow your domain. Accept only paths on your own site, with a tested helper.3 min readAI · SecretsCriticalOpenAI or Anthropic key in client code, or returned by a functionAn AI provider key in a VITE_ variable or returned by an edge function belongs to every visitor. Move AI calls into a server function, then rotate the key.4 min readAuth · Password resetHighPassword reset link that redirects to any URLA broad Supabase redirect allow list or a reset link built from untrusted input can send reset links to sites you don’t own. Pin them to exact URLs.4 min readLogging · PrivacyMediumPersonal data and tokens in logs and error messagesconsole.log(body) and raw error messages copy emails, tokens and passwords into logs and browsers. Log ids and field names, return generic errors.4 min readSecurity · ChecklistPre-launch security checklist for AI-built SaaSAn interactive security checklist for apps built with Lovable, Bolt, Cursor and Supabase: eight phases from data access to monitoring, with tested SQL checks.9 min readSecurity · AI appsPrompt injection in the AI features of your app: what it can do and how to contain itDirect and indirect prompt injection in apps that call an LLM: what an attacker can and cannot do, and how least-privilege tools and safe output handling contain it.7 min readSupabase · StorageHighPublic storage bucket with private files: make it private and serve signed URLsFiles in a public Supabase bucket can be opened by anyone with the link, no policy asked. Find public buckets, make private ones private and switch to signed URLs.3 min readSecurity · AI appsRate limiting for AI-built apps: what to limit and whereWhich endpoints of a Lovable or Supabase app need rate limits, what Supabase Auth already limits for you, and a tested Postgres counter for AI endpoints.7 min readSupabase · RLSLowRLS enabled but no policies: why your app shows nothing, and the fix that keeps data safeRLS is on but the table has no policies, so lists are empty and inserts fail. Add the right policies instead of turning RLS off or allowing everything.3 min readSupabase · RLSCriticalRLS policy with USING (true) or WITH CHECK (true): close the open doorA Supabase policy of using (true) or with check (true) turns RLS on in name only. Find these policies with one query and replace them with owner checks.3 min readSupabase · Access controlRoles and permissions in Supabase: admins, members and viewers done rightHow to build admin, member and viewer roles in Supabase that users can’t grant themselves: a roles table, app_metadata or a custom access token hook. Tested SQL.6 min readSecurity testingSAST, DAST and SCA: what is the difference?SAST reads your source code, DAST tests the running app from outside, SCA checks your third-party packages. What each finds, what each misses and how they fit.2 min readVite · SecretsHighSecret key in a VITE_ variable: why .env doesn’t hide it, and how to move itEvery VITE_ variable ends up in the JavaScript your visitors download. Find secrets in VITE_ variables and code, rotate them and call the API from an edge function.4 min readSecurity · SecretsSecrets in git history: find them, rotate them, then clean upA key you deleted is still in git history. Find leaked secrets with git log, Gitleaks or GitHub secret scanning, rotate them first, and know when to rewrite.6 min readSupabase · Edge FunctionsSecuring Supabase Edge Functions and serverless APIsHow to secure Supabase Edge Functions: verify_jwt, reading the user from the token, the secret key, CORS, input checks, rate limits, secrets and safe logs.13 min readSupabase · Database functionsCriticalSECURITY DEFINER function without an auth check or search_path: lock it downA SECURITY DEFINER function runs with its owner’s rights and skips RLS. If anyone can call it and it trusts its arguments, it is an open admin endpoint.3 min readSupabase · DatabaseSECURITY DEFINER functions in Supabase, done rightWhen a Supabase function should run as SECURITY DEFINER, and the five rules that keep it safe: empty search_path, caller checks, revoked EXECUTE, tested SQL.7 min readSecurity · Web basicsSecurity headers for Vite and Lovable apps: which ones and where to set themWhich security headers a Vite single-page app needs (CSP, HSTS, nosniff, Referrer-Policy, Permissions-Policy) and how to set them on Vercel, Netlify and Cloudflare.6 min readSupabase · KeysCriticalservice_role or secret key in the frontend: rotate it, then move the work to the serverA Supabase secret or service_role key in browser code lets anyone who copies it bypass RLS. Find it in your bundle, rotate it and move admin work to the server.3 min readVite · Build outputHighSource maps and .env files served in productionA live site that serves .js.map files or a .env file hands out your source code and often your secret keys. Turn off public source maps and keep .env out of dist.4 min readStripe · PaymentsStripe in vibe-coded apps: webhooks, subscriptions and the mistakes that cost moneySecure Stripe in AI-built apps: verified webhooks, duplicate events, server-side prices, subscription checks in RLS, test vs live keys and restricted keys.12 min readStripe · WebhooksHighStripe webhook without signature check: anyone can say ‘paid’A Stripe webhook that acts on the JSON body without checking the Stripe-Signature header lets anyone fake a payment. Verify the raw body with your endpoint secret.3 min readSupabase · PaymentsHighSubscription check only in the frontend: how free users get paid featuresA paywall that only exists in React lets free users load paid content through the API, or mark themselves as subscribed. Enforce the plan in the database instead.3 min readSupabase · AuthSupabase Auth pitfalls: e-mail confirmation, password reset and redirect URLsSix Supabase Auth settings AI-built apps get wrong: e-mail confirmation, Site URL, redirect allow list, password reset, e-mail enumeration and anonymous users.6 min readSupabase · RealtimeSupabase Realtime security: who can listen to whatHow to keep Supabase Realtime private: RLS for Postgres Changes, private channels and policies on realtime.messages for Broadcast and Presence, with tested SQL.6 min readSupabase · DatabaseSupabase Row Level Security: the complete guide for vibe codersWhat Supabase row level security does, why AI-built apps often ship without it, and how to check, write and test owner-only policies, with tested SQL.9 min readSupabase · StorageSupabase Storage security: buckets, policies and signed URLsHow to keep files in Supabase Storage private: public vs private buckets, per-user folder policies on storage.objects and short-lived signed URLs, with tested SQL.6 min readSupabase · DatabaseSupabase views bypass RLS: security_invoker explainedWhy a Postgres view in Supabase can show every row even when the table has RLS, how security_invoker fixes it and how to find leaky views, with tested SQL.6 min readSupabase · RLSCriticalTable without row level security: find it and fix it in SupabaseA Supabase table without row level security can be read and changed by anyone with your public key. Find every such table with one query and lock it down.3 min readSecurity · OverviewThe complete security guide for AI-built appsThe eight risk families in apps built with Lovable, Bolt, Cursor and Supabase, ranked by real-world impact, with how to check each one and where to fix it.17 min readWeb securityWhat is a Content Security Policy (CSP)?A Content Security Policy tells the browser which scripts and resources your page may load. How it limits XSS damage in Vite and Lovable apps and how to roll it out.2 min readVulnerability dataWhat is a CVE (Common Vulnerabilities and Exposures)?A CVE is a public ID for one known vulnerability in a specific product, like CVE-2021-44228. What it tells you, what it doesn’t, and how to check your dependencies.2 min readAuthWhat is a JWT (JSON Web Token)?A JWT is a signed token that carries claims about a user. How Supabase uses JWTs for sessions and RLS, and which claims are safe to trust in a policy.2 min readDependenciesWhat is a lockfile (package-lock.json, bun.lock)?A lockfile records the exact version of every package your app installs. Why it matters for security in AI-built apps and how to use it correctly.2 min readAuthWhat is a magic link?A magic link signs a user in through a one-time link sent by e-mail. How magic links work in Supabase, their limits, and what to check in your app.2 min readSupabase · DatabaseWhat is a Postgres policy (RLS policy)?A Postgres policy is the rule row level security applies to each row. The parts of CREATE POLICY, how policies combine, and a tested query to review yours.2 min readDependenciesWhat is a software supply chain attack?A supply chain attack hits your app through code you didn’t write: npm packages, build tools or CI. How it affects AI-built apps and the habits that reduce the risk.2 min readPayments · IntegrationsWhat is a webhook signature?A webhook signature proves that a webhook really comes from the provider and was not changed. How HMAC signatures work, how Stripe signs events and what to check.2 min readPayments · IntegrationsWhat is a webhook?A webhook is an HTTP request a service sends to your app when something happens, such as a paid invoice. How webhooks work in AI-built apps and what makes them safe.2 min readSupabase · ServerWhat is an edge function?An edge function is server-side code that runs close to your users. What Supabase Edge Functions are for in AI-built apps and how to check they are locked down.2 min readSecretsWhat is an environment variable?Environment variables hold configuration outside your code. Why VITE_ variables end up in the browser, where secrets belong instead, and how to check your app.2 min readAccess controlWhat is an insecure direct object reference (IDOR)?IDOR means a user can read or change someone else’s record just by changing an ID. How it shows up in Supabase apps and how to check and fix yours.2 min readAPI securityWhat is broken function level authorization (BFLA)?BFLA means a normal user can call a function meant for admins, such as changing plans or deleting users. How it appears in Supabase apps, with tested SQL.2 min readAPI securityWhat is broken object level authorization (BOLA)?BOLA is the API name for IDOR: an endpoint returns or changes an object without checking it belongs to the caller. Examples from Supabase apps and fixes.2 min readWeb securityWhat is CORS (cross-origin resource sharing)?CORS is the browser rule set that decides which other websites may read your API’s responses. What it protects, what it doesn’t, and the settings to avoid.2 min readAuth · Abuse protectionWhat is credential stuffing?Credential stuffing is the automated testing of e-mail and password pairs leaked from other sites against your login. Why it works and how to protect a Supabase app.2 min readWeb securityWhat is cross-site request forgery (CSRF)?CSRF tricks a signed-in user’s browser into sending a request your app did not intend. When Supabase and Lovable apps are exposed and how to defend.2 min readWeb securityWhat is cross-site scripting (XSS)?XSS lets someone run their own JavaScript inside your app, in other users’ browsers. Where React apps are still exposed and how to check and fix yours.2 min readVulnerability dataWhat is CVSS (Common Vulnerability Scoring System)?CVSS scores a vulnerability’s severity from 0 to 10. How to read a score and a vector string, what Low to Critical means, and why severity is not the same as risk.2 min readVulnerability dataWhat is CWE (Common Weakness Enumeration)?CWE is the public catalogue of software weakness types, like CWE-862 Missing Authorization. How CWE differs from CVE and how to use CWE IDs in a security report.2 min readWeb securityWhat is HSTS (HTTP Strict Transport Security)?HSTS is a response header that tells browsers to use only HTTPS for your domain. What it protects, the first-visit gap, preloading and how to check your app.2 min readPayments · IntegrationsWhat is idempotency?An idempotent operation has the same effect whether it runs once or many times. Why webhooks and payments need it, and a tested Postgres pattern to skip repeats.2 min readArchitectureWhat is multi-tenancy?Multi-tenancy means one app and database serve many customers at once. The common models, why AI-built SaaS apps use shared tables, and what keeps tenants apart.2 min readAuthWhat is OAuth 2.0?OAuth 2.0 lets an app get limited access on a user’s behalf without their password. How ‘Sign in with Google’ works in Supabase apps and where it goes wrong.2 min readAuthWhat is PKCE (Proof Key for Code Exchange)?PKCE binds an OAuth login code to the browser that started the login, so a stolen code is useless. How Supabase uses it and how to check your app.2 min readAI securityWhat is prompt injection?Prompt injection is when text a model reads changes what it does, against your app’s intent. Direct and indirect forms, examples from AI features, and defenses.2 min readAbuse protectionWhat is rate limiting?Rate limiting caps how often a client may call an endpoint in a time window. Why AI and login endpoints need it, what Supabase limits for you and what it does not.2 min readSupabase · DatabaseWhat is row level security (RLS)?Row level security is the Postgres feature that decides, row by row, who may read or change data. Why Supabase apps depend on it and how to check yours.2 min readSecretsWhat is secret rotation?Secret rotation means replacing an API key or password with a new one and retiring the old one. When to rotate, in which order, and how Supabase and Stripe help.2 min readSupabase · DatabaseWhat is SECURITY DEFINER in Postgres?A SECURITY DEFINER function runs with its owner’s rights, which in Supabase usually means it skips RLS. When to use it, how it goes wrong, and a tested check.2 min readAPI securityWhat is server-side request forgery (SSRF)?SSRF lets a user make your server fetch a URL of their choice, including internal addresses. Where it hides in edge functions and how to block it.2 min readDatabaseWhat is SQL injection?SQL injection happens when user input becomes part of an SQL command. Where it still shows up in Supabase apps, how to find it and how to fix it, with tested SQL.2 min readSupabase · DatabaseWhat is tenant isolation?Tenant isolation keeps each customer’s data out of every other customer’s reach in a shared app. How it fails in Supabase apps, and a tested membership policy.2 min readStandardsWhat is the OWASP Top 10?The OWASP Top 10 lists the most critical security risks to web applications. The 2025 categories, the API and LLM lists, and what they mean for AI-built apps.2 min readPrinciplesWhat is the principle of least privilege?Least privilege means every user, key and process gets only the access it needs. What that looks like in a Supabase app, with a tested query of anon’s grants.2 min readSupabase · KeysWhat is the Supabase anon key (publishable key)?The Supabase anon or publishable key is the public key your frontend ships with. Why it is not a secret, what it can reach, and how to check that.2 min readSupabase · KeysWhat is the Supabase service role key (secret key)?The Supabase service_role or secret key bypasses row level security. What it is for, why it must never reach the browser and what to do if it did.2 min readDependenciesWhat is typosquatting in package registries?Typosquatting means publishing a malicious package under a name close to a popular one. Why AI-built apps are exposed and how to check your dependencies.2 min readAI developmentWhat is vibe coding?Vibe coding means building software by describing it to an AI and accepting the code unread. Where the term comes from and what it means for security.2 min readReact · XSSHighXSS through dangerouslySetInnerHTML: user text runs as codeRendering user content with dangerouslySetInnerHTML lets anyone run JavaScript in your users’ browsers. Render Markdown safely or sanitize with DOMPurify.3 min read