maxdraco

Least privilege

The rule that every person or program should get only the access it needs for its job, and no more.

Concept Identity and access

Least privilege means giving each user, program or key only the permissions its task requires: a tool that only reads data gets read access, not the power to change or delete it. If that account is stolen or misbehaves, the damage is limited to that small set of permissions. The cost is more care up front, and a narrowly scoped account will sometimes be refused something it turns out to need.

See also

  • Authentication (and authorisation) Checking who someone is (authentication), then deciding what they are allowed to do (authorisation).
  • Machine identity An account that belongs to a program or service rather than a person, with its own credentials and permissions.
  • Allowlist A list of the things that are explicitly permitted; everything not on it is refused.
  • Access token A secret string a program presents to a service to prove it is allowed to act, often for a limited time.
  • API key A secret string a program sends to prove which account it is calling an API as.
  • Deny by default A security rule where nothing is allowed unless a rule specifically permits it.
  • Headscale Open-source, self-hosted replacement for Tailscale's coordination server.
  • Key rotation Replacing a password, key or token with a new one and retiring the old one.

Sources

  1. Least privilege (glossary)NISTofficial healthy, checked 2026-11-15 archived copy
  2. Principle of least privilegeWikipedia healthy, checked 2026-11-15 archived copy

In security catalogues