Skip to content
Web Security

What is Secrets in Code?

Credentials accidentally committed to repositories, chat logs, or client bundles where history preserves them forever. BYOB project secrets live in server environment, so agents request missing keys instead of pasting values.

Example

A deploy fails because a payment key is missing. Instead of pasting the value into chat or code, the developer adds it through project secrets, where server environment picks it up and presence checks turn green.

What people get wrong

Deleting a leaked secret from the latest commit and moving on. History preserves every version, so revocation plus rotation is the only fix after exposure.

Sources

Browse all Web Security terms →