Glossary

What is least privilege?

Least privilege is the principle that every user, program or agent should have only the access it needs for its task, and no more.

The principle of least privilege says that an identity should hold the minimum permissions required to do its job, for the minimum time. NIST defines it as a security design principle in SP 800-53 (control AC-6). Applied to credentials, it means choosing a restricted API key over an all-powerful one, a fine-grained personal access token limited to one repository, a read-only database role for a reporting job, and an IAM policy that lists exact actions and resources instead of wildcards. The benefit is containment: when a credential leaks, as they eventually do, the damage is bounded by what it could do. It also makes behaviour easier to audit, since a narrow permission set has fewer legitimate uses. Least privilege is hard to maintain, because permissions tend to accumulate, so teams review them regularly, remove unused grants and prefer short-lived access that expires on its own. For AI agents it is especially important: an agent working on one task has no need for every secret on the machine. Per-project, per-task grants with an expiry are the practical form. BotPassword is built around grants created only in its own interface, scoped to a project and intent, with an expiry.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.