Browse Source

remove token from notifier middleware

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
changes/44/96944/3
gordon chung 6 years ago
parent
commit
2b6454f9f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ceilometer/openstack/common/middleware/notifier.py

+ 1
- 1
ceilometer/openstack/common/middleware/notifier.py View File

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


Loading…
Cancel
Save