]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update authorization actions for services API
authorAnna Sortland <annasort@us.ibm.com>
Tue, 14 Jul 2015 19:51:51 +0000 (14:51 -0500)
committerAnna Sortland <annasort@us.ibm.com>
Fri, 7 Aug 2015 18:16:21 +0000 (18:16 +0000)
commit68ec9d7b7fb5fcd8b1e80e0121c8079d69f8fb4d
tree61cf2d4d8f15f5b215814cec42a4ba38b5404a74
parentc4c7acc2aef894abfd225b75f53e519bffccb7b9
Update authorization actions for services API

Previously, the services extension used generic authorization check
"volume_extension:services" for both index and update APIs.

This change creates separate rules for index and update APIs
so that it is possible to assign different rules to different users.
The sample /etc/cinder/policy.json is also updated to include new rules:
    "volume_extension:services:index": "",
    "volume_extension:services:update" : "rule:admin_api"

Change-Id: Ib57171f5011210861478590bbdfc30cce25e62b4
Closes-Bug: #1471995
Closes-Bug: #1471999
cinder/api/contrib/services.py
cinder/tests/unit/policy.json
etc/cinder/policy.json