summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent S. Cojot <vcojot@redhat.com>2017-05-16 16:47:34 -0400
committerVincent S. Cojot <vcojot@redhat.com>2017-05-16 16:47:34 -0400
commite35637cd6a1420977e9e21a7c7a52a88a0628390 (patch)
tree582c4d13a73d599cae2c2d6aec59be724ccafcc2
parentcfaeaa8a843d11eba544d72bdf266f486f735130 (diff)
downloadopenstack-access-policy-e35637cd6a1420977e9e21a7c7a52a88a0628390.zip
openstack-access-policy-e35637cd6a1420977e9e21a7c7a52a88a0628390.tar.gz
openstack-access-policy-e35637cd6a1420977e9e21a7c7a52a88a0628390.tar.xz
Restrict start/stop operations on nova..
-rw-r--r--etc/nova/policy.json18
1 files changed, 9 insertions, 9 deletions
diff --git a/etc/nova/policy.json b/etc/nova/policy.json
index d1257c8..c90baea 100644
--- a/etc/nova/policy.json
+++ b/etc/nova/policy.json
@@ -15,7 +15,7 @@
"os_compute_api:os-volumes:discoverable": "@",
"os_compute_api:os-fping": "rule:admin_or_owner",
"os_compute_api:os-floating-ips": "rule:admin_or_owner",
- "os_compute_api:servers:start": "rule:admin_or_owner",
+ "os_compute_api:servers:start": "rule:admin_or_owner and rule:deny_readonly",
"os_compute_api:os-hosts:discoverable": "@",
"os_compute_api:os-server-tags:delete_all": "@",
"os_compute_api:servers:index:get_all_tenants": "rule:admin_api",
@@ -75,7 +75,7 @@
"os_compute_api:servers:migrations:show": "rule:admin_api",
"os_compute_api:os-admin-actions:inject_network_info": "rule:admin_api",
"os_compute_api:image-metadata:discoverable": "@",
- "os_compute_api:os-migrate-server:migrate": "rule:admin_api",
+ "os_compute_api:os-migrate-server:migrate": "rule:admin_api and rule:deny_readonly",
"os_compute_api:extensions": "rule:admin_or_owner",
"os_compute_api:os-simple-tenant-usage:show": "rule:admin_or_owner",
"os_compute_api:os-security-groups": "rule:admin_or_owner",
@@ -103,7 +103,7 @@
"os_compute_api:os-certificates:create": "rule:admin_or_owner and rule:deny_readonly",
"os_compute_api:os-server-usage": "rule:admin_or_owner",
"os_compute_api:os-services": "rule:admin_api",
- "os_compute_api:servers:migrations:force_complete": "rule:admin_api",
+ "os_compute_api:servers:migrations:force_complete": "rule:admin_api and rule:deny_readonly",
"os_compute_api:servers:index": "rule:admin_or_owner",
"os_compute_api:os-keypairs:index": "rule:admin_api or user_id:%(user_id)s",
"os_compute_api:os-flavor-rxtx:discoverable": "@",
@@ -132,7 +132,7 @@
"os_compute_api:os-server-password": "rule:admin_or_owner",
"os_compute_api:os-suspend-server:discoverable": "@",
"os_compute_api:servers:delete": "rule:admin_or_owner and rule:deny_readonly",
- "os_compute_api:os-migrate-server:migrate_live": "rule:admin_api",
+ "os_compute_api:os-migrate-server:migrate_live": "rule:admin_api and rule:deny_readonly",
"os_compute_api:os-console-auth-tokens": "rule:admin_api",
"os_compute_api:ips:show": "rule:admin_or_owner",
"os_compute_api:os-hypervisors:discoverable": "@",
@@ -165,8 +165,8 @@
"os_compute_api:os-floating-ip-dns:domain:update": "rule:admin_api",
"os_compute_api:os-hypervisors": "rule:admin_api",
"os_compute_api:os-consoles:delete": "rule:admin_or_owner and rule:deny_readonly",
- "os_compute_api:os-networks-associate": "rule:admin_api",
- "os_compute_api:os-remote-consoles": "rule:admin_or_owner",
+ "os_compute_api:os-networks-associate": "rule:admin_api and rule:deny_readonly",
+ "os_compute_api:os-remote-consoles": "rule:admin_or_owner and rule:deny_readonly",
"os_compute_api:limits": "rule:admin_or_owner",
"os_compute_api:os-cells:create": "rule:admin_api and rule:deny_readonly",
"os_compute_api:os-create-backup:discoverable": "@",
@@ -240,7 +240,7 @@
"os_compute_api:servers:detail:get_all_tenants": "rule:admin_api",
"os_compute_api:os-services:discoverable": "@",
"os_compute_api:extensions:discoverable": "@",
- "os_compute_api:servers:stop": "rule:admin_or_owner",
+ "os_compute_api:servers:stop": "rule:admin_or_owner and rule:deny_readonly",
"os_compute_api:os-volumes": "rule:admin_or_owner",
"os_compute_api:os-server-tags:discoverable": "@",
"os_compute_api:os-baremetal-nodes": "rule:admin_api",
@@ -264,7 +264,7 @@
"os_compute_api:os-server-external-events:discoverable": "@",
"os_compute_api:os-hosts": "rule:admin_api",
"os_compute_api:os-migrations:discoverable": "@",
- "os_compute_api:server-metadata:update": "rule:admin_or_owner",
+ "os_compute_api:server-metadata:update": "rule:admin_or_owner and rule:deny_readonly",
"os_compute_api:os-floating-ip-dns:domain:delete": "rule:admin_api and rule:deny_readonly",
"os_compute_api:os-volumes-attachments:delete": "rule:admin_or_owner and rule:deny_readonly"
-} \ No newline at end of file
+}