mask X-Auth-Key for log_curl_request
We only mask the X-Auth-Token, but leave X-Auth-Key uncoverd, it needs to be fixed. Change-Id: I99dfcbe87ac33e4b1180511f5aba88b6c7be6a50
This commit is contained in:
parent
901652e4f8
commit
0057e9d5f8
|
@ -129,7 +129,7 @@ class HTTPClient(object):
|
|||
curl = ['curl -i -X %s' % method]
|
||||
|
||||
for (key, value) in kwargs['headers'].items():
|
||||
if key == 'X-Auth-Token':
|
||||
if key in ('X-Auth-Token', 'X-Auth-Key'):
|
||||
value = '*****'
|
||||
header = '-H \'%s: %s\'' % (strutils.safe_decode(key),
|
||||
strutils.safe_decode(value))
|
||||
|
|
Loading…
Reference in New Issue