)]}'
{"barbican/api/middleware/context.py":[{"author":{"_account_id":7789,"name":"John Wood","email":"john.wood@rackspace.com","username":"woodster"},"change_message_id":"dc5e0d63b43540552e4d1d6db42f17e9286b142e","unresolved":false,"context_lines":[{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        kwargs \u003d {"},{"line_number":123,"context_line":"            \u0027user\u0027: req.headers.get(\u0027X-User-Id\u0027),"},{"line_number":124,"context_line":"            \u0027project\u0027: (req.headers.get(\u0027X-Tenant-Id\u0027) or"},{"line_number":125,"context_line":"                        req.headers.get(\u0027X-Project-Id\u0027)),"},{"line_number":126,"context_line":"            \u0027roles\u0027: roles,"},{"line_number":127,"context_line":"            \u0027is_admin\u0027: CONF.admin_role.strip().lower() in roles,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_5fb58fcb","line":124,"updated":"2015-03-05 20:21:00.000000000","message":"I don\u0027t think we can do this, as this means the client can spoof the X-Tenant-Id and if the keystone middleware is only setting X-Project-Id (which the newest one does I think/hope) then the spoofed project will be used instead of the auth-ed one.\n\nPlease instead just update this to X-Project-Id as the only one to retrieve. That should be the last of the legacy X-Tenant-Id stuff in the code base then.","commit_id":"ea87ab0f6840daa468650783624f5e86ece4f69a"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"95ce52c55772d067cb638b2ad208b77ae919232f","unresolved":false,"context_lines":[{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        kwargs \u003d {"},{"line_number":123,"context_line":"            \u0027user\u0027: req.headers.get(\u0027X-User-Id\u0027),"},{"line_number":124,"context_line":"            \u0027project\u0027: (req.headers.get(\u0027X-Tenant-Id\u0027) or"},{"line_number":125,"context_line":"                        req.headers.get(\u0027X-Project-Id\u0027)),"},{"line_number":126,"context_line":"            \u0027roles\u0027: roles,"},{"line_number":127,"context_line":"            \u0027is_admin\u0027: CONF.admin_role.strip().lower() in roles,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_df733f13","line":124,"in_reply_to":"9a80dd14_5fb58fcb","updated":"2015-03-05 20:24:30.000000000","message":"OK, lets give it a try","commit_id":"ea87ab0f6840daa468650783624f5e86ece4f69a"}]}
