Force detach should only be an admin api
Since force delete volume apis are only admin apis, force detach volume api should also be an admin only api. Currently, the force detach api, which uses the default rule in policy.json, can be called by admins and owners. This patch make force detach volume api an admin only api like force delete volume. Closes-Bug: #1303882 Change-Id: I12f927e816a5ba6809da9a27ac4ad150546286a1
This commit is contained in:
parent
1d1a9b3fe7
commit
3af76d3677
@ -31,6 +31,7 @@
|
||||
"volume_extension:volume_admin_actions:reset_status": [["rule:admin_api"]],
|
||||
"volume_extension:snapshot_admin_actions:reset_status": [["rule:admin_api"]],
|
||||
"volume_extension:volume_admin_actions:force_delete": [["rule:admin_api"]],
|
||||
"volume_extension:volume_admin_actions:force_detach": [["rule:admin_api"]],
|
||||
"volume_extension:snapshot_admin_actions:force_delete": [["rule:admin_api"]],
|
||||
"volume_extension:volume_admin_actions:migrate_volume": [["rule:admin_api"]],
|
||||
"volume_extension:volume_admin_actions:migrate_volume_completion": [["rule:admin_api"]],
|
||||
|
Loading…
Reference in New Issue
Block a user