]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Make manage/unmanage admin only
authorJohn Griffith <john.griffith@solidfire.com>
Thu, 24 Jul 2014 06:05:08 +0000 (00:05 -0600)
committerJohn Griffith <john.griffith8@gmail.com>
Thu, 24 Jul 2014 19:59:13 +0000 (12:59 -0700)
Manage/Unmanage functionality should be admin
only commands. Make this the default in the policy file.

Change-Id: Ieb71891cdedd36f862f3eaae50174e294417b122

etc/cinder/policy.json

index dafc2d392325450bae2cb55d3b15edf1953a546b..73b3bc4232ea95863704c893d1da13a84e64cc00 100644 (file)
     "volume_extension:volume_mig_status_attribute": [["rule:admin_api"]],
     "volume_extension:hosts": [["rule:admin_api"]],
     "volume_extension:services": [["rule:admin_api"]],
+
+    "volume_extension:volume_manage": [["rule:admin_api"]],
+    "volume_extension:volume_unmanage": [["rule:admin_api"]],
+
     "volume:services": [["rule:admin_api"]],
 
     "volume:create_transfer": [],