Hook

—
Their other posts in the index, biggest breakout first.
any app security tips? my top 4 app security tips number one is not adding rate limits No rate limits if someone finds your AI endpoint they can send unlimited requests and rack up a huge bill how rate limits work like five times per minute for example to avoid waking up to a ten thousand dollar bill Frontend AI Calls mistake number two is calling AI from the front end if your app calls an AI provider directly from the user's device anyone can see your API key and use it ALWAYS use a backend always route it through your own server so you control who gets access No Row Level Security mistake number three is no role level security this means users can potentially see or edit other people's data triple check these in back ends like superbase and firease you can add these rules so that users can only touch their own data No AI off switch mistake number four is having no kill switch if someone's abusing your AI features you need a way to shut them off instantly ai_enabled b... TRUE stored in supabase that lets me disable AI for any user without pushing an app update i build productivity apps and share everything i'm learning so follow along for more tips like this