leaked secret

A password, token or key that has been exposed, for example by being committed to a repository, and must be treated as known to others.

Anyone with any copy of the history can use the secret until it is rotated.

In more detail

Deleting the file or untracking it does not help, because copies, logs or history still hold the value. The fix is to revoke or rotate the secret so the old value stops working, then work out how it leaked.

Example

A token committed to Git stays in every earlier commit and every clone.

Related terms

Taught in

References