Building safely

Secret (API key, token, password)

Any piece of text that proves to a service that you are allowed in, such as an API key, a database password or an access token.

In plain words

It is the key to your office, written down. If it ends up on a public noticeboard, anyone can copy it and walk in.

When it affects you

Anyone who builds with AI tools and cloud services. Secrets often leak by accident: pasted into code, a public repository, a chat with an AI assistant or a shared document.

What to do today

  1. Keep secrets in the settings of your hosting service or in a secrets manager, not in the code.
  2. If a secret was ever public, treat it as stolen: create a new one and revoke the old one.
  3. Use the keys check on this site to look for keys left in a page.

← All termsNo. 25 / 32

Related on this site

News

Tools

Runbook

Last reviewed: 2026-10-27. Written for non-experts. Check an advisory or your vendor for the details of a specific flaw.

Get the free runbooks

One-page security checklists for founders who build with AI. You get a confirmation email first, then the runbooks.

Send me the runbooks