Use restricted API keys that can only do what your app needs
Many services let you create a full-access secret key or a restricted one. AI builders usually grab the full-access key because it works first try. If it ever leaks, whoever holds it can do everything your account can.
The check: look at the keys in your Stripe, OpenAI, Resend or similar dashboards. Does your app really need every permission each key has?
The fix: create a new restricted key with only the permissions your app uses (for example, read-only where it only reads), put it in your server-side environment variables, deploy, then delete the old full-access key.
Want an outside check for leaked keys? Run the free scan at leakyvibe.com/?demo=1&ref=blog-use-restricted-api-keys-with-least-access. It takes about 15 seconds.