remove token from notifier middleware

oslo-incubator sync to address the security bug
in middleware (as below).

notifier middleware is capturing token and sending it to MQ. this
is not advisable so we should filter it out.

Change-Id: Ia1bfa1bd24989681db1d2f385defc12e69a01f8d
Closes-Bug: #1321080
Grant Murphy 9 years ago
parent a2c909ca4b
commit 264f3b0d96

@ -1,6 +1,6 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2013 OpenStack LLC.
# Copyright (c) 2013 OpenStack Foundation
# All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may

@ -66,7 +66,7 @@ class RequestNotifier(base.Middleware):
return dict((k, v) for k, v in environ.iteritems()
if k.isupper())
if k.isupper() and k != 'HTTP_X_AUTH_TOKEN')
def process_request(self, request):