summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorAhmad Hassan <ahmad.hassan@hp.com>2011-08-01 17:16:49 +0100
committerStanislaw Pitucha <stanislaw.pitucha@hp.com>2011-10-05 15:02:50 +0100
commitbeee11edbfdd82cd81bc9c0fd75912c167892c2b (patch)
treeb26d64ebbe18215ea7d3d226f00223c126d0a89d /nova/api
parent981f52794ed41b6f25dfc4a25b4b736e8f030a0f (diff)
downloadnova-beee11edbfdd82cd81bc9c0fd75912c167892c2b.tar.gz
nova-beee11edbfdd82cd81bc9c0fd75912c167892c2b.tar.xz
nova-beee11edbfdd82cd81bc9c0fd75912c167892c2b.zip
Stop returning correct password on api calls
Captured invalid signature exception in authentication step, so that the problem is not returning exception to user, revealing the real password. Fixes bug 868360. Change-Id: Idb31f076a7b14309f0fda698261de816924da354
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py
index 8dcb44bba..4b4c0f536 100644
--- a/nova/api/ec2/__init__.py
+++ b/nova/api/ec2/__init__.py
@@ -188,7 +188,8 @@ class Authenticate(wsgi.Middleware):
req.host,
req.path)
# Be explicit for what exceptions are 403, the rest bubble as 500
- except (exception.NotFound, exception.NotAuthorized) as ex:
+ except (exception.NotFound, exception.NotAuthorized,
+ exception.InvalidSignature) as ex:
LOG.audit(_("Authentication Failure: %s"), unicode(ex))
raise webob.exc.HTTPForbidden()