Vibe coding, in this guide, means using an AI assistant to build and change software faster than you would by writing and reviewing every line yourself. The assistant proposes code, commands, and sometimes whole features. You steer.
That way of working is useful. It also skips steps that used to catch a public database, a committed secret, or a dependency you did not choose. This checklist is those steps, written so you can run them on a project you already shipped.
It is a checklist, not a certification. Completing it does not make an application secure.
Know what the assistant can touch
Write down the tools in the session: the editor, the terminal, the browser, and any connected accounts. For each one, name the files and services it can read and the ones it can change.
If the assistant can run shell commands, it can do more than edit the file on screen. It can read environment files, call APIs with keys it finds, and run migrations. Limit the session to a development account. Production keys do not belong in that session.
Secrets
- Search the repository for API keys, database URLs, private keys, and long random tokens. Look in history, not only in the current tree. A removed file can still be in an old commit.
- Rotate any secret that has been in a chat, a screenshot, a commit, or a log.
- Keep secrets in a store outside the repository. The assistant’s instructions are not a store.
- Confirm
.envand similar files are ignored, and that an ignored file was not force-added.
Data access
If the project exposes a database through an API, check who can read and write rows.
Supabase documents a specific case for Postgres row-level security: a table in an exposed schema without row-level security is readable and writable by any role that has a grant on it. Enable row-level security on every table in an exposed schema. On projects that still grant anon and authenticated by default, revoke those grants. Adding policies does not remove the grants. The Supabase row-level security guide is the reference for the current behavior.
Revoking those grants does not tell you which queries the application still needs. Keep the access the application legitimately uses. Test the grant change in a development environment, including a signed-in user and any public path that should still work, before you deploy it to production. Do not discover a missing policy by testing against production data.
Dependencies and generated code
- Read new packages before you install them. Check the name, the repository, and the install script.
- Pin versions in the lockfile and commit the lockfile.
- Generated authentication code needs a human pass: session cookies, password reset, and any route that skips a login check.
- Generated SQL needs a human pass:
DROP,TRUNCATE,DELETEwithout a filter, and changes to grants.
Review before the default branch changes
Use a branch and a pull request. GitHub’s protected branches attach rules to a branch name or a pattern. Put them on the branch you deploy. Then read the diff yourself, including workflow files. An assistant can edit the check that would have failed the pull request.
A copy that is not the editor
Before a large generated change, know where the last good copy is. For git, GitHub documents a mirror clone as a backup of the repository and its revision history. That clone is not a backup of issues, packages, or a database. For data, take a dump you can store off the database server, using the steps in the Supabase guide if that is your host, or PostgreSQL’s own dump tools if it is not. Encrypt the dump, restrict who can read it, keep the connection string out of the assistant session and out of the dump’s folder, and retain it independently of the database host for a period you have written down.
When something is already wrong
Stop the session. Revoke the credential you think was exposed. Restore from the copy you named above, into a separate target first, so the restore does not overwrite the only remaining evidence of what happened. Write down what the assistant was able to do. That note is more useful than the chat transcript, which may not contain the commands that actually ran.