summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Pryor <spryor@redhat.com>2017-09-26 10:32:04 -0400
committerSean Pryor <spryor@redhat.com>2017-09-26 10:32:04 -0400
commit3d31f7396fbb0839e9b1fa2c88778eda04bc1341 (patch)
treeb1a887be568875672fda9468a1f299521b48c84c
parent1597127b3f5e497b10078434af8529e87e65b4ec (diff)
downloadopenstack-access-policy-3d31f7396fbb0839e9b1fa2c88778eda04bc1341.zip
openstack-access-policy-3d31f7396fbb0839e9b1fa2c88778eda04bc1341.tar.gz
openstack-access-policy-3d31f7396fbb0839e9b1fa2c88778eda04bc1341.tar.xz
Updated nova policy
Change-Id: I5eca90093826b8a3b802c1a554a9ece48535a73d
-rw-r--r--etc/nova/policy.json180
1 files changed, 180 insertions, 0 deletions
diff --git a/etc/nova/policy.json b/etc/nova/policy.json
index 2c63c08..756ed11 100644
--- a/etc/nova/policy.json
+++ b/etc/nova/policy.json
@@ -1,2 +1,182 @@
{
+
+ "readonly": "(project_id:%(project_id)s and role:readonly)",
+ "domain_readonly": "(domain_id:%(domain_id)s and role:readonly)",
+ "global_readonly": "(role:readonly)",
+ "_member_role": "(role:member or role:_member_)",
+ "member": "(project_id:%(project_id)s and rule:_member_role)",
+ "domain_member": "(domain_id:%(domain_id)s and rule:_member_role)",
+ "admin": "(is_admin:True or role:admin)",
+ "owner": "(user_id:%(user_id)s and rule:_member_role)",
+
+ "os_compute_api:os-evacuate": "rule:admin",
+ "os_compute_api:servers:create": "rule:admin or rule:member",
+ "os_compute_api:os-extended-volumes": "rule:admin or rule:member",
+ "os_compute_api:servers:create:forced_host": "rule:admin",
+ "os_compute_api:os-aggregates:remove_host": "rule:admin",
+ "os_compute_api:os-console-output": "rule:admin or rule:member",
+ "os_compute_api:os-floating-ips": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-aggregates:update": "rule:admin",
+ "os_compute_api:os-pci:pci_servers": "rule:admin or rule:member",
+ "os_compute_api:servers:start": "rule:admin or rule:member",
+ "os_compute_api:os-keypairs:create": "rule:admin or user_id:%(user_id)s",
+ "os_compute_api:servers:trigger_crash_dump": "rule:admin or rule:member",
+ "os_compute_api:server-metadata:index": "rule:admin or rule:member",
+ "os_compute_api:servers:create_image": "rule:admin or rule:member",
+ "os_compute_api:os-virtual-interfaces": "rule:admin or rule:member",
+ "os_compute_api:os-server-groups": "rule:admin or rule:member",
+ "os_compute_api:os-server-tags:delete_all": "@",
+ "os_compute_api:os-keypairs:delete": "rule:admin or user_id:%(user_id)s",
+ "os_compute_api:os-floating-ips-bulk": "rule:admin",
+ "os_compute_api:os-simple-tenant-usage:list": "rule:admin",
+ "os_compute_api:os-quota-class-sets:show": "is_admin:True or quota_class:%(quota_class)s",
+ "os_compute_api:os-suspend-server:resume": "rule:admin or rule:member",
+ "os_compute_api:os-tenant-networks": "rule:admin or rule:member",
+ "os_compute_api:os-floating-ip-dns:domain:update": "rule:admin",
+ "os_compute_api:os-hypervisors": "rule:admin",
+ "os_compute_api:os-consoles:delete": "rule:admin or rule:member",
+ "os_compute_api:os-networks-associate": "rule:admin",
+ "os_compute_api:os-volumes-attachments:index": "rule:admin or rule:member",
+ "os_compute_api:os-pci:show": "rule:admin",
+ "os_compute_api:os-remote-consoles": "rule:admin or rule:member",
+ "os_compute_api:limits": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-cells:create": "rule:admin",
+ "os_compute_api:os-aggregates:delete": "rule:admin",
+ "os_compute_api:servers:migrations:show": "rule:admin",
+ "os_compute_api:os-consoles:create": "rule:admin or rule:member",
+ "os_compute_api:os-aggregates:set_metadata": "rule:admin",
+ "os_compute_api:os-create-backup": "rule:admin or rule:member",
+ "os_compute_api:server-metadata:delete": "rule:admin or rule:member",
+ "os_compute_api:os-pause-server:pause": "rule:admin or rule:member",
+ "os_compute_api:os-server-external-events:create": "rule:admin",
+ "os_compute_api:server-metadata:show": "rule:admin or rule:member",
+ "os_compute_api:os-rescue": "rule:admin or rule:member",
+ "os_compute_api:os-agents": "rule:admin",
+ "os_compute_api:os-server-tags:delete": "rule:admin or rule:member",
+ "os_compute_api:os-flavor-extra-specs:show": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-attach-interfaces:delete": "rule:admin or rule:member",
+ "os_compute_api:os-extended-availability-zone": "rule:admin or rule:member",
+ "os_compute_api:os-instance-actions:events": "rule:admin",
+ "os_compute_api:os-fixed-ips": "rule:admin",
+ "os_compute_api:os-flavor-manage": "rule:admin",
+ "os_compute_api:server-metadata:create": "rule:admin or rule:member",
+ "os_compute_api:os-shelve:shelve": "rule:admin or rule:member",
+ "os_compute_api:servers:resize": "rule:admin or rule:member",
+ "os_compute_api:os-aggregates:add_host": "rule:admin",
+ "os_compute_api:os-flavor-access:add_tenant_access": "rule:admin",
+ "os_compute_api:os-cells:update": "rule:admin",
+ "os_compute_api:os-server-diagnostics": "rule:admin",
+ "os_compute_api:servers:revert_resize": "rule:admin or rule:member",
+ "os_compute_api:os-cells": "rule:admin",
+ "os_compute_api:servers:update": "rule:admin or rule:member",
+ "os_compute_api:servers:index:get_all_tenants": "rule:admin",
+ "os_compute_api:os-admin-actions:reset_network": "rule:admin",
+ "os_compute_api:os-certificates:show": "rule:admin or rule:member",
+ "os_compute_api:os-config-drive": "rule:admin or rule:member",
+ "os_compute_api:os-instance-actions": "rule:admin or rule:member",
+ "os_compute_api:os-attach-interfaces:create": "rule:admin or rule:member",
+ "os_compute_api:os-volumes-attachments:create": "rule:admin or rule:member",
+ "os_compute_api:os-consoles:index": "rule:admin or rule:member",
+ "os_compute_api:os-used-limits": "rule:admin",
+ "os_compute_api:os-migrations:index": "rule:admin",
+ "os_compute_api:os-admin-actions:reset_state": "rule:admin",
+ "os_compute_api:os-flavor-rxtx": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-quota-sets:defaults": "@",
+ "os_compute_api:os-fping:all_tenants": "rule:admin",
+ "os_compute_api:os-flavor-extra-specs:create": "rule:admin",
+ "os_compute_api:os-lock-server:lock": "rule:admin or rule:member",
+ "os_compute_api:os-flavor-extra-specs:index": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:servers:create_image:allow_volume_backed": "rule:admin or rule:member",
+ "os_compute_api:os-extended-status": "rule:admin or rule:member",
+ "os_compute_api:os-assisted-volume-snapshots:delete": "rule:admin",
+ "os_compute_api:servers:migrations:force_complete": "rule:admin",
+ "os_compute_api:os-extended-server-attributes": "rule:admin",
+ "os_compute_api:os-assisted-volume-snapshots:create": "rule:admin",
+ "os_compute_api:os-consoles:show": "rule:admin or rule:member",
+ "os_compute_api:os-admin-actions:inject_network_info": "rule:admin",
+ "os_compute_api:servers:create:attach_volume": "rule:admin or rule:member",
+ "os_compute_api:os-server-tags:update_all": "@",
+ "os_compute_api:os-quota-sets:show": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-server-tags:update": "@",
+ "os_compute_api:os-quota-class-sets:update": "rule:admin",
+ "os_compute_api:image-size": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-migrate-server:migrate": "rule:admin",
+ "os_compute_api:extensions": "rule:admin or rule:member",
+ "os_compute_api:flavors": "rule:admin or rule:member",
+ "os_compute_api:os-flavor-access:remove_tenant_access": "rule:admin",
+ "os_compute_api:os-simple-tenant-usage:show": "rule:admin or rule:member",
+ "os_compute_api:os-floating-ip-pools": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:os-volumes-attachments:show": "rule:admin or rule:member",
+ "os_compute_api:os-security-groups": "rule:admin or rule:member",
+ "os_compute_api:os-keypairs:show": "rule:admin or user_id:%(user_id)s",
+ "os_compute_api:os-pci:index": "rule:admin",
+ "os_compute_api:os-deferred-delete": "rule:admin or rule:member",
+ "os_compute_api:os-hide-server-addresses": "is_admin:False",
+ "os_compute_api:os-flavor-extra-specs:update": "rule:admin",
+ "os_compute_api:os-pause-server:unpause": "rule:admin or rule:member",
+ "os_compute_api:os-availability-zone:list": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:servers:detail": "rule:admin or rule:member",
+ "os_compute_api:servers:stop": "rule:admin or rule:member",
+ "os_compute_api:os-pci:detail": "rule:admin",
+ "os_compute_api:servers:rebuild": "rule:admin or rule:member",
+ "os_compute_api:ips:index": "rule:admin or rule:member",
+ "os_compute_api:os-quota-sets:delete": "rule:admin",
+ "os_compute_api:os-quota-sets:detail": "rule:admin or rule:readonly",
+ "os_compute_api:os-availability-zone:detail": "rule:admin or rule:readonly",
+ "cells_scheduler_filter:TargetCellFilter": "is_admin:True",
+ "os_compute_api:os-keypairs": "rule:admin or rule:member",
+ "os_compute_api:servers:show": "rule:admin or rule:member",
+ "network:attach_external_network": "is_admin:True",
+ "os_compute_api:os-cloudpipe": "rule:admin",
+ "os_compute_api:os-certificates:create": "rule:admin or rule:member",
+ "os_compute_api:os-aggregates:show": "rule:admin",
+ "os_compute_api:os-cells:sync_instances": "rule:admin",
+ "os_compute_api:ips:show": "rule:admin or rule:member",
+ "os_compute_api:os-server-password": "rule:admin or rule:member",
+ "os_compute_api:os-server-usage": "rule:admin or rule:member",
+ "os_compute_api:os-services": "rule:admin",
+ "os_compute_api:servers:detail:get_all_tenants": "rule:admin",
+ "os_compute_api:servers:index": "rule:admin or rule:member",
+ "os_compute_api:os-keypairs:index": "rule:admin or user_id:%(user_id)s",
+ "os_compute_api:os-fping": "rule:admin or rule:member",
+ "os_compute_api:os-server-tags:index": "@",
+ "os_compute_api:os-suspend-server:suspend": "rule:admin or rule:member",
+ "os_compute_api:os-admin-actions": "rule:admin",
+ "os_compute_api:servers:confirm_resize": "rule:admin or rule:member",
+ "os_compute_api:os-networks:view": "rule:admin or rule:member",
+ "os_compute_api:os-floating-ip-dns": "rule:admin or rule:member",
+ "os_compute_api:os-quota-sets:update": "rule:admin",
+ "os_compute_api:os-volumes": "rule:admin or rule:member",
+ "os_compute_api:os-admin-password": "rule:admin or rule:member",
+ "os_compute_api:os-baremetal-nodes": "rule:admin",
+ "os_compute_api:servers:show:host_status": "rule:admin",
+ "os_compute_api:os-aggregates:index": "rule:admin",
+ "os_compute_api:os-flavor-extra-specs:delete": "rule:admin",
+ "os_compute_api:servers:migrations:delete": "rule:admin",
+ "os_compute_api:os-instance-usage-audit-log": "rule:admin",
+ "os_compute_api:os-aggregates:create": "rule:admin",
+ "os_compute_api:os-lock-server:unlock:unlock_override": "rule:admin",
+ "os_compute_api:os-networks": "rule:admin",
+ "os_compute_api:os-server-tags:show": "@",
+ "os_compute_api:os-lock-server:unlock": "rule:admin or rule:member",
+ "os_compute_api:os-cells:delete": "rule:admin",
+ "os_compute_api:server-metadata:update_all": "rule:admin or rule:member",
+ "os_compute_api:os-security-group-default-rules": "rule:admin",
+ "os_compute_api:servers:reboot": "rule:admin or rule:member",
+ "cells_scheduler_filter:DifferentCellFilter": "is_admin:True",
+ "os_compute_api:servers:migrations:index": "rule:admin",
+ "os_compute_api:os-flavor-access": "rule:admin or rule:member or rule:readonly",
+ "os_compute_api:servers:delete": "rule:admin or rule:member",
+ "os_compute_api:os-migrate-server:migrate_live": "rule:admin",
+ "os_compute_api:servers:create:attach_network": "rule:admin or rule:member",
+ "os_compute_api:os-console-auth-tokens": "rule:admin",
+ "os_compute_api:os-attach-interfaces": "rule:admin or rule:member",
+ "os_compute_api:os-volumes-attachments:update": "rule:admin",
+ "os_compute_api:os-hosts": "rule:admin",
+ "os_compute_api:os-multinic": "rule:admin or rule:member",
+ "os_compute_api:os-shelve:unshelve": "rule:admin or rule:member",
+ "os_compute_api:server-metadata:update": "rule:admin or rule:member",
+ "os_compute_api:os-volumes-attachments:delete": "rule:admin or rule:member",
+ "os_compute_api:os-floating-ip-dns:domain:delete": "rule:admin",
+ "os_compute_api:os-shelve:shelve_offload": "rule:admin"
}