diff options
Diffstat (limited to 'compose/config/opa-pdp/data/action/data.json')
-rw-r--r-- | compose/config/opa-pdp/data/action/data.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/compose/config/opa-pdp/data/action/data.json b/compose/config/opa-pdp/data/action/data.json new file mode 100644 index 00000000..99145b74 --- /dev/null +++ b/compose/config/opa-pdp/data/action/data.json @@ -0,0 +1,43 @@ +{ + "user_roles": { + "alice": [ + "admin" + ], + "bob": [ + "editor" + ], + "charlie": [ + "viewer" + ] + }, + "role_permissions": { + "admin": { + "actions": [ + "read", + "write", + "delete" + ], + "resources": [ + "server", + "database" + ] + }, + "editor": { + "actions": [ + "read", + "write" + ], + "resources": [ + "server" + ] + }, + "viewer": { + "actions": [ + "read" + ], + "resources": [ + "server" + ] + } + } +} |