Thoughts on Obligations
Categorization
Let's start with Daniel's suggestion that Obligation "categories" are handled via an attribute:
<obligation kind="async" id="timeout"/>30</obligation>
Extending that to Michiharu's concept of having four discrete categories of Obligation we have the following options for describing an Obligation:
<obligation category="atomic" id="encrypt"/>3DES</obligation> <obligation category="sequential" id="timeout"/>30</obligation> <obligation category="async" id="XXXXXXXX"/>ZZZZZZZZ</obligation> <obligation category="supplemental" id="log"/>/var/log</obligation> <obligation category="data-processing" id="filter"/>filter1</obligation>
This gives us OligationCategoryClasses which in turn are comprised of ObligationCategoryMembers. I propose that to combine Obligations we must first combine the ObligationCategories, then combine the ObligationCategoryMembers. If we are able to definitively describe the precedence of ObligationCategories and ObligationCategoryMembers, have an Exclusivity definition and there is some "root" policy from which a PDP may draw upon to determine precidence, we should be able to process any combination of Obligations.
DO WE NEED PRECEDENCE FOR ObligationCategories? (if not we need an assumption that Categories CANNOT be exclusive).
Processing
Processing occurs normally for the Policy: Targets matched, Rules combined and the corresponding Obligations are gathered. Combination of Obligations occurs by first ordering Categories using the precedence defined by the ObligationCategory combiner then by the precedence defined by the ObligationCategoryMember combiner, in effect creating a two dimensional resolution table.
For example, lets assume that we have three Obligations: encrypt, filter and log.
In this situation:
encrypt is of ObligationCategoryClass atomic
filter is of ObligationCategoryClass data-processing
log is of ObligationCateogryClass supplmental
Let's further assume that:
ObligationCategory encrypt is comprised of ObligationCategoryMembers 3DES, blowfish, plain
ObligationCategory filter is comprised of ObligationCategoryMembers filter1, filter2, filter3
ObligationCattegory log is comprised of ObligationCategoryMembers file, syslog, db
Finally, we assume:
ObligationCategory encrypt has ObligationCategoryExclusion sequence: 3DES, blowfish, plain
ObligationCategory has ObligationCategoryExclusion sequence: filter2, filter1
Suppose we have the following Obligations resulting from a Policy combination (to a result):
ObligationCategory: encrypt
ObligationCategoryMember: 3DESObligationCategory: encrypt
ObligationCategoryMember: blowfishObligationCategory: filter
ObligationCategoryMember: filter1
ObligationCategoryMember: filter2
ObligationCategoryMember: filter3ObligationCategory: log
ObligationCategoryMember: file
ObligationCategoryMember: syslog
ObligationCategoryMember: db
In tabular form this may be expressed as:
Category |
Member |
||
encrypt |
3DES |
blowfish |
|
filter |
filter1 |
filter2 |
filter3 |
log |
file |
syslog |
db |
Looking at ObligationCategoryExclusion for encrypt we see that 3DES and blowfish are exclusive and that 3DES has precedence over blowfish. Therefore blowfish is therefore discarded and 3DES is passed in the result.
Looking at ObligationCategoryExclusion for filter we see that filter1 and filter2 are exclusive and that filter2 takes precedence over filter1. Therefore filter2 is discarded and filter2 and filter3 are passed in the result.
Looking at ObligationCategoryExclusion for log we see that there are no exclusions. Therefore file, syslog and db are returned with the result.
XML
From a schema perspective the concepts above are expressed thus in a Root Schema:
TBD...
Implementation
It is proposed that PEPs that recieve a decision with an Obligation that is not implementable results in an ERROR condition.
Discussion
- Michiharu: I agree that defining obligation category and its members is important. Specifying preference and exclusion among members would also be necessary. Apparently, we need more constraints. For example, we may need preference on the argument of the obligation. In the case of "charge" obligation, it is sometimes accompanied with fee argument, e.g. charge $3. If two obligations of charge $3 and charge $4 are resulting obligations, some user would need maximum fee ($4), but some user would need additive fee ($7) as a final resulting decision. Michiharu: I think that one of the important thing is the scope of the constraint of the obligation. I think how to combine obligations should be consistent among entire policy specifications within relevant policies. What do you think?
Bill: To support something like "charge" as an Obligation I think we will have to add an attribute to ObligationCategory that indicates the values are cumulative. There are two ways to handle this that I can think of. The first, is to simply have a flag that indicates if the members of an ObligationCategory are exclusive or cumulative. The second is to create a more generic solution that invokes some sort of combining mechanism. Bill: This latter approach is where I believe Ron raised some issues because it takes the results of a hierarchical decision tree and subjects it to (non hierarhical) post processing. Bill: The problem I see with the first approach is that "cumulative/exclusive" is vague and requires some sort of type checking to ensure that performing operations on the Obligation values makes sense. I think topic requries further discussion. I don't think the first approach will work and I am starting to think of situations where the latter would become very complex (e.g. the "min" and "max" levels offered above--this is math operation with qualifiers. What happens if there are policies stating 2 different "max" levels?)
 XACML Wiki