From 77c741b41cfa9927a1ecae99141cc98d9312c1b0 Mon Sep 17 00:00:00 2001 From: Ahmad Hassan Date: Mon, 1 Aug 2011 17:16:49 +0100 Subject: [PATCH] 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 --- Authors | 1 + nova/auth/manager.py | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Authors b/Authors index d0b1d0a0..d63daec3 100644 --- a/Authors +++ b/Authors @@ -1,6 +1,7 @@ Aaron Lee Adam Gandelman Adam Johnson +Ahmad Hassan Alex Meade Alexander Sakhnov Andrey Brindeyev diff --git a/nova/auth/manager.py b/nova/auth/manager.py index 44e6e11a..e0504464 100644 --- a/nova/auth/manager.py +++ b/nova/auth/manager.py @@ -149,11 +149,7 @@ class User(AuthBase): return AuthManager().is_project_manager(self, project) def __repr__(self): - return "User('%s', '%s', '%s', '%s', %s)" % (self.id, - self.name, - self.access, - self.secret, - self.admin) + return "User('%s', '%s')" % (self.id, self.name) class Project(AuthBase): @@ -200,9 +196,7 @@ class Project(AuthBase): return AuthManager().get_credentials(user, self) def __repr__(self): - return "Project('%s', '%s', '%s', '%s', %s)" % \ - (self.id, self.name, self.project_manager_id, self.description, - self.member_ids) + return "Project('%s', '%s')" % (self.id, self.name) class AuthManager(object):