summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2011-12-21 20:52:13 -0500
committerJoe Gordon <jogo@cloudscaling.com>2012-01-19 15:38:59 -0800
commit64341eedf993c0738dcd42fb41fd193c184f3464 (patch)
tree4b0c7b3d2df9f90e213aa0c253dc5918b769e870 /etc
parent7265a71d998d5a6a4fc2a7f060178e365c882ca5 (diff)
aws/ec2 api validation
Adds middleware to validate user-input to the aws/ec2 api. This patch is a port to gerrit of this launchpad merge request: https://code.launchpad.net/~u-matt-h/nova/aws-api-validation/+merge/71962 blueprint aws-api-validation bug 813685 Code started by Matthew Hooker, fixes by Joe Gordon Change-Id: I9346ecd5e5051cb0126c13f7c771173bc23959b9
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/api-paste.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini
index c2de4b484..9fc98300c 100644
--- a/etc/nova/api-paste.ini
+++ b/etc/nova/api-paste.ini
@@ -36,9 +36,9 @@ use = egg:Paste#urlmap
/services/Admin: ec2admin
[pipeline:ec2cloud]
-pipeline = ec2faultwrap logrequest ec2noauth cloudrequest authorizer ec2executor
+pipeline = ec2faultwrap logrequest ec2noauth cloudrequest authorizer validator ec2executor
# NOTE(vish): use the following pipeline for deprecated auth
-#pipeline = ec2faultwrap logrequest authenticate cloudrequest authorizer ec2executor
+#pipeline = ec2faultwrap logrequest authenticate cloudrequest authorizer validator ec2executor
[pipeline:ec2admin]
pipeline = ec2faultwrap logrequest ec2noauth adminrequest authorizer ec2executor
@@ -71,6 +71,9 @@ paste.filter_factory = nova.api.ec2:Requestify.factory
[filter:authorizer]
paste.filter_factory = nova.api.ec2:Authorizer.factory
+[filter:validator]
+paste.filter_factory = nova.api.ec2:Validator.factory
+
[app:ec2executor]
paste.app_factory = nova.api.ec2:Executor.factory