OASIS ACAL [XACML] TC

 View Only
  • 1.  RBAC Progile §5.3

    Posted 09-07-2026 14:21

    Steven,

    A couple of the issues on the latest PR got much larger than I feel comfortable trying to resolve via PR comments, so I'm posting one of them here in the hopes email may give us a bit more latitude in capturing the conversation. I have worked through most of the requests, but this one I think needs some explanation.


    ---


    The parenthetical you flagged - "Because an ACAL RuleType object has no Target, the action test ... is carried here on the nested PolicyType object's Target" - is gone. It's replaced with:

    [[RBAC]] §5.3 defines it as a <Policy> containing a Permit <Rule> and does not fix whether the hasPrivilegesOfRole action test is in a <Target> or a <Condition>; [[RBAC]] §2.5's example puts both that test and the queried-role test in the <Rule>'s <Condition>. This profile ports the <Policy> as a nested PolicyType object and likewise leaves the placement of the action test open.

    The §4.3 "Changes From the Previous Version" bullet is reworded to match.

    Constraint 1

    Was: "SHALL have a Target that evaluates to true only when the ...action-id attribute has the value ...has-privileges-of-role, so that the HasPrivilegesOfRole Policy is NotApplicable to every ordinary access request."

    Now: "SHALL evaluate to NotApplicable for every request whose ...action-id attribute does not have the value ...has-privileges-of-role, so that it does not affect any ordinary access request. This action test MAY be applied by the nested PolicyType object's Target, by its Rule's Condition, or by both."

    Why: The old constraint mandated a <Target>. Per your point, XACML 3.0 RBAC §5.3 states only what the <Rule> must permit, and §2.5's example does the action test in the <Condition>. This states the functional outcome and leaves placement to the author. Constraint 1 also does the work of forcing the action test to exist somewhere: if it were nowhere, a non-has-privileges-of-role request whose resource happens to carry the role attribute would make the role-only Condition true and the Policy Permit (which this SHALL forbids).

    Constraint 3

    Was: "SHALL contain a single Rule with Effect Permit whose Condition evaluates to true for such a request only if the resource role attribute names this Permission Policy's role."

    Now: "For a has-privileges-of-role request, SHALL evaluate to Permit if the resource role attribute names this Permission Policy's role, and to NotApplicable if it does not. It SHALL contain exactly one Rule, with Effect Permit, and SHALL NOT gate that Permit on any subject attribute. [[RBAC]] §5.3 requires the Rule to "permit any Subject" to make the query, so that any subject who reaches the HasPrivilegesOfRole Policy (through this role's Role Policy, or through a senior role's Permission Policy in the hierarchy) and asks about this role receives Permit."

    Why: the old wording ("Condition ... true for such a request") leaned on the old constraint 1 having already gated the action in the <Target>. It's now stated as the Policy's behaviour for a has-privileges-of-role request - decoupled from where the action test lives. It also adds the positive requirement that XACML 3.0 §5.3 makes ("SHALL permit any Subject"): The query must not be gated on subject attributes, so a senior-role holder always gets Permit.

    Constraint 4 (New)

    This popped up as I was editing the issues above.

    New: "SHALL have a CombiningAlgId that evaluates to NotApplicable when its single Rule evaluates to NotApplicable - permit-overrides, deny-overrides, first-applicable, or an ordered variant. This is stricter than [Section 5.3]: permit-unless-deny (forbidden there) would answer 'has privileges' for a role the subject does not hold; deny-unless-permit (permitted there) would make this Policy return Deny rather than NotApplicable for any request its Rule does not match - including an ordinary access request, where constraint 1's action test is carried only in the Rule's Condition - and a senior role's Permission Policy combining that Deny under deny-overrides would override a legitimate Permit."

    Why: Two hazards.

    1. Queried role ≠ this PP's role → the single Rule is NotApplicable → permit-unless-deny synthesizes Permit` → false "yes."

    2. Relaxing constraint 1 opened a second: with the action test only in the Condition, an ordinary request also makes the Rule NotApplicable; permit-unless-deny → Permit (violates constraint 1), and deny-unless-permit → Deny, which a senior role inheriting under deny-overrides turns into a denied-but-should-be-permitted access.

    This constraint requires an algorithm that passes NotApplicable through unchanged (which, among the standard set, rules out both permit-unless-deny and deny-unless-permit here, even though §5.3 allows deny-unless-permit elsewhere.)


    ---


    I will keep working through the other feedback inline on the PR (I hope) while you all digest this.


    thanks


    b




  • 2.  RE: RBAC Progile §5.3

    Posted 09-08-2026 03:46

    Throwing a spanner in the works ...

    The XACML 3.0 RBAC profile had to wrap the rule in a HasPrivilegesOfRole Policy because a Permission Policy Set couldn't have a child rule. ACAL doesn't have an analogous limitation. An ACAL Permission Policy can have a HasPrivilegesOfRole Rule as a child. That changes the wording on constraints 1 and 3, and blows away constraint 4.



    ------------------------------
    Steven Legg
    Product Architect
    ViewDS Identity Solutions
    ------------------------------



  • 3.  RE: RBAC Progile §5.3

    Posted 09-08-2026 14:16

    Wow, checking the port against XACML's structure rather than what the feature does was a huge miss on my part; one that goes a bit further than §5.3.4. On the upside, it's a great example for fine tuning the audit skills, I guess.

    Here is a summary of the latest commit I am sitting on now:

    --

    §5.3.4 is now a HasPrivilegesOfRole Rule, directly in the Permission Policy's CombinerInput - no wrapper <Policy>, no <Target>, no CombiningAlgId:

    A Permission Policy MAY contain a HasPrivilegesOfRole Rule: a Rule with Effect Permit, directly in the Permission Policy's CombinerInput ... ([[RBAC]] §5.3 defines the feature as a HasPrivilegesOfRole <Policy> wrapping one Permit <Rule>. XACML needs the wrapper because a <PolicySet> cannot contain a <Rule>; an ACAL PolicyType object can, so this profile places the rule directly. [[RBAC]] §2.5's example already carries the whole test in the <Rule>'s <Condition>.)

    1. SHALL have a Condition that evaluates to true if and only if (a) the action-id is has-privileges-of-role and (b) the resource role attribute names this Permission Policy's role. Test (a) makes the rule NotApplicable for every request that is not a query.

    2. (request carries the queried role as a resource attribute - unchanged)

    3. SHALL NOT test any subject attribute in its Condition - [[RBAC]] §5.3's "permit any Subject". With (1), the rule returns Permit for every matching query, whichever subject makes it, once evaluation reaches this Permission Policy.

    Constraint 4 is gone.

    Key touch points: §4.3 change log bullet, §5.3 rule, §6.1, §9, the §7 worked example in XML/JSON/YAML (the nested <Policy> is one <Rule> now), the §7.3 trace, the glossary, §2.1, §10.2, and the Reviewer's Guide.

    Historical context: The original §5.3 forbade deny-unless-permit at a Role Policy, a Permission Policy, and the entry point. Cyril's review said don't forbid it. We relaxed it everywhere, which was too broad: at a Permission Policy it's unsafe because of inheritance. Removing the wrapper just removed the one §9 bullet sitting near it. So the actual framing is: "the relaxation we made to address your and Cyril's entry-point point turned out to be too broad; re-checking after the re-model caught that deny-unless-permit is still dangerous at a Permission Policy, so §5.3 now forbids it there specifically."

    --

    If this looks OK in general, I can push another commit with these changes (and the others discussed in the PR thread) and we can take another run at this. All of the other suggestions were pretty much woven in at face value, so I am thinking we should be pretty close one 5.3.4 is ironed out.


    thanks


    b


    On Sep 8, 2026, at 12:46 AM, Steven Legg via OASIS <Mail@mail.groups.oasis-open.org> wrote:






  • 4.  RE: RBAC Progile §5.3

    Posted 09-08-2026 21:37

    This looks okay in general. Go ahead with the commit.



    ------------------------------
    Steven Legg
    Product Architect
    ViewDS Identity Solutions
    ------------------------------