Zun

Validate image_driver input

Bug #1758358 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
In Progress
Medium
Deepak Mourya

Bug Description

In the API endpoint of POST /containers , we take a parameter 'image_drive' as an input (https://github.com/openstack/zun/blob/master/zun/api/controllers/v1/containers.py#L352). It is better to validate if the inputted image driver is within the image drivers list (https://github.com/openstack/zun/blob/master/zun/conf/image_driver.py#L18) configured by the cloud administrator. If the input is invalid, Zun should reject the request.

hongbin (hongbin034)
Changed in zun:
importance: Undecided → Medium
status: New → Triaged
Changed in zun:
assignee: nobody → Deepak Mourya (mourya007)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

Fix proposed to branch: master
Review: https://review.openstack.org/559287

Changed in zun:
status: Triaged → In Progress
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.