1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
pdp_name = "pdp1"
policy_name = "Delegation policy example"
model_name = "Delegation"
subjects = {"user0": "", }
objects = {"user1": "", }
actions = {"delegate": ""}
subject_categories = {"subjectid": "", }
object_categories = {"delegated": "", }
action_categories = {"delegation-action": "", }
subject_data = {"subjectid": {"user0": ""}}
object_data = {"delegated": {"user1": ""}}
action_data = {"delegation-action": {"delegate": ""}}
subject_assignments = {"user0": {"subjectid": "user0"}}
object_assignments = {"user1": {"delegated": "user1"}}
action_assignments = {"delegate": {"delegation-action": "delegate"}}
meta_rule = {
"session": {"id": "", "value": ("subjectid", "delegated", "delegation-action")},
}
rules = {
"session": (
{
"rule": ("user0", "user1", "delegate"),
"instructions": (
{
"update": {"request:subject": "user1"} # update the current user with "user1"
},
{"chain": {"security_pipeline": "rbac"}}
)
},
)
}
|