Register default policies in code

Registered by Sean McGinnis

oslo.policy now supports handling policies in a way similar to how oslo.config handles config options. The main benefit would be operators only need to keep in the local policy.json file rules that a different from default ones, making the policy.json file smaller and more manageble.

Blueprint information

Status:
Complete
Approver:
Sean McGinnis
Priority:
High
Drafter:
Sean McGinnis
Direction:
Approved
Assignee:
Sean McGinnis
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-2
Started by
Jay Bryant
Completed by
Sean McGinnis

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/policy-in-code,n,z

Addressed by: https://review.openstack.org/361554
    Implement polcies in code

Gerrit topic: https://review.openstack.org/#q,topic:policy-and-docs-in-code,n,z

Addressed by: https://review.openstack.org/482492
    [WIP] Implement policies in code, reviews are welcome

Addressed by: https://review.openstack.org/483790
    [WIP] [2/3] Implement policies in code, reviews are welcome

Gerrit topic: https://review.openstack.org/#q,topic:bp/policy-in-code-1,n,z

Addressed by: https://review.openstack.org/489511
    [3/3] Implement policies in code

Addressed by: https://review.openstack.org/506976
    [policy in code] Add support for attachment resource

Addressed by: https://review.openstack.org/507015
    [policy in code] Add support for backup resource

Addressed by: https://review.openstack.org/507721
    [policy in code] Add support for snapshot resource

Addressed by: https://review.openstack.org/507768
    [policy in code] Add support for message, worker, cluster resources

Addressed by: https://review.openstack.org/507812
    [policy in code] Add support for group, g-snapshot resources

Addressed by: https://review.openstack.org/508091
    [policy in code] Add support for qos and quota resources

Addressed by: https://review.openstack.org/510722
    [policy in code] Add support for service, limits

Addressed by: https://review.openstack.org/511427
    [policy in code] Add support for volume, volume type resources

Addressed by: https://review.openstack.org/512187
    Add policy documentation and sample file

Addressed by: https://review.openstack.org/524733
    Add cg policies and clean up old policy handling

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.