[Openstack] How to setup nova's policy.json ensure only owner can list his instance?

Ying-Chuan Chen ycc0301 at gmail.com
Mon Jan 8 05:50:10 UTC 2018


Hi guys,
I want to ensure that only the owner of the instances can list his
instances.
I try to add rules in /etc/openstack-dashboard/nova_policy.json like below:

"owner": "user_id:%(user_id)s",

"compute:get": "rule:owner",

But, it can't work.
How to setup policy ensure only owner can list his instance?
Version: Ocata, OS: CentOS 7.3

Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180108/20e87c95/attachment.html>


More information about the Openstack mailing list