)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"f21401bc16ea3262962d755d76c1d4ed032f7802","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Lokesh S \u003clokesh.s@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-04-04 08:54:04 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"log SHA! hash of  X-Auth-Token value"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Remove logging of sensitive information like the"},{"line_number":10,"context_line":"token value from X-Auth-Token. Instead log the sha1"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a061dce_0b79f693","line":7,"updated":"2016-04-04 15:39:57.000000000","message":"s/SHA!/SHA1","commit_id":"16b48ea6ea2bb0f3c2f61bca72bee05170c84589"}],"neutronclient/common/utils.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ccd925c2f71f7083cf9b367bf93f2a71627486d1","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if key \u003d\u003d \u0027X-Auth-Token\u0027:"},{"line_number":172,"context_line":"            value \u003d \u0027TOKEN_REDACTED\u0027"},{"line_number":173,"context_line":"        header \u003d \u0027 -H \"%s: %s\"\u0027 % (key, value)"},{"line_number":174,"context_line":"        string_parts.append(header)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    if \u0027body\u0027 in kwargs and kwargs[\u0027body\u0027]:"},{"line_number":177,"context_line":"        string_parts.append(\" -d \u0027%s\u0027\" % (kwargs[\u0027body\u0027]))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba0121b8_420f632e","line":174,"updated":"2016-04-01 22:30:32.000000000","message":"The keystoneclient does this slightly differently, it returns the SHA1 so the token can be tracked between services, see keystoneclient/session.py _process_header() and callers.","commit_id":"2cb25aaeb05182ca5ff1d69bf0db76784630fb62"},{"author":{"_account_id":10369,"name":"lokesh s","email":"slokesh184@gmail.com","username":"loki"},"change_message_id":"ee241039af37bf471c851baa1548f852c38ccd32","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if key \u003d\u003d \u0027X-Auth-Token\u0027:"},{"line_number":172,"context_line":"            value \u003d \u0027TOKEN_REDACTED\u0027"},{"line_number":173,"context_line":"        header \u003d \u0027 -H \"%s: %s\"\u0027 % (key, value)"},{"line_number":174,"context_line":"        string_parts.append(header)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    if \u0027body\u0027 in kwargs and kwargs[\u0027body\u0027]:"},{"line_number":177,"context_line":"        string_parts.append(\" -d \u0027%s\u0027\" % (kwargs[\u0027body\u0027]))"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba0121b8_88cea3b2","line":174,"in_reply_to":"ba0121b8_420f632e","updated":"2016-04-04 07:00:56.000000000","message":"Done","commit_id":"2cb25aaeb05182ca5ff1d69bf0db76784630fb62"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e180edbe07c6c1554a6603f3e0c34d644e203599","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            string_parts.append(\u0027 %s\u0027 % element)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    for (key, value) in six.iteritems(kwargs[\u0027headers\u0027]):"},{"line_number":174,"context_line":"        if key in SENSITIVE_HEADERS:"},{"line_number":175,"context_line":"            v \u003d value.encode(\u0027utf-8\u0027)"},{"line_number":176,"context_line":"            h \u003d hashlib.sha1(v)"},{"line_number":177,"context_line":"            d \u003d h.hexdigest()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a061dce_d83077a1","line":174,"updated":"2016-04-04 14:12:17.000000000","message":"Again, only going by the keystoneclient code, this check should be key.lower() and the value at L34 should be in lower-case.  I can only assume that there is no strict definition saying that header must be \u0027X-Auth-Token\u0027, but I\u0027m not sure.\n\nI would always recommend copying the source code exactly as-is for just this reason.","commit_id":"16b48ea6ea2bb0f3c2f61bca72bee05170c84589"},{"author":{"_account_id":10369,"name":"lokesh s","email":"slokesh184@gmail.com","username":"loki"},"change_message_id":"5db172e726b95382d4eda6836467357433534587","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            string_parts.append(\u0027 %s\u0027 % element)"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    for (key, value) in six.iteritems(kwargs[\u0027headers\u0027]):"},{"line_number":174,"context_line":"        if key in SENSITIVE_HEADERS:"},{"line_number":175,"context_line":"            v \u003d value.encode(\u0027utf-8\u0027)"},{"line_number":176,"context_line":"            h \u003d hashlib.sha1(v)"},{"line_number":177,"context_line":"            d \u003d h.hexdigest()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a061dce_363c1a93","line":174,"in_reply_to":"9a061dce_d83077a1","updated":"2016-04-04 17:23:39.000000000","message":"We need not go by only keystoneclient. All clients have done SHA1 hash like ironicclient, swiftclient etc. We need not convert it to lower case. https://review.openstack.org/#/c/278951/","commit_id":"16b48ea6ea2bb0f3c2f61bca72bee05170c84589"}]}
