diff --git a/addons/cetmix_tower_server/security/cx_tower_key_security.xml b/addons/cetmix_tower_server/security/cx_tower_key_security.xml new file mode 100644 index 0000000..5f53277 --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_key_security.xml @@ -0,0 +1,99 @@ + + + + + Key: Manager Read Access - Users/Managers + + ['|', ('user_ids', 'in', [user.id]), ('manager_ids', 'in', [user.id])] + + + + + + + + + Key: Manager Read Access - Secret Type + + [('key_type', '=', 's')] + + + + + + + + + Key: Manager Read Access - SSH Key + + [('key_type', '=', 'k'), '|', + ('server_ssh_ids.user_ids', 'in', [user.id]), + ('server_ssh_ids.manager_ids', 'in', [user.id])] + + + + + + + + + + Key: Manager Write/Create Access - Managers + + [('manager_ids', 'in', [user.id])] + + + + + + + + + Key: Manager Write/Create Access - SSH Key + + ['&', ('key_type', '=', 'k'), + ('server_ssh_ids.manager_ids', 'in', [user.id])] + + + + + + + + + + Key: Manager Delete Access - Managers + + [('manager_ids', 'in', [user.id]), ('create_uid', '=', user.id)] + + + + + + + + + Key: Manager Delete Access - SSH Key + + [('key_type', '=', 'k'), + ('server_ssh_ids.manager_ids', 'in', [user.id]), + ('create_uid', '=', user.id)] + + + + + + + + + + Key: Root Full Access + + [(1, '=', 1)] + + +