ironic/ironic
Devananda van der Veen c7da7a6925 Add keystone policy support to Ironic
Implements more fine-grained policy support within our API service,
following the oslo policy-in-code spec, while maintaining compatibility
with the previous default policy.json file. An empty policy.json file is
included, along with a sample file listig all supported policy settings
and their default values.

A new tox target "genpolicy" has been added to ease automation of
sample policy file generation.

All calls to policy.enforce() have been replaced with with
policy.authorize() to avoid silent failures when a rule is undefined,
because enforce() does not raise() if the target rule does not exist.

  NOTE: policy.enforce() is not removed by this patch, but a deprecation
  warning will be logged if it this method is invoked.

Updates unit test coverage for the new authorize() method, as well as
more general unit test updates for some of the new rules.

Partial-bug: #1526752
Change-Id: Ie4398f840601d027e2fe209c17d854421687c7b7
2016-08-04 12:43:20 +00:00
..
api Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
cmd Migrate to using keystoneauth Sessions 2016-08-03 11:24:21 -07:00
common Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
conductor Following the hacking rule for string interpolation at logging 2016-07-18 09:42:57 +00:00
conf Migrate to using keystoneauth Sessions 2016-08-03 11:24:21 -07:00
db Add node.resource_class field 2016-07-28 11:49:27 +00:00
dhcp Merge "Fix docstring warnings" 2016-07-14 21:56:34 +00:00
drivers Migrate to using keystoneauth Sessions 2016-08-03 11:24:21 -07:00
locale Imported Translations from Zanata 2016-06-11 07:09:11 +00:00
nova Update resources only for specific node during deletion. 2016-04-29 19:16:12 +00:00
objects Create a custom StringField that can process functions 2016-08-03 16:44:11 -07:00
tests Add keystone policy support to Ironic 2016-08-04 12:43:20 +00:00
__init__.py Move eventlent monkeypatch out of cmd/ 2014-02-08 00:11:56 -08:00
netconf.py Centralize config options - [DEFAULT] 2016-07-15 14:05:09 -07:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00