nova/etc/nova
Matt Riedemann 0a461979df Implement granular policy rules for placement
This adds a granular policy checking framework for
placement based on nova.policy but with a lot of
the legacy cruft removed, like the is_admin and
context_is_admin rules.

A new PlacementPolicyFixture is added along with
a new configuration option, [placement]/policy_file,
which is needed because the default policy file
that gets used in config is from [oslo_policy]/policy_file
which is being used as the nova policy file. As
far as I can tell, oslo.policy doesn't allow for
multiple policy files with different names unless
I'm misunderstanding how the policy_dirs option works.

With these changes, we can have something like:

  /etc/nova/policy.json - for nova policy rules
  /etc/nova/placement-policy.yaml - for placement rules

The docs are also updated to include the placement
policy sample along with a tox builder for the sample.

This starts by adding granular rules for CRUD operations
on the /resource_providers and /resource_providers/{uuid}
routes which use the same descriptions from the placement
API reference. Subsequent patches will add new granular
rules for the other routes.

Part of blueprint granular-placement-policy

Change-Id: I17573f5210314341c332fdcb1ce462a989c21940
2018-05-17 11:12:16 -04:00
..
rootwrap.d Convert users of tune2fs to privsep. 2018-02-28 07:14:51 +11:00
README-nova.conf.txt Fix broken URLs 2017-09-07 15:42:31 +02:00
README-policy.yaml.txt Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
api-paste.ini Remove the unused request_id filter from api-paste.ini 2017-12-06 17:17:49 +08:00
cells.json Remove trailing comma from sample JSON 2014-02-26 10:17:01 +08:00
logging_sample.conf Fix logging_sample.conf to use oslo_log formatter 2015-09-24 18:04:20 +09:00
nova-config-generator.conf Fix doc generation warnings 2017-02-24 17:43:08 +00:00
nova-policy-generator.conf Add policy sample generation 2016-06-28 20:52:44 +00:00
placement-policy-generator.conf Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
release.sample Allow loading of product/vendor/package info from external file 2012-12-19 18:54:33 +00:00
rootwrap.conf Add /usr/local/{sbin,bin} to rootwrap exec_dirs 2016-02-15 14:08:24 +11:00