diff options
author | muraliparthatechm <muraliparthasarathy.k@techmahindra.com> | 2024-12-18 18:15:17 +0100 |
---|---|---|
committer | muraliparthatechm <muraliparthasarathy.k@techmahindra.com> | 2024-12-19 13:39:05 +0100 |
commit | 32fd1f3c1e22dbeb69e3cc150a6fb1b72ea0ed53 (patch) | |
tree | a068657e6b3d7f87506a30f4ec3ce639cf06c5bc /compose/config/opa-pdp/policies/data/role | |
parent | 522cfc28114b076fbcb1da8b2a16894e647ed10c (diff) |
Update CSIT with opa-pdp (docker-compose env)
Issue-ID: POLICY-5211
Change-Id: I8b75e6e850fae171fbc75fc67cb59171a78df4e0
Signed-off-by: muraliparthatechm <muraliparthasarathy.k@techmahindra.com>
Diffstat (limited to 'compose/config/opa-pdp/policies/data/role')
-rw-r--r-- | compose/config/opa-pdp/policies/data/role/data.json | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/compose/config/opa-pdp/policies/data/role/data.json b/compose/config/opa-pdp/policies/data/role/data.json new file mode 100644 index 00000000..88ac41b8 --- /dev/null +++ b/compose/config/opa-pdp/policies/data/role/data.json @@ -0,0 +1,63 @@ +{ + "user_roles": { + "alice": [ + "admin" + ], + "bob": [ + "employee", + "billing" + ], + "eve": [ + "customer" + ] + }, + "role_grants": { + "customer": [ + { + "action": "read", + "type": "dog" + }, + { + "action": "read", + "type": "cat" + }, + { + "action": "adopt", + "type": "dog" + }, + { + "action": "adopt", + "type": "cat" + } + ], + "employee": [ + { + "action": "read", + "type": "dog" + }, + { + "action": "read", + "type": "cat" + }, + { + "action": "update", + "type": "dog" + }, + { + "action": "update", + "type": "cat" + } + ], + "billing": [ + { + "action": "read", + "type": "finance" + }, + { + "action": "update", + "type": "finance" + } + ] + } +} + |