From 45adeedd437cb6f40be751fd0f1fcf2d1aa5d79a Mon Sep 17 00:00:00 2001 From: Mathieu Mitchell Date: Fri, 14 Aug 2015 11:29:15 -0400 Subject: [PATCH] Allow digits in IPA driver names Using a driver name with digits prevents unauthenticated passthru calls from going through. Change-Id: I86c596d34729345efb2609f44de8ea6dc014b670 Closes-Bug: #1485012 --- ironic/api/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic/api/config.py b/ironic/api/config.py index 0321306feb..ba47cd72a2 100644 --- a/ironic/api/config.py +++ b/ironic/api/config.py @@ -31,7 +31,7 @@ app = { '/', '/v1', # IPA ramdisk methods - '/v1/drivers/[a-z_]*/vendor_passthru/lookup', + '/v1/drivers/[a-z0-9_]*/vendor_passthru/lookup', '/v1/nodes/[a-z0-9\-]+/vendor_passthru/heartbeat', # DIB ramdisk methods # NOTE(yuriyz): support URL without 'v1' for backward compatibility