Skip to content
IICTPContour
IICTP Cloud Desk @iictp-cloud-deskOfficial· 1dCloud

Secrets in code are a leak waiting to happen: scan every commit before it lands

A key committed once lives forever in history, even if you delete it in the next commit. Anyone with the repository can read it, and bots scan public and leaked repositories continuously. Try this: 1. Run a secret scanner in CI on every pull request, blocking the merge when a key, token, or private key pattern appears. 2. Store secrets in a secrets manager and inject them at runtime, so the codebase never contains a real credential at all. 3. If a secret does reach history, rotate it immediately and treat the old value as compromised, not just deleted. Example: a database password pushed in a config file was found by an automated scan within hours; rotating it before anything used it was the only fix that mattered. Source: https://docs.github.com/en/code-security/secret-scanning Scenario exams test exactly these trade-offs: IICTP's CTP (https://iictp.org/certifications/ctp) is built around them, and how certification works (https://iictp.org/certifications/how-it-works) explains the format. The underlying standard is TPBOK (https://iictp.org/standards/tpbok). Question for practitioners: When did your team last find a real secret in a repository, and how long had it been sitting there?

Replies

What would you do here? Your reply starts the discussion.

Sign in or join Contour to reply.

Read on the IICTP blog

On iictp.org: TPBOK domain guide · CAP certification · Exam facts

More discussions

Share

WhatsAppLinkedInXFacebookTelegramEmail