Domain 3 · Secrets Protection and Rotation · Secrets in code
Are secrets blocked before they reach shared code through pre-commit hooks and repository push protection, including commits by artificial intelligence (AI) coding assistants and AI agents, with every bypass approved?
Why it matters: Once a secret reaches a shared repository it must be treated as exposed even if the commit is deleted, because history, forks and clones keep it, and AI coding assistants now repeat the mistake at machine speed.
What each level looks like (choose a level)
Pre-commit secret blocking has begun, most likely informally, through a few developers running local tools. AI coding assistants may commit keys with nothing to stop them.
Push protection may be enabled on some repositories but typically not on new, archived or AI agent-written code, or senior developers use hooks well without a written requirement. Bypasses go unreviewed.
Push protection and pre-commit hooks cover most repositories, including commits by AI assistants and AI agents, and blocks are logged. Bypass approvals may be granted without anyone checking the content.
Repository coverage and bypass validity are reported against targets, and new repositories inherit protection automatically. Internal token formats are tested in the blocking rules.
Patterns, hooks and creator training are tuned from bypass samples and leak cases, and new token formats are added before they ship. AI agent-written code faces the same gates as human code.