Skip to content

Commit

Permalink
[andromeda] revamp policy.json
Browse files Browse the repository at this point in the history
  • Loading branch information
notandy committed Jun 20, 2024
1 parent 1e2dfaa commit dab2c78
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions global/andromeda/templates/etc/_policy.json.tpl
Original file line number Diff line number Diff line change
@@ -1,53 +1,50 @@
{
"cloud_admin": "project_domain_name:ccadmin and project_name:cloud_admin",
"member": "role:member",
"viewer": "role:gtm_viewer",
"admin": "role:gtm_admin",
"project_scope": "project_id:%(project_id)s",
"public_scope": "'public':%(scope)s",
"shared_scope": "'shared':%(scope)s",
"member": "role:member and rule:project_scope",
"viewer": "role:gtm_viewer and rule:project_scope",
"admin": "role:gtm_admin and rule:project_scope",
"context_is_admin": "rule:cloud_admin or rule:admin",
"context_is_editor": "rule:context_is_admin or rule:member",
"context_is_viewer": "rule:context_is_editor or rule:viewer",
"andromeda:domain:get_all": "rule:context_is_viewer",
"andromeda:domain:get_all-global": "rule:cloud_admin",
"andromeda:domain:post": "rule:context_is_editor",
"andromeda:domain:put": "rule:context_is_editor",
"andromeda:domain:get_one": "rule:context_is_viewer",
"andromeda:domain:delete": "rule:context_is_editor",
"andromeda:pool:get_all": "rule:context_is_viewer",
"andromeda:pool:get_all-global": "rule:cloud_admin",
"andromeda:pool:post": "rule:context_is_editor",
"andromeda:pool:put": "rule:context_is_editor",
"andromeda:pool:get_one": "rule:context_is_viewer",
"andromeda:pool:delete": "rule:context_is_editor",
"andromeda:member:get_all": "rule:context_is_viewer",
"andromeda:member:get_all-global": "rule:cloud_admin",
"andromeda:member:post": "rule:context_is_editor",
"andromeda:member:put": "rule:context_is_editor",
"andromeda:member:get_one": "rule:context_is_viewer",
"andromeda:member:delete": "rule:context_is_editor",
"andromeda:monitor:get_all": "rule:context_is_viewer",
"andromeda:monitor:get_all-global": "rule:cloud_admin",
"andromeda:monitor:post": "rule:context_is_editor",
"andromeda:monitor:put": "rule:context_is_editor",
"andromeda:monitor:get_one": "rule:context_is_viewer",
"andromeda:monitor:delete": "rule:context_is_editor",
"andromeda:datacenter:get_all": "rule:context_is_viewer",
"andromeda:datacenter:get_all-global": "rule:cloud_admin",
"andromeda:datacenter:get_all": "rule:context_is_viewer or rule:public_scope",
"andromeda:datacenter:post": "rule:context_is_editor",
"andromeda:datacenter:put": "rule:context_is_editor",
"andromeda:datacenter:get_one": "rule:context_is_viewer",
"andromeda:datacenter:get_one": "rule:context_is_viewer or rule:public_scope",
"andromeda:datacenter:delete": "rule:context_is_editor",
"andromeda:geomap:get_all": "rule:context_is_viewer",
"andromeda:geomap:get_all-global": "rule:cloud_admin",
"andromeda:geomap:get_all": "rule:context_is_viewer or rule:shared_scope",
"andromeda:geomap:post": "rule:context_is_editor",
"andromeda:geomap:put": "rule:context_is_editor",
"andromeda:geomap:get_one": "rule:context_is_viewer",
"andromeda:geomap:get_one": "rule:context_is_viewer or rule:shared_scope",
"andromeda:geomap:delete": "rule:context_is_editor",
"andromeda:service:get_all": "rule:context_is_admin",
Expand Down

0 comments on commit dab2c78

Please sign in to comment.