Attribute-based access control
Definition
ABAC evaluates policies written over attributes of the subject (department, clearance), the resource (owner, classification, tenant), the action and the environment (time, network, device) to reach an allow or deny decision.
In practice
ABAC expresses rules that roles cannot: "managers may approve expenses under 5,000 in their own department", "records are readable by their owner". Policies are often kept in a policy language (OPA Rego, Cedar, XACML) and evaluated by a policy decision point that the service or a sidecar calls.
Flexibility costs clarity: answering "who can see this record?" means evaluating every policy against every user. Decisions need fresh attribute data, which may require extra lookups on the request path. Many systems combine RBAC for coarse function access with attribute checks for object-level rules.
Example
Policy: allow approve on an expense if user.department == expense.department and expense.amount < 5000 and user.role == "manager".