Policy-based access control (PBAC): make policy decisions consistent across services
Learn how policy administration, evaluation and enforcement fit together, how XACML decision states and obligations work, and what to review before centralizing authorization.
Policy-based access control (PBAC): make policy decisions consistent across services
Policy-based access control (PBAC) expresses who may perform which action on which resource as rules, evaluates those rules for each request, and enforces the result. Roles and attributes can be policy inputs; the defining operational questions are how policies are authored, combined, evaluated and enforced. “PBAC” is not one universal standard name, so compare actual policy languages and decision/enforcement models. This article uses OASIS XACML 3.0 as one concrete standard, not as a synonym for all PBAC systems.
From request to enforcement
When an employee opens a report, the application identifies the user, report and read action, then asks for an authorization decision. The decision component obtains needed attributes and evaluates applicable rules. A separate enforcement component allows or blocks the request. XACML describes these responsibilities as:
| Component | Responsibility | Operational question |
|---|---|---|
| PAP (policy administration point) | Creates and manages policies or policy sets | Who approves and versions a change? |
| PDP (policy decision point) | Evaluates applicable policy and returns a decision | Which policy version and inputs were evaluated? |
| PEP (policy enforcement point) | Requests a decision and applies it to access | Does every API and data path enforce it? |
| PIP (policy information point) | Supplies attribute values | Where did each value come from, and how fresh is it? |
A service may perform more than one role. Merely drawing these components does not secure a system: hiding a button is insufficient if another API can return the same report without a PEP check.
Policies, combining rules and follow-up actions
In XACML 3.0, a policy can contain rules, a target that determines whether it applies, a rule-combining algorithm, and optional obligations or advice. A policy set also needs a combining algorithm. State explicitly what happens when a permit and a deny both match; do not assume that a product's default is the one your organization intends.
For example, a hypothetical report service might permit read only when the employee is active, the report belongs to the employee's team and its classification is no higher than confidential. If a required status or classification cannot be obtained, the sensitive request must not become an unexamined permit. Define stable team identifiers, classification order, attribute sources, missing-value behavior and policy combination before implementing the rule.
An obligation is a required action associated with a decision; advice is supplemental information and is treated differently by the standard. If a Permit includes a watermark obligation, the PEP may permit access only when it understands and can fulfill that obligation. If it cannot apply the watermark, it must not deliver the report. A decision alone does not perform the follow-up action.
Read the decision state at the enforcement point
| XACML result | Meaning | PEP review |
|---|---|---|
Permit | Policy evaluation permits the request | Permit only when accompanying obligations can be fulfilled. |
Deny | Policy evaluation denies it | Block access and handle any returned obligations under the PEP model. |
NotApplicable | Evaluated policies did not apply to the request | Check the configured profile; do not assume this means permit. |
Indeterminate | An error prevented a definite decision | Log and follow an approved failure rule; do not treat a sensitive request as a definite permit. |
XACML's base PEP model leaves behavior for NotApplicable and Indeterminate undefined. Its deny-biased PEP model denies for every result other than Permit. The specification warns against treating NotApplicable as Permit in open environments unless matching rules were carefully designed for all applicable inputs. Therefore, verify the PEP profile and policy behavior together. In the hypothetical confidential-report example, delivery occurs only after an explicit permit and successful execution of every required obligation.
Review before deployment
Define protected resources and actions such as `read`, `update`, `export` and `delete`, including every server-side path.
Record the business or security basis, policy owner and approver; review separation between changing policy and enforcing it.
Define each required subject, resource, action and environment attribute: meaning, type, source, freshness and behavior when missing or stale.
Specify the combining algorithm and expected outcomes when permit and deny rules overlap, no policy applies, or evaluation fails.
Trace the policy version and input sources, then verify that every PEP path enforces the result and required obligations.
Test normal permits and denials plus missing or stale data, conflicting rules, policy errors and decision-service outages. Deploy in a limited scope, compare expected results with logs, then expand.
Review ownerless or overlapping rules and rules for retired resources; keep change history and approval evidence.
Central evaluation can make rules easier to review and reuse across services, but adds network, policy and attribute-source dependencies. Decide in advance whether an outage means deny, a tightly bounded fallback, or reduced read-only access. A small application with few stable rules may not need a separate policy platform. Choose based on the need for shared rules, change frequency, resource sensitivity, failure tolerance and review ownership.
NIST SP 800-178 compares XACML and NGAC as standards with similar goals but different policy representations and implementations. Do not infer interoperability or product behavior from the phrase “policy-based”; verify the supported language, combining algorithms, decision states, obligation handling and attribute delivery.
References
[OASIS XACML 3.0 Core Specification](https://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html)
[NIST SP 800-178: comparison of XACML and NGAC](https://csrc.nist.gov/pubs/sp/800/178/final)
[NIST SP 800-162 Rev. 2: ABAC definition and considerations](https://csrc.nist.gov/pubs/sp/800/162/upd2/final)