Module 03 · Lesson 07
Secrets and permissions
What an agent should never see or do.
Keep it safe5 min
| Never | Instead |
|---|---|
| Paste a live API key into the chat | Put it in .env yourself; tell the agent the variable name |
| Let it run commands against production | Staging or local only; you run production steps |
| Auto-approve deletes, pushes or deploys | Approve each one after reading it |
| Commit .env files | Gitignore .env*, keep only .env.example with placeholders |