Policy.json based RBAC does not work on ceilometer events api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
Divya K Konoor | ||
keystonemiddleware |
Invalid
|
Medium
|
Divya K Konoor |
Bug Description
The events api RBAC cannot be configured using the ceilometer policy.json . There are 2 reasons for this:
1. This is because /ceilometer/
RBAC rules for each REST call must be configurable and controlled via the respective policy.json file and not hardcoded in this manner.
2. Even if we fix problem 1 above by removing the requires_admin decorator and by enforcing the policy via oslo_policy , ownership based rbac rules will not apply for events. (Ownership based rules implies stuff like "owner": "user_id:
{
"raw":{
},
"traits":[
],
"
"
"
}
Changed in ceilometer: | |
assignee: | nobody → Divya K Konoor (dikonoor) |
Changed in ceilometer: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in keystonemiddleware: | |
assignee: | nobody → Divya K Konoor (dikonoor) |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in ceilometer: | |
status: | Triaged → In Progress |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | liberty-rc1 → 5.0.0 |
IRC chat with Gordon : http:// eavesdrop. openstack. org/irclogs/ %23openstack- ceilometer/ %23openstack- ceilometer. 2015-06- 22.log. html
Gordon, /review. openstack. org/#/c/ 198536/ >> I have defined two new traits for the audit events and made rbac changes to enable policy engine based permissions /review. openstack. org/#/c/ 198555/ >> changes to keystonemiddleware /review. openstack. org/#/c/ 196624/ >> this is by changing the event schema..I think as per our last discussion we don't want to follow this.
Please take a look at the changesets below :
1a). https:/
b) https:/
2. https:/