454a7b0ec1
Heat's `policy.json` now can contain policies of the following schema: "resource_types:<resource_type>": "rule" This will allow cloud admins to control resource access utilizing user roles, names, tenants and any other oslo.policy-supported rules. Basic usage is to facilitate fail-early for stacks with resources that a given user will not be able to actually create due to role restrictions. Default policy is 'allow to everyone' (who has passed previous policy checks on REST API layer). Resource types that the user will not be able to use due to resources policy restrictions are hidden from `resource-type-list`. Current operations that are prohibited if the user does not pass policy check for a particular "forbidden" resource: - show resource type for forbidden resource type - show resource template for forbidden resource type - create a stack containing a forbidden resource - delete a stack containing a forbidden resource - update a stack that already has a forbidden resource - update a stack initroducing a new forbidden resource - restore a stack snapshot to a stack that currently has forbidden resource Not yet prohibited, need to be fixed: - restore a stack snapshot that will create a forbidden resource As first step (and for testing purposes) OS::Nova::Flavor is forbidden to create for non-admin users. Simple functional test using this resource is added. Change-Id: I337306c4f1624552a2631e0ffbb43f0d3102813d Implements blueprint conditional-resource-exposure |
||
---|---|---|
.. | ||
__init__.py | ||
functional_base.py | ||
test_autoscaling.py | ||
test_aws_stack.py | ||
test_conditional_exposure.py | ||
test_create_update_neutron_port.py | ||
test_create_update.py | ||
test_default_parameters.py | ||
test_encrypted_parameter.py | ||
test_encryption_vol_type.py | ||
test_heat_autoscaling.py | ||
test_hooks.py | ||
test_instance_group.py | ||
test_notifications.py | ||
test_preview.py | ||
test_reload_on_sighup.py | ||
test_remote_stack.py | ||
test_resource_group.py | ||
test_software_config.py | ||
test_stack_tags.py | ||
test_swiftsignal_update.py | ||
test_template_resource.py | ||
test_validation.py |