Codexsecurity

Review Codex-Written Code Before You Launch

A short checklist for the things Codex-written apps most often get wrong before real users arrive: keys, access checks, input, and the database.

2 min read Updated Applies to Codex

What is going on

Codex can build an app that works when you click through it yourself. That does not mean it is safe for strangers. The problems that matter most do not show up in a quick test: a key in the wrong place, a page anyone can open, or a database anyone can read.

Error messages you might see

API key exposed
Unauthorized
Permission denied for table
Row level security is disabled

Common causes

  1. Keys and passwords written into the code or committed to the repository.
  2. Checks on who may see or change something exist only in the screen, not on the server.
  3. Data from forms is used without checking it.
  4. The database lets any signed-in user read other people's data.
  5. Error messages show internal details to visitors.

How to fix it

Check each of these before you tell anyone the app is live.

  1. Search the project and its git history for keys, tokens and passwords. If one was ever committed, create a new one and stop using the old one.
  2. Keep secrets in environment variables on the host, and keep the .env file out of git.
  3. For every page or action that shows or changes data, try it while signed out and while signed in as a different user.
  4. Make sure the server checks who is asking, not only the page that shows the button.
  5. Look at the rules on your database. Each person should be able to read only their own rows.
  6. If the app takes payments, check that it confirms payments on the server and never trusts the browser.
  7. Back up the database and test that you can restore it.

A review by a developer covers these in one call and gives you a list of what to change.

Getting help takes about a minute

No hiring, no back and forth. A real person looks at your app.

  1. 1

    Describe it

    Tell us what you need in plain words. You don't have to be technical or have an account to start.

  2. 2

    Free 15-minute call

    A verified developer calls you. Many tasks are sorted right there, and it costs nothing.

  3. 3

    Pay after you approve

    If there is more to do, you get one fixed price up front. You pay only once you are happy.

Get help

Real people, reviewed by hand

Developers who do this every day

Every developer is approved by our team before they can take a task. Describe yours and the first one who is free picks it up.

Get help

Questions

Is code written by an AI less safe?

Not by itself. The risk is that nobody read it closely. The same review is worth doing for code written by a person.

What is the most common serious mistake?

Secrets in the code or the repository, and data that any signed-in user can read.

Can't fix it yourself?
Real developers can help.

Get help