[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xacml-users] retrieving a list or query filter of resources the caller is authorized for
Hi Rich, (A) The use of Obligations or Advice An interesting preposition, although I don't agree with using the <Obligations> for any such purpose. There are two components (or phases) in XACML Access Control. (1) All factors that the PDP can determine from Target, Policies and Attributes. (2) Additional factors only the user or the PEP can supply. The latter uses the Obligations. Therefore, it is not fit to include any Responses about what PDP should/can determine into the <Obligations>. The suggestion to use <Advice> is not satisfactory, either. Because this is defined as an element that the PEP can safely ignore. An example in the OASIS XACML 3.0 specification contains a Policy that requests the Obligation that the PEP should send an email to the patient contact before the access is to be granted. Since such an Obligation cannot be met by PDP, it is a job for the PEP. Another example commonly used is a case, in which the end user must read and agree with the Conditions and Terms. This also cannot be performed by PDP. When the Decision comes back and the PEP gets back to the end user who triggered PDP decision, the PEP has a chance to collect the user response whether the user agrees with the condition of the use. (B) Theoretical considerations as to the nature of rules resulting from the Policies and how to query over them The XACML Target, Attributes, logics (combining algorithms and conditions etc.) and Permissions may be thought of a Function: f (Target | Policies) -> Decision i.e. Permit or Deny More precisely, f is, f (Target | Policies, a1, a2, a3, ...) -> Decision i.e. Permit or Deny where a1, a2, a3, ... are Attribute values that are used in the Request's Target and relevant Policies. They contain subject-id, action-id, resource-id, etc. which are literal values, not variables. The id values inside the Target may be of the ANY value (or not defined). The problem we are trying to solve is to find a kind of inverse function: (Note that we are not looking for an exact inverse function of f). g (Permit | Policies, subject Attributes) -> {[action-id, resource-id] , ...} where action-id and resource-id are literals or the ANY value. It returns a set of 2-tuple elements. The ANY value will make it unnecessary for any more element with a different value for the element in the list. The subject Attributes can be a sub-set of all the subject Attributes. It may contain only the subject Attributes that appear in relevant Policies that are considered for the subject. More precisely, g is, g (Permit | Policies, subject Attributes, a1, a2, a3, ... ) -> {[action-id, resource-id] , ...} where a1, a2, a3, ... are Attribute values for Actions, Resources and Environment, which appear in all the Policies that are the matches in the context of the function, dependent on the given parameters. Since there is no general solution for this problem (for non-specific, i.e. generalised, Policies, Actions and Resources), we can solve this only on the cases where all entities, i.e. Policies, Actions, Resources and Environment are finite. From the given Policies and the subject (and the other Attributes) of the query context, the problem is to identify the relevant subsets and see what [action-id, resource-id] tuples are the elements of those subsets. Since Attributes are often expressed as variables in Policies, there would be situations where there may be no element in some subsets. Assume that all [action-id, resource-id] tuples are sorted and categorised into subsets as the Policies dictate (how to do this is considered later), the question is whether finding the right subsets and the elements is equivalent to using the fixed value Prefix and a single wildcard Suffix for RegEx to search for the [action-id, resource-id] tuples. Assumptions: 1. A Policy can be interpreted as a single RegEx for Resources 2. The RegEx consists of a fixed value Prefix (e.g. /A/B/C) and a wildcard Suffix (i.e. *). 3. Resource Handles (a mapping of the real Resources references in order to enable the RegEx search) can be searched with RegEx properly to return a set of matched Resources properly. 4. A Resource can be mapped to a Resource Handle. The mapping is maintained somewhere. 5. We are interested in the Permit outcomes only. 1'. Since a Policy may contain multiple Attributes and conditions, the RegEx must have a capability to accommodate all these that are essential to give the Permit outcome only. (We are not interested in Deny or others). 2'. In the example given, each level inside the PATH expression seems to correspond to a condition and its value that the RegEx can examine. E.g. A Resource may be in a condition /A/B/C, while another one in /a/B/c. It indicate that the predicates used are the same but the predicate values are different. 2''. The Suffix represents each Resources within that privilege subset. 2'''. The necessary Attributes values are expressed as 2'. 3' & 4'. The Resource Handle represents all subsets exist plus a specific Resource Id for an individual Resource. 5'. Since a Policy may contain multiple Permit outcomes, the RegEx must have a capability to accommodate all Permit occurs into one RegEx syntax, e.g. must use logical OR. 6. It is expecting a list of Resources but this should be amended to get a list of [action-id, resource-id] tuples in our case. Proof If we can demonstrate that any of the XACML Policy syntax capabilities cannot be done with RegEx, that is an anti-Proof to deny the conjecture. It, however, seems it can done in case of a single Policy. It also seems possible to express the Policy-combining algorithms, e.g. Permit-overrides, Deny-overrides, Ordered-Permit-overrides, First-applicable, and so on. Direct Proof may be given to demonstrate whether all XACML syntax may be expressed in RegEx. That can be done but I will skip such an effort. (C) Modifications/comments The Resource Handle mapping for RegEx is not a part of XACML. Although it can be done by the PIP to return such a vlue as an Attribute and use it in the Policies, it is better if one can write Policies without using Handles. By any rate, how to construct Handles encompassing all Predicates may not be trivial (depending on the number of Policies). This type of query should be done not as an XACML Query but outside its scope. How the [action-id, resource-id] listing is done should be a blackbox. The Handle values may have to be dynamically revised when new Policies or predicates are dynamically added. Yoichi On 19/04/2010, at 2:30 PM, Rich.Levinson wrote: Hi Ralf, Yoichi, et al, |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]