Skip to main content
April 3, 202511:15

AI Coding Security: 101

By Samuel Gregory

About this video

AI can generate 80% of your codebase, but security is a major risk. This video covers crucial security measures for 'vibe coding': implementing API rate limiting, storing API keys securely, using row-level security (RLS) in databases like Superbase/Firebase, backend data validation, and hashing sensitive user data. Protect your app and avoid costly mistakes! I love Replit: https://samuelgregory.co.uk/replit - Extra knowledge: https://www.patreon.com/0x5am5 Twitter: @0x5am5 Buy merch: https://flowst8.dev/store Services I Love Domain Names: https://samuelgregory.co.uk/namecheap Hosting: https://www.hostg.xyz/aff_c?offer_id=6&aff_id=130549 Online Storage ($200 credit): https://samuelgregory.co.uk/digitalocean Online Storage ($100 credit): https://www.vultr.com/?ref=9381598-8H -------------------------- ⏰ Timestamps -------------------------- 00:00 Intro 00:31 1. Rate Limiting 02:31 Tip: Make the most of global rules in Cursor 02:46 2. Protect your API Keys 03:52 3. Row Level Security (RLS) 05:39 4. Spam Protection 06:03 5. Verifying Data 06:52 6. Cleaning up dependencies 07:49 7. Hashing sensitive data 09:35 8. Monitoring Logs 10:29 Recap My Gear (affiliate) Sony A7c II: https://amzn.to/40qaYEJ Sony 16-35mm: https://amzn.to/3Ehfvxi Deity V-Mic D4 Mini: https://amzn.to/4fkKLf4 Macbook Pro M1 Pro: https://amzn.to/3oEVbS0 iPad Pro M4: https://amzn.to/3YIMpBM Magic Keyboard: https://amzn.to/421B26P Travel Laptop Stand: https://amzn.to/3MDRx2Q Logitech MX Vertical: https://amzn.to/3oCg1Bz Apple Magic Trackpad: https://amzn.to/3YIqwm3 My Books The Full Stack Agency: https://flowst8.dev/store Lingo: Agile: https://thefullstackagency.gumroad.com/l/agile-lingo Lingo: Startup: https://thefullstackagency.gumroad.com/l/startup-lingo #AI #Coding #Security #WebDevelopment #APISecurity #vibecoding