About Security while Vibe Coding

If you or your team use AI assistants for coding, make sure to list the files with software secrets in the .*ignore files of those assistants so that the secrets don't get leaked. Most of the assistants accept the same syntax as .gitignore.

For example, edit the following files:

and add these lines there:

*.sql
*.backup
.env
secrets.json
secrets.yml

Note that some of the editors or plugins might understand each others' ignore files or respect the .gitignore for the ignored files.

Tips and Tricks Development Security Prompt Driven Development