Commit Graph

9 Commits

Author SHA1 Message Date
Julien Danjou d881dd5228 Remove Ceilometer API
This removes the deprecated Ceilometer API.

Change-Id: I752b36b3dfe8f935b68c4d3d59ccb5b8b60c582f
2017-10-25 14:38:43 +02:00
xiangjun.li 502ad1ad9f Correct wrong description of method enforce
The description for method enforce in rbac.py is not right, and
will confuse the developer, so correct it.

Change-Id: I35737470421c19278efaa201803a15bab8faee1f
2016-10-22 10:48:17 -04:00
Mehdi Abaakouk 5ecb2abcdd api: Remove global conf
Change-Id: Idfb9bc3e67e963cad5277a559d8b07cd7790cdac
2016-10-11 14:59:52 +02:00
gordon chung f63470e0e2 Fix events rbac
Rbac context is limited not by policy but is inherently built in
as we cannot enforce policy on a list.

This patch drops the dummy policy, the invalid context_is_project
and context_is_admin policies, and ensures policy rbac can restrict
on admin appropriately.

Closes-Bug: #1504495
Change-Id: Id3b1ad71aea46456c6e6c1995776b988017d4786
2016-01-21 09:38:59 +00:00
gordon chung c34dcb6445 reset policy per test
reset global ENFORCER after every time to ensure test isolation

Change-Id: I752721cc8071a8f8a480d6a7110392517c6bae91
Closes-Bug: #1506151
2015-10-14 14:17:52 -04:00
Divya aa78d70df2 Adds support for default rule in ceilometer policy.json.
The default rule is broken in the current implementation of
ceilometer rbac, because ceilometer rbac.py does not leverage
the support provided by oslo_policy . It instead tries to
loop through all the rules in the policy.json to check if the
rule corresponding to the requested REST api matches with the
any in the policy.json. In this process, it completely ignores
the existence of the default rule.

Closes-Bug: 1435855

Change-Id: Icab626b28d14514b0f024df447a8e7f35c52257c
2015-04-07 15:43:06 +02:00
Lianhao Lu 286d78b6b9 Switch to oslo.policy 0.3.0
Switch to the first official release of oslo.policy.

Change-Id: I72bc1450833db88ead2959d818d058fa64429c68
Closes-Bug: #1421863
2015-03-11 09:33:19 +08:00
Julien Danjou a5f8d66d6e Upgrade to hacking 0.10
Change-Id: Ia567c3aeb7f8516d0834dc8e4c3852e43a687043
2015-01-23 17:43:04 +01:00
Fabio Giannetti be42f2035a RBAC Support for Ceilometer API Implementation
This patch adds policy based Role Based Access Control
to the Ceilometer V2 APIs.

Validation/Enforcement of the policy is executed for the
different controllers and hence it is possible to
granularly control access.

Co-Authored-By: Fabio Giannetti <fabio.giannetti@hp.com>

Change-Id: I788b9b31c8cfba9f3caa19f1f6d465a3f81101ad
2014-12-12 09:03:56 -08:00