A secret is sensitive data used to authenticate or authorize tools and services, such as API keys, access tokens, passwords, signing keys, and cloud credentials. In software development, secrets often live in environment variables, configuration files, secret managers, or CI/CD variables so applications and automation can access databases, repositories, and deployment systems without a human typing credentials each time.
Secrets matter because anyone who steals one may inherit the permissions attached to it. Attackers commonly search source code, build logs, developer machines, package registries, and compromised extensions for exposed secrets, then use them to move into repositories, cloud accounts, or automation pipelines. Defenders reduce this risk by storing secrets in dedicated vaults, rotating them regularly, limiting scope with least privilege, scanning for leaks, and preventing tools from printing or exporting them unnecessarily.


