What is least privilege?
Least privilege is the security principle that every user, program or key should be given only the access it needs to do its job, and nothing more.
Applied to people, it means a developer gets read access to production logs, not administrator rights over the whole account. Applied to software, it means a service runs as its own unprivileged user, a database account can reach only its own schema, and an API key carries only the scopes its job requires. The principle limits the damage of any single mistake or compromise: a leaked read-only key exposes far less than a leaked administrator key.
In practice it needs upkeep, because permissions accumulate as roles change. Grants should be reviewed, short-lived where possible, and removed when no longer needed. Cloud policies make the idea concrete: an IAM policy that lists exact actions and resources, not a wildcard.
Example
Too broad: "Action": "s3:*", "Resource": "*"
Least privilege: "Action": "s3:GetObject", "Resource": "arn:aws:s3:::example-reports/*"