RBAC policy validation doesn't aware of environment

Bug #1569307 reported by Oleksii Chuprykov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
Undecided
Oleksii Chuprykov

Bug Description

oleksii@ubuntu:~$ cat nova.yaml
heat_template_version: 2014-10-16
resources:
  test_flavor:
    type: OS::MyRes::MyFlavour
    properties:
      disk: 20
      ram: 512
      vcpus: 1

oleksii@ubuntu:~$ cat env.yaml
resource_registry:
    OS::MyRes::MyFlavour: OS::Nova::Flavor
Execute by non-admin user:
heat stack-create test -f nova.yaml -e env.yaml
This action doesn't fail in validation time and trying to create nova flavor instead. We should check real type of a resource, not a type name/alias that can be redefined by env.

Changed in heat:
assignee: nobody → Oleksii Chuprykov (ochuprykov)
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.