Barbican Order resource doesn't have enough validation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Oleksii Chuprykov |
Bug Description
Currently we have only one validation for Order resource added in patch:
https:/
However we need add extra check for properties, which can not be used with some other order "type"s.
F.e. If I try to use "request_type" property with "type": key.
We will get follow traceback in heat-engine.log:
Traceback (most recent call last):
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
2016-02-02 07:59:28.358 TRACE heat.engine.
Follow options can be used only for "certificate" type:
request_type
subject_dn
source_
ca_id
profile
request_data
only for "asymmetric" type:
pass_phrase
Also all other properties except:
"name" can not be applied for "certificate" type
summary: |
- Babrbican Order resource has not enough validation + Barbican Order resource doesn't have enough validation |
Fix proposed to branch: master /review. openstack. org/279213
Review: https:/