yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #09989
[Bug 1281911] Re: instance_usage_audit_log API should not be accessable by non-admin users
This is invalid report due to my wrong operation.
I am sorry for that.
** Changed in: nova
Status: In Progress => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1281911
Title:
instance_usage_audit_log API should not be accessable by non-admin
users
Status in OpenStack Compute (Nova):
Invalid
Bug description:
According to policy.json of Nova, admin user only can get
instance_usage_audit_log but non-admin user can do it now:
$ source openrc demo
$ curl -i 'http://10.21.42.153:8774/v2/a68aa28aa2f645c8b0b02b9ab063d0cd/os-instance_usage_audit_log' -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: [..]
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 335
X-Compute-Request-Id: req-b462b346-d524-46e6-9d88-08da8ee2d9ab
Date: Wed, 19 Feb 2014 13:44:52 GMT
{"instance_usage_audit_logs": {"total_errors": 0, "total_instances": 0, "log": {}, "num_hosts_running": 0, "num_hosts_done": 0, "num_hosts_not_run": 1, "hosts_not_run": ["oomichi-dev"], "overall_status": "0 of 1 hosts done. 0 errors.", "period_ending": "2014-02-01 00:00:00", "period_beginning": "2014-01-01 00:00:00", "num_hosts": 1}}
$
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1281911/+subscriptions
References