nova/doc/source
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
..
_extra [doc]remove nova-cert leftover in doc 2018-05-03 17:47:49 +08:00
_static Improve stable-api doc with current API state 2017-08-09 14:13:17 +00:00
admin Update auth_url in install docs 2018-05-15 13:06:07 +00:00
cli Merge "Use .. deprecated:: theme for deprecations" 2018-05-08 23:47:51 +00:00
configuration Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
contributor Merge "[Doc]Link policies file into api" 2018-05-11 01:51:27 +00:00
figures XenAPI: update the picture in Xen hypervisor document 2017-12-06 22:20:11 -08:00
install Update auth_url in install docs 2018-05-15 13:06:07 +00:00
reference Document how to disable notifications 2018-04-16 14:12:12 -04:00
user Merge "Add docs for hw_video:ram_max_mb flavor extra spec" 2018-05-09 04:11:01 +00:00
conf.py Implement granular policy rules for placement 2018-05-17 11:12:16 -04:00
index.rst Deduplicate config/policy reference docs from main index 2018-05-17 11:11:25 -04:00