Reputation: 23
I have a set of resources. Each resource has its own security policy which is a combination of security rules.
For creating these policies in XACML, what can I use : the element Policy
or the element PolicySet
?
For example :
In that case : should I create a policy element for resource1 and another one for resource 2 and so on, all that under a PolicySet element? Or should I create a policy element under that security rule 1 and 2 and so on ?
Upvotes: 1
Views: 192
Reputation: 13832
You can choose to model in many different ways. There is not necessarily a right or a wrong. When I train our customers, I usually recommend that you design policies so that:
The most common pattern is to define your resource hierarchy. For instance you would have the finance app > the account object > the personal information section > the name field.
You may then start to look at other attributes e.g. user attributes (role, department...)
You would typically use a PolicySet element until you know you will need a Rule in which case you would switch to a Policy. Keep in mind that PolicySet elements can contain PolicySet and Policy elements. This allows for an any-depth policy structure. If we revisit our example, we would have:
Upvotes: 1