)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"9edb44910c5ad779cb692c6e73939c7aabee5b69","unresolved":false,"context_lines":[{"line_number":11,"context_line":"domain scoped to the session as it remains valid until the user logs"},{"line_number":12,"context_line":"out."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The domain scoped token is sizeable, so a check to make sure the"},{"line_number":15,"context_line":"session backend used is not signed cookies, as this will overflow"},{"line_number":16,"context_line":"the cookie."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_2fc3daed","line":14,"updated":"2014-12-12 18:03:36.000000000","message":"Suggest changing \"so a check\" to \"so check\"","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"}],"openstack_auth/backend.py":[{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"1f63c7f0cd9193fe9048a57b18f6d6272aa9296c","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        to make the ``request`` object available to the auth backend class."},{"line_number":55,"context_line":"        \"\"\""},{"line_number":56,"context_line":"        if (hasattr(self, \u0027request\u0027) and"},{"line_number":57,"context_line":"                user_id \u003d\u003d self.request.session[\"user_id\"]):"},{"line_number":58,"context_line":"            token \u003d self.request.session[\u0027token\u0027]"},{"line_number":59,"context_line":"            endpoint \u003d self.request.session[\u0027region_endpoint\u0027]"},{"line_number":60,"context_line":"            services_region \u003d self.request.session[\u0027services_region\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_5b06481e","line":57,"updated":"2014-12-11 21:55:11.000000000","message":"Should this include the domain token if we have one?","commit_id":"25f2896c51afe6dfdd1846ab293ad7aa9db48ccb"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"0766a9c8e48f8d75fce9e4c61e2f2ed04715eb31","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        to make the ``request`` object available to the auth backend class."},{"line_number":55,"context_line":"        \"\"\""},{"line_number":56,"context_line":"        if (hasattr(self, \u0027request\u0027) and"},{"line_number":57,"context_line":"                user_id \u003d\u003d self.request.session[\"user_id\"]):"},{"line_number":58,"context_line":"            token \u003d self.request.session[\u0027token\u0027]"},{"line_number":59,"context_line":"            endpoint \u003d self.request.session[\u0027region_endpoint\u0027]"},{"line_number":60,"context_line":"            services_region \u003d self.request.session[\u0027services_region\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_f131d3ed","line":57,"in_reply_to":"3a961159_5b06481e","updated":"2014-12-11 23:22:06.000000000","message":"I think we\u0027re ok, we\u0027re not actually going to be operating on the user object in horizon but only the session[\u0027domain_token\u0027]\n\nSince the domain token has a session duration, we don\u0027t need to go through this dance. I hope.","commit_id":"25f2896c51afe6dfdd1846ab293ad7aa9db48ccb"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"71f573287d37f0ceff50fdaf26abf970856f30fa","unresolved":false,"context_lines":[{"line_number":207,"context_line":"            client.service_catalog.url_for(endpoint_type\u003dendpoint_type))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        # if the unscoped token is a domain scoped token add it to the user"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        if request is not None:"},{"line_number":212,"context_line":"            if domain_token:"},{"line_number":213,"context_line":"                # check django session engine, if using cookies, this will not"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_e08d837d","line":210,"updated":"2014-12-11 21:30:23.000000000","message":"This is a nice check, I didn\u0027t consider this.","commit_id":"25f2896c51afe6dfdd1846ab293ad7aa9db48ccb"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"5db70337b1064de0d6a2619746254801fb9d0b45","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        # identity operations"},{"line_number":92,"context_line":"        domain_token \u003d None"},{"line_number":93,"context_line":"        multidomain \u003d getattr(settings,"},{"line_number":94,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":95,"context_line":"                              False)"},{"line_number":96,"context_line":"        # determine if domain scoped token is needed"},{"line_number":97,"context_line":"        if utils.get_keystone_version() \u003e\u003d 3 and multidomain:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_2cbea465","line":94,"updated":"2014-12-12 00:38:08.000000000","message":"This may well be a misunderstanding on my part, but - even if there\u0027s only one domain won\u0027t it still be the case that keystone will only (by default) allow user operations to a user with a domain scoped token? So don\u0027t we need this regardless of multidomain, but merely if v3 is enabled?","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"824c71bd2f9f7ee78531cb996f396cd445fdfc74","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        # identity operations"},{"line_number":92,"context_line":"        domain_token \u003d None"},{"line_number":93,"context_line":"        multidomain \u003d getattr(settings,"},{"line_number":94,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":95,"context_line":"                              False)"},{"line_number":96,"context_line":"        # determine if domain scoped token is needed"},{"line_number":97,"context_line":"        if utils.get_keystone_version() \u003e\u003d 3 and multidomain:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_9e87a2b4","line":94,"in_reply_to":"3a961159_2cbea465","updated":"2014-12-15 17:16:10.000000000","message":"only if you are using the v3 policy file, if you stick with default policy, all works.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5a45a124a6f00d0c8bb806e04718002c2245de35","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":95,"context_line":"                              False)"},{"line_number":96,"context_line":"        # determine if domain scoped token is needed"},{"line_number":97,"context_line":"        if utils.get_keystone_version() \u003e\u003d 3 and multidomain:"},{"line_number":98,"context_line":"            try:"},{"line_number":99,"context_line":"                domain_client \u003d keystone_client.Client("},{"line_number":100,"context_line":"                    domain_name\u003duser_domain_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa81d914_d889bdcb","line":97,"updated":"2015-01-28 21:53:05.000000000","message":"The above check will be common enough.  I made a utils check in a dependent patch:\nhttps://review.openstack.org/#/c/150985/","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"1779d111a2127583d1b256d75c1946532d36710f","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":95,"context_line":"                              False)"},{"line_number":96,"context_line":"        # determine if domain scoped token is needed"},{"line_number":97,"context_line":"        if utils.get_keystone_version() \u003e\u003d 3 and multidomain:"},{"line_number":98,"context_line":"            try:"},{"line_number":99,"context_line":"                domain_client \u003d keystone_client.Client("},{"line_number":100,"context_line":"                    domain_name\u003duser_domain_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_f87fcadd","line":97,"in_reply_to":"fa81d914_d889bdcb","updated":"2015-02-05 18:38:51.000000000","message":"I stole that change.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"19e0fe1be2697bfa8a47efa1549591d82b04c56e","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        if utils.get_keystone_version() \u003e\u003d 3 and multidomain:"},{"line_number":98,"context_line":"            try:"},{"line_number":99,"context_line":"                domain_client \u003d keystone_client.Client("},{"line_number":100,"context_line":"                    domain_name\u003duser_domain_name,"},{"line_number":101,"context_line":"                    username\u003dusername,"},{"line_number":102,"context_line":"                    password\u003dpassword,"},{"line_number":103,"context_line":"                    auth_url\u003dauth_url,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_1a4b0c2c","line":100,"updated":"2014-12-18 17:55:30.000000000","message":"I think this also needs user_domain_name. If you create a user in the nondefault domain, keystone won\u0027t find the user - domain_name on its own isn\u0027t enough.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"36cab7e8de32d3f763933d882f9d583463e69da7","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        if utils.get_keystone_version() \u003e\u003d 3 and multidomain:"},{"line_number":98,"context_line":"            try:"},{"line_number":99,"context_line":"                domain_client \u003d keystone_client.Client("},{"line_number":100,"context_line":"                    domain_name\u003duser_domain_name,"},{"line_number":101,"context_line":"                    username\u003dusername,"},{"line_number":102,"context_line":"                    password\u003dpassword,"},{"line_number":103,"context_line":"                    auth_url\u003dauth_url,"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a930d6b_fb9e9655","line":100,"in_reply_to":"3a961159_1a4b0c2c","updated":"2015-01-21 19:39:00.000000000","message":"agreed.  I\u0027m testing with this.\n\n   domain_client \u003d keystone_client.Client(\n                    domain_name\u003duser_domain_name,\n                    user_domain_name\u003duser_domain_name,\n                    username\u003dusername,\n                    password\u003dpassword,\n                    auth_url\u003dauth_url,\n                    insecure\u003dinsecure,\n                    cacert\u003dca_cert,\n                    debug\u003dsettings.DEBUG)","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"19e0fe1be2697bfa8a47efa1549591d82b04c56e","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"        for project in projects:"},{"line_number":182,"context_line":"            try:"},{"line_number":183,"context_line":"                client \u003d keystone_client.Client("},{"line_number":184,"context_line":"                    tenant_id\u003dproject.id,"},{"line_number":185,"context_line":"                    token\u003dunscoped_auth_ref.auth_token,"},{"line_number":186,"context_line":"                    auth_url\u003dauth_url,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_7a15f0e3","line":183,"updated":"2014-12-18 17:55:30.000000000","message":"Think this will need a project_domain_name. You can list all projects but won\u0027t necessarily be able to authenticate with one without the project domain name.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"1818ade7e84c5a41e780ae5fc3276eedb1aa43a9","unresolved":false,"context_lines":[{"line_number":206,"context_line":"            auth_user.Token(auth_ref),"},{"line_number":207,"context_line":"            client.service_catalog.url_for(endpoint_type\u003dendpoint_type))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        # if the unscoped token is a domain scoped token add it to the user"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        if request is not None:"},{"line_number":212,"context_line":"            if domain_token:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_718163c2","line":209,"updated":"2014-12-16 23:02:06.000000000","message":"# if the unscoped token is a domain scoped token add it to the session","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"a083d7507e279f51df9190f8366ebb953e3a29f3","unresolved":false,"context_lines":[{"line_number":206,"context_line":"            auth_user.Token(auth_ref),"},{"line_number":207,"context_line":"            client.service_catalog.url_for(endpoint_type\u003dendpoint_type))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        # if the unscoped token is a domain scoped token add it to the user"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        if request is not None:"},{"line_number":212,"context_line":"            if domain_token:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_cf1fb6b5","line":209,"updated":"2014-12-12 18:00:06.000000000","message":"I\u0027m not sure I understand this comment correctly.  If the token is unscoped, by definition it\u0027s not scoped to the domain, right?","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":8512,"name":"Matt Farina","email":"matt@mattfarina.com","username":"mattfarina"},"change_message_id":"ea1428e5d89921a99b622577ea2b667a516fc2e7","unresolved":false,"context_lines":[{"line_number":206,"context_line":"            auth_user.Token(auth_ref),"},{"line_number":207,"context_line":"            client.service_catalog.url_for(endpoint_type\u003dendpoint_type))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        # if the unscoped token is a domain scoped token add it to the user"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        if request is not None:"},{"line_number":212,"context_line":"            if domain_token:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_3c1c9213","line":209,"in_reply_to":"3a961159_cf1fb6b5","updated":"2014-12-16 20:54:21.000000000","message":"I agree with Brad. I\u0027m not sure I understand this comment. A domain is essentially a project without the resources meaning there is a scoping. Can you rephrase?","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"1779d111a2127583d1b256d75c1946532d36710f","unresolved":false,"context_lines":[{"line_number":206,"context_line":"            auth_user.Token(auth_ref),"},{"line_number":207,"context_line":"            client.service_catalog.url_for(endpoint_type\u003dendpoint_type))"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"        # if the unscoped token is a domain scoped token add it to the user"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        if request is not None:"},{"line_number":212,"context_line":"            if domain_token:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_2fe1e5d0","line":209,"in_reply_to":"3a961159_cf1fb6b5","updated":"2015-02-05 18:38:51.000000000","message":"comment is wrong, hold over from a previous approach. good catch, will update.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"6770a4077281f73a22ca0996db1141c52fed74c0","unresolved":false,"context_lines":[{"line_number":215,"context_line":"                # scoped token to the session and put error in the log"},{"line_number":216,"context_line":"                engine \u003d getattr(settings, \u0027SESSION_ENGINE\u0027, \u0027\u0027)"},{"line_number":217,"context_line":"                if \"signed_cookies\" not in engine:"},{"line_number":218,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_token"},{"line_number":219,"context_line":"                else:"},{"line_number":220,"context_line":"                    LOG.error(\u0027Using signed cookies as SESSION_ENGINE with \u0027"},{"line_number":221,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT enabled \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_2837b44e","line":218,"updated":"2015-01-13 23:43:08.000000000","message":"horizon looks for request.session[\u0027domain_context\u0027] at the moment.  We could change horizon or DOA.  not sure which you prefer.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"b45730fe45b2ca144ff660a12f60fc4c0a191bfc","unresolved":false,"context_lines":[{"line_number":215,"context_line":"                # scoped token to the session and put error in the log"},{"line_number":216,"context_line":"                engine \u003d getattr(settings, \u0027SESSION_ENGINE\u0027, \u0027\u0027)"},{"line_number":217,"context_line":"                if \"signed_cookies\" not in engine:"},{"line_number":218,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_token"},{"line_number":219,"context_line":"                else:"},{"line_number":220,"context_line":"                    LOG.error(\u0027Using signed cookies as SESSION_ENGINE with \u0027"},{"line_number":221,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT enabled \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_1c9a1a62","line":218,"in_reply_to":"3a961159_2837b44e","updated":"2015-01-14 18:15:52.000000000","message":"That\u0027s for the domain id, not token","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":8512,"name":"Matt Farina","email":"matt@mattfarina.com","username":"mattfarina"},"change_message_id":"ea1428e5d89921a99b622577ea2b667a516fc2e7","unresolved":false,"context_lines":[{"line_number":216,"context_line":"                engine \u003d getattr(settings, \u0027SESSION_ENGINE\u0027, \u0027\u0027)"},{"line_number":217,"context_line":"                if \"signed_cookies\" not in engine:"},{"line_number":218,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_token"},{"line_number":219,"context_line":"                else:"},{"line_number":220,"context_line":"                    LOG.error(\u0027Using signed cookies as SESSION_ENGINE with \u0027"},{"line_number":221,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT enabled \u0027"},{"line_number":222,"context_line":"                              \u0027this severely limits the ability to perform \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_5c9ebe64","line":219,"updated":"2014-12-16 20:54:21.000000000","message":"For the case of signed_cookies could the re-scoping happen on demand and stay in memory for the life of the page request?","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"1779d111a2127583d1b256d75c1946532d36710f","unresolved":false,"context_lines":[{"line_number":216,"context_line":"                engine \u003d getattr(settings, \u0027SESSION_ENGINE\u0027, \u0027\u0027)"},{"line_number":217,"context_line":"                if \"signed_cookies\" not in engine:"},{"line_number":218,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_token"},{"line_number":219,"context_line":"                else:"},{"line_number":220,"context_line":"                    LOG.error(\u0027Using signed cookies as SESSION_ENGINE with \u0027"},{"line_number":221,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT enabled \u0027"},{"line_number":222,"context_line":"                              \u0027this severely limits the ability to perform \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_b84392ad","line":219,"in_reply_to":"3a961159_5c9ebe64","updated":"2015-02-05 18:38:51.000000000","message":"That is a possibility, but it makes the logic in keystone/api.py much more complex and will request a lot of domain scoped tokens as they would only last for the length of the request.","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1b8e7b6c4fa16c419dacd2ac56a873822989797d","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT enabled \u0027"},{"line_number":222,"context_line":"                              \u0027this severely limits the ability to perform \u0027"},{"line_number":223,"context_line":"                              \u0027identity operations due to cookie size \u0027"},{"line_number":224,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":225,"context_line":"            request.session[\u0027unscoped_token\u0027] \u003d unscoped_token.id"},{"line_number":226,"context_line":"            request.user \u003d user"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_c866d7ba","line":224,"updated":"2014-12-12 14:42:19.000000000","message":"Verbiage nits:\n\n\u0027...enabled.  This...\u0027 (break sentence) or \u0027...enabled severely limits...\u0027 (remove \u0027this\u0027).\n\nShould this also indicate that the domain token will not function at all in this configuration (since the domain token is not stored on the session in this configuration)?  The wording sounds more like it will just be limited (which sounds different from non-functional).","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"1779d111a2127583d1b256d75c1946532d36710f","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT enabled \u0027"},{"line_number":222,"context_line":"                              \u0027this severely limits the ability to perform \u0027"},{"line_number":223,"context_line":"                              \u0027identity operations due to cookie size \u0027"},{"line_number":224,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":225,"context_line":"            request.session[\u0027unscoped_token\u0027] \u003d unscoped_token.id"},{"line_number":226,"context_line":"            request.user \u003d user"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_3838823c","line":224,"in_reply_to":"3a961159_c866d7ba","updated":"2015-02-05 18:38:51.000000000","message":"Done","commit_id":"e495af85a4ee11f305ef9f04c1d907d35b64778d"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"53c30ea717b95ee1bcd458a23d13de0cd760e71d","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        # identity operations"},{"line_number":103,"context_line":"        domain_auth \u003d None"},{"line_number":104,"context_line":"        domain_auth_ref \u003d None"},{"line_number":105,"context_line":"        if utils.is_multidomain():"},{"line_number":106,"context_line":"            try:"},{"line_number":107,"context_line":"                token \u003d unscoped_auth_ref.auth_token"},{"line_number":108,"context_line":"                domain_auth \u003d utils.get_token_auth_plugin("}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_ba0cf895","line":105,"updated":"2015-02-09 20:18:06.000000000","message":"if Keystone is running v3 policy file, even with single domain setup. Don\u0027t we still need the domain scoped token?","commit_id":"843f1f3afb582b406fcd5393978bcc9e234af192"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"7bc882c372e40be1fa204ea87382ee5421894add","unresolved":false,"context_lines":[{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        # Abort if there are no projects for this user"},{"line_number":135,"context_line":"        if not projects and not domain_auth_ref:"},{"line_number":136,"context_line":"            msg \u003d _(\u0027You are not authorized for any projects.\u0027)"},{"line_number":137,"context_line":"            raise exceptions.KeystoneAuthException(msg)"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"        # the recent project id a user might have set in a cookie"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_f4b22a05","line":136,"updated":"2015-02-14 01:13:45.000000000","message":"This error should probably now say something like \"You are not authorized for any projects or domains.\"","commit_id":"843f1f3afb582b406fcd5393978bcc9e234af192"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"53c30ea717b95ee1bcd458a23d13de0cd760e71d","unresolved":false,"context_lines":[{"line_number":191,"context_line":"                # check django session engine, if using cookies, this will not"},{"line_number":192,"context_line":"                # work, as it will overflow the cookie so don\u0027t add domain"},{"line_number":193,"context_line":"                # scoped token to the session and put error in the log"},{"line_number":194,"context_line":"                if not utils.using_cookie_backed_sessions():"},{"line_number":195,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":196,"context_line":"                else:"},{"line_number":197,"context_line":"                    LOG.error(\u0027Using signed cookies as SESSION_ENGINE with \u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_9a98141d","line":194,"updated":"2015-02-09 20:18:06.000000000","message":"NIT: Might be easier to read if got switch around, then this is just a positive check of \" if  utils.using_cookie_backed_sessions():\"","commit_id":"843f1f3afb582b406fcd5393978bcc9e234af192"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"28acc5fce228494301bf24c5053989a75ee824aa","unresolved":false,"context_lines":[{"line_number":98,"context_line":"            LOG.debug(str(exc))"},{"line_number":99,"context_line":"            raise exceptions.KeystoneAuthException(msg)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        # domain support can require domain scoped tokens to perform"},{"line_number":102,"context_line":"        # identity operations depending on the policy files being used"},{"line_number":103,"context_line":"        # for keystone."},{"line_number":104,"context_line":"        domain_auth \u003d None"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_67cd09b7","line":101,"updated":"2015-02-25 17:49:24.000000000","message":"You probably want to have self.check_auth_expiry(unscoped_auth_ref) (line 118) before this instead of after.","commit_id":"b963fe99c519ebc12fa1e506011efd5783be892d"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"a4fb85fc4df0de532a49c1a01092f0e857a30bc9","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                    domain_name\u003duser_domain_name)"},{"line_number":113,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":114,"context_line":"            except Exception:"},{"line_number":115,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        # Check expiry for our unscoped auth ref."},{"line_number":118,"context_line":"        self.check_auth_expiry(unscoped_auth_ref)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_cd3aab97","line":115,"updated":"2015-03-02 16:20:10.000000000","message":"I\u0027d suggest making this only LOG.debug, as a user who is just a member of a project may not have a specific role on their user domain.  Keystone won\u0027t allow them to get a domain scoped token in that case, and I think this is a normal case we wouldn\u0027t want to log unless debug is on.","commit_id":"b963fe99c519ebc12fa1e506011efd5783be892d"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"8184e5dcaf037a959357488908d09cb2b27b6400","unresolved":false,"context_lines":[{"line_number":115,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        # Check expiry for our unscoped auth ref."},{"line_number":118,"context_line":"        self.check_auth_expiry(unscoped_auth_ref)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        unscoped_client \u003d keystone_client_class(session\u003dsession,"},{"line_number":121,"context_line":"                                                auth\u003dunscoped_auth)"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba7be1f8_c53ec9b7","line":118,"updated":"2015-03-03 15:44:56.000000000","message":"Think this needs moving up before the domain_auth_ref block","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"34d802c9f077040bb6b279676582900e48344eb1","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        # Check expiry for our unscoped auth ref."},{"line_number":118,"context_line":"        self.check_auth_expiry(unscoped_auth_ref)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        unscoped_client \u003d keystone_client_class(session\u003dsession,"},{"line_number":121,"context_line":"                                                auth\u003dunscoped_auth)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_f70907de","line":119,"updated":"2015-03-05 21:53:11.000000000","message":"I think moving it is correct. Will do.","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"3a042e7a52c0d43768621f302ce774abc4fcb525","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        # Check expiry for our unscoped auth ref."},{"line_number":118,"context_line":"        self.check_auth_expiry(unscoped_auth_ref)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        unscoped_client \u003d keystone_client_class(session\u003dsession,"},{"line_number":121,"context_line":"                                                auth\u003dunscoped_auth)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_8ce2ccd3","line":119,"updated":"2015-03-04 18:13:06.000000000","message":"Probably wouldn\u0027t hurt to move this line up as Doug and Steve suggested.\n\nI *think* it would be unlikely that the unscoped_auth_ref would expire so soon after authenticating on lines 81-87 tho.","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"8ff8cacc23bf15536c0bd87d8e13da21e138d970","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        # Check expiry for our unscoped auth ref."},{"line_number":118,"context_line":"        self.check_auth_expiry(unscoped_auth_ref)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        unscoped_client \u003d keystone_client_class(session\u003dsession,"},{"line_number":121,"context_line":"                                                auth\u003dunscoped_auth)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_4a64fc21","line":119,"in_reply_to":"9a80dd14_0cbc1769","updated":"2015-03-05 16:45:20.000000000","message":"I\u0027m still concerned about this.  It\u0027s useless to check the expiration after we\u0027ve used the token.  It should either be checked before it is used, or the check should be removed entirely.","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"8ba12c8f4322c0eb12b3d2ff25e4e79ea4c5d2f5","unresolved":false,"context_lines":[{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        # Check expiry for our unscoped auth ref."},{"line_number":118,"context_line":"        self.check_auth_expiry(unscoped_auth_ref)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        unscoped_client \u003d keystone_client_class(session\u003dsession,"},{"line_number":121,"context_line":"                                                auth\u003dunscoped_auth)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_0cbc1769","line":119,"in_reply_to":"9a80dd14_8ce2ccd3","updated":"2015-03-04 20:18:36.000000000","message":"Yes, you\u0027re right - i will withdraw my objection given that i don\u0027t know what the expiry check\u0027s accomplishing","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ab3b4d1db870237a78c7e76d0c02ccf69344edaa","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":141,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":142,"context_line":"            except Exception:"},{"line_number":143,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":146,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":9,"id":"7a016987_920b927d","line":143,"updated":"2015-06-08 22:14:20.000000000","message":"This should not be logged as exception, as typical user doesn\u0027t have have domain scoped token","commit_id":"f991a6dba57e573d3cb4590e44d7f02258bf22f7"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"360c00f3fb0d92f21af2e80c7480acb156b4a0aa","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":141,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":142,"context_line":"            except Exception:"},{"line_number":143,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":146,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_e0c7e693","line":143,"in_reply_to":"3afb71cf_3ddc1145","updated":"2015-06-10 20:49:17.000000000","message":"downgraded to LOG.debug","commit_id":"f991a6dba57e573d3cb4590e44d7f02258bf22f7"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"0cb66c6e8044c85f0c62cb02dbbc7a9764dcc861","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":141,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":142,"context_line":"            except Exception:"},{"line_number":143,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":146,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_3ddc1145","line":143,"in_reply_to":"3afb71cf_af9c8b0f","updated":"2015-06-10 16:42:53.000000000","message":"Only domain admin would be able to scope to domain, so that probably not a lot. \n\nWhenever an end user login which only have project roles, it would also generate this log. But that should not be considered as exception.\n\nMy worry is clogging the log file with this exception.","commit_id":"f991a6dba57e573d3cb4590e44d7f02258bf22f7"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"18aaac93c00d1d28d09fcf414aa24ccea0ebdbb8","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":141,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":142,"context_line":"            except Exception:"},{"line_number":143,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":146,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":9,"id":"3afb71cf_af9c8b0f","line":143,"in_reply_to":"7a016987_920b927d","updated":"2015-06-09 13:55:35.000000000","message":"They do in v3 or greater with multiple domains, no? line 134","commit_id":"f991a6dba57e573d3cb4590e44d7f02258bf22f7"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"0f0ebe6caaebc87f3a77f0741973c32f98f9baf6","unresolved":false,"context_lines":[{"line_number":195,"context_line":"            if domain_auth_ref:"},{"line_number":196,"context_line":"                scoped_auth \u003d domain_auth"},{"line_number":197,"context_line":"                scoped_auth_ref \u003d domain_auth_ref"},{"line_number":198,"context_line":"                LOG.info(msg)"},{"line_number":199,"context_line":"            else:"},{"line_number":200,"context_line":"                raise exceptions.KeystoneAuthException(msg)"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_a9b350e8","line":198,"updated":"2015-07-01 17:46:37.000000000","message":"I think this needs to be logged in English.\n\nIf a normal user unexpectedly gets in this path the log message may be needed to sort out what\u0027s going on. It might be hard to find the message if it\u0027s translated to the user\u0027s locale!","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"564e77b17f38b8b147cc0e07f7d65c01edea6f4c","unresolved":false,"context_lines":[{"line_number":195,"context_line":"            if domain_auth_ref:"},{"line_number":196,"context_line":"                scoped_auth \u003d domain_auth"},{"line_number":197,"context_line":"                scoped_auth_ref \u003d domain_auth_ref"},{"line_number":198,"context_line":"                LOG.info(msg)"},{"line_number":199,"context_line":"            else:"},{"line_number":200,"context_line":"                raise exceptions.KeystoneAuthException(msg)"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_eebcf607","line":198,"in_reply_to":"ba3cc151_a9b350e8","updated":"2015-07-01 20:19:06.000000000","message":"should this be at the DEBUG level?   Seems having it as INFO will just extra entries in the logs that is not that useful since this is just a normal scenario, and not a user action that needs to be audited.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"5f8cb6cf0fc10a01be45f82668216d941764ebef","unresolved":false,"context_lines":[{"line_number":195,"context_line":"            if domain_auth_ref:"},{"line_number":196,"context_line":"                scoped_auth \u003d domain_auth"},{"line_number":197,"context_line":"                scoped_auth_ref \u003d domain_auth_ref"},{"line_number":198,"context_line":"                LOG.info(msg)"},{"line_number":199,"context_line":"            else:"},{"line_number":200,"context_line":"                raise exceptions.KeystoneAuthException(msg)"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_8698aac1","line":198,"in_reply_to":"ba3cc151_eebcf607","updated":"2015-07-01 23:03:36.000000000","message":"this is a screw up, changing.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"564e77b17f38b8b147cc0e07f7d65c01edea6f4c","unresolved":false,"context_lines":[{"line_number":212,"context_line":"            scoped_auth_ref.service_catalog.url_for(endpoint_type\u003dinterface))"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        if request is not None:"},{"line_number":215,"context_line":"            request.session[\u0027unscoped_token\u0027] \u003d unscoped_auth_ref.auth_token"},{"line_number":216,"context_line":"            if domain_auth_ref:"},{"line_number":217,"context_line":"                # check django session engine, if using cookies, this will not"},{"line_number":218,"context_line":"                # work, as it will overflow the cookie so don\u0027t add domain"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_8eae8a96","line":215,"updated":"2015-07-01 20:19:06.000000000","message":"why the change? using the variable \u0027unscoped_token\u0027 still works here","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"266dc1f6f3e1fea5a22c936ee386fe08c202a1b8","unresolved":false,"context_lines":[{"line_number":212,"context_line":"            scoped_auth_ref.service_catalog.url_for(endpoint_type\u003dinterface))"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        if request is not None:"},{"line_number":215,"context_line":"            request.session[\u0027unscoped_token\u0027] \u003d unscoped_auth_ref.auth_token"},{"line_number":216,"context_line":"            if domain_auth_ref:"},{"line_number":217,"context_line":"                # check django session engine, if using cookies, this will not"},{"line_number":218,"context_line":"                # work, as it will overflow the cookie so don\u0027t add domain"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_dbf52bed","line":215,"in_reply_to":"ba3cc151_8eae8a96","updated":"2015-07-01 22:36:52.000000000","message":"good catch.  we could probably just use unscoped_token.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"5f8cb6cf0fc10a01be45f82668216d941764ebef","unresolved":false,"context_lines":[{"line_number":212,"context_line":"            scoped_auth_ref.service_catalog.url_for(endpoint_type\u003dinterface))"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        if request is not None:"},{"line_number":215,"context_line":"            request.session[\u0027unscoped_token\u0027] \u003d unscoped_auth_ref.auth_token"},{"line_number":216,"context_line":"            if domain_auth_ref:"},{"line_number":217,"context_line":"                # check django session engine, if using cookies, this will not"},{"line_number":218,"context_line":"                # work, as it will overflow the cookie so don\u0027t add domain"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_26543efd","line":215,"in_reply_to":"ba3cc151_dbf52bed","updated":"2015-07-01 23:03:36.000000000","message":"good catch. changed after I started this patch chain. when merging picked wrong one.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"6454e7a98b7d80f337a150efe06ca4950eda778d","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":223,"context_line":"                              \u0027enabled. This disables the ability to \u0027"},{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa32b979_29123c59","line":225,"updated":"2015-06-26 20:52:39.000000000","message":"Wow. So in this case, we cache the token at the backend?","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"0f0ebe6caaebc87f3a77f0741973c32f98f9baf6","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":223,"context_line":"                              \u0027enabled. This disables the ability to \u0027"},{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_69f8e87b","line":225,"in_reply_to":"fa32b979_29123c59","updated":"2015-07-01 17:46:37.000000000","message":"Also - I\u0027d point out Horizon caches the token at the backend in all cases - it\u0027s not new with domain tokens. Is that a concern?","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"2fd007573d8259d026c546c035d16270073c4ac9","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                              \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":223,"context_line":"                              \u0027enabled. This disables the ability to \u0027"},{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa32b979_acb89ae9","line":225,"in_reply_to":"fa32b979_29123c59","updated":"2015-06-26 21:27:03.000000000","message":"essentially using domain scoped tokens with signed cookies as the session storage backend won\u0027t work. So we throw an error. signed cookies are limited to 4K and just one token is already too much.  This is a configuration error.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"564e77b17f38b8b147cc0e07f7d65c01edea6f4c","unresolved":false,"context_lines":[{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            request.user \u003d user"},{"line_number":230,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_ce0c92ef","line":227,"updated":"2015-07-01 20:19:06.000000000","message":"do we really have to store the whole domain token response? seems too much info to store into the session","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"5f8cb6cf0fc10a01be45f82668216d941764ebef","unresolved":false,"context_lines":[{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            request.user \u003d user"},{"line_number":230,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_e643b611","line":227,"in_reply_to":"ba3cc151_1b3e338c","updated":"2015-07-01 23:03:36.000000000","message":"not sure I want to create another container type, but open to suggestions.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"266dc1f6f3e1fea5a22c936ee386fe08c202a1b8","unresolved":false,"context_lines":[{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            request.user \u003d user"},{"line_number":230,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_1b3e338c","line":227,"in_reply_to":"ba3cc151_ce0c92ef","updated":"2015-07-01 22:36:52.000000000","message":"I think that the bare minimum we need are, domain_id, domain_name, domain_token_id, and roles.  I can test that out.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b3e0d4601c051f9e763b58f1b0113288fd1a08ca","unresolved":false,"context_lines":[{"line_number":224,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":225,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":226,"context_line":"                else:"},{"line_number":227,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"            request.user \u003d user"},{"line_number":230,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_26e43edf","line":227,"in_reply_to":"ba3cc151_e643b611","updated":"2015-07-01 23:13:58.000000000","message":"I think we need the whole bit upon reflection. maybe not service catalog, but we need roles for later policy checks.","commit_id":"73ff62d72f25d54b565e79c61c470f80bdcec5ab"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"6ccaac0c6087f77021be76c239670da5b8d69f46","unresolved":false,"context_lines":[{"line_number":142,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":143,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":144,"context_line":"            except Exception:"},{"line_number":145,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":148,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_417c30eb","line":145,"updated":"2015-07-06 22:31:29.000000000","message":"I think we still want this to be LOG.debug, following the comments in PS9.","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"626cd0dfd458d19093565f9b8302ff7f5cd8bf2f","unresolved":false,"context_lines":[{"line_number":142,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":143,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":144,"context_line":"            except Exception:"},{"line_number":145,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":148,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_dd825152","line":145,"in_reply_to":"ba3cc151_07751ff8","updated":"2015-07-13 18:59:33.000000000","message":"+1","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"38669255c0b9b4115cc66f1b36463d9c290d7bd0","unresolved":false,"context_lines":[{"line_number":142,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":143,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":144,"context_line":"            except Exception:"},{"line_number":145,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":148,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_07751ff8","line":145,"in_reply_to":"ba3cc151_417c30eb","updated":"2015-07-09 23:28:28.000000000","message":"++","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"e3c4a295b80453a66523a214cfdaabc59bc860fe","unresolved":false,"context_lines":[{"line_number":142,"context_line":"                    domain_name\u003dkwargs[\u0027user_domain_name\u0027])"},{"line_number":143,"context_line":"                domain_auth_ref \u003d domain_auth.get_access(session)"},{"line_number":144,"context_line":"            except Exception:"},{"line_number":145,"context_line":"                LOG.exception(\u0027Error getting domain scoped token.\u0027)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        projects \u003d plugin.list_projects(session,"},{"line_number":148,"context_line":"                                        unscoped_auth,"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_2789b5c9","line":145,"in_reply_to":"ba3cc151_417c30eb","updated":"2015-07-14 17:28:29.000000000","message":"Done","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"38669255c0b9b4115cc66f1b36463d9c290d7bd0","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        # Attempt to scope only to enabled projects"},{"line_number":151,"context_line":"        projects \u003d [project for project in projects if project.enabled]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Abort if there are no projects for this user"},{"line_number":154,"context_line":"        if not projects and not domain_auth_ref:"},{"line_number":155,"context_line":"            msg \u003d _(\u0027You are not authorized for any projects.\u0027)"},{"line_number":156,"context_line":"            if utils.get_keystone_version() \u003e\u003d 3:"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_079d1f65","line":153,"updated":"2015-07-09 23:28:28.000000000","message":"update the comment too","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"626cd0dfd458d19093565f9b8302ff7f5cd8bf2f","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        # Attempt to scope only to enabled projects"},{"line_number":151,"context_line":"        projects \u003d [project for project in projects if project.enabled]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Abort if there are no projects for this user"},{"line_number":154,"context_line":"        if not projects and not domain_auth_ref:"},{"line_number":155,"context_line":"            msg \u003d _(\u0027You are not authorized for any projects.\u0027)"},{"line_number":156,"context_line":"            if utils.get_keystone_version() \u003e\u003d 3:"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_9d7cc973","line":153,"in_reply_to":"ba3cc151_079d1f65","updated":"2015-07-13 18:59:33.000000000","message":"+1","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"e3c4a295b80453a66523a214cfdaabc59bc860fe","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        # Attempt to scope only to enabled projects"},{"line_number":151,"context_line":"        projects \u003d [project for project in projects if project.enabled]"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Abort if there are no projects for this user"},{"line_number":154,"context_line":"        if not projects and not domain_auth_ref:"},{"line_number":155,"context_line":"            msg \u003d _(\u0027You are not authorized for any projects.\u0027)"},{"line_number":156,"context_line":"            if utils.get_keystone_version() \u003e\u003d 3:"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_87be8163","line":153,"in_reply_to":"ba3cc151_079d1f65","updated":"2015-07-14 17:28:29.000000000","message":"Done","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"38669255c0b9b4115cc66f1b36463d9c290d7bd0","unresolved":false,"context_lines":[{"line_number":223,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":224,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":225,"context_line":"                else:"},{"line_number":226,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"            request.user \u003d user"},{"line_number":229,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":11,"id":"ba3cc151_803a7633","line":226,"updated":"2015-07-09 23:28:28.000000000","message":"the domain access info will be huge, maybe we should remove the catalog since it is just a duplicate anyway?","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"0b85d76d3463aa9d12f98feaa886a0b750520c34","unresolved":false,"context_lines":[{"line_number":223,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":224,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":225,"context_line":"                else:"},{"line_number":226,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"            request.user \u003d user"},{"line_number":229,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_e332d35e","line":226,"in_reply_to":"9a41bdd9_91c31fed","updated":"2015-07-14 22:58:08.000000000","message":"agreed David, I think that\u0027s the right thing for this patch.\n\nLin, I agree it does seem really inefficient to store the service catalog in the session data. That\u0027s a very big part of what\u0027s in every session and it\u0027s likely all duplicate or a small set of variations even before this patch - now we are doubling the size of the duplicated data. Is that what you intended to address when you proposed \"Session clean up and storage \" at the summit? That seems like a potentially valuable thing, but I\u0027m not sure it should be part of this patch.","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"e3c4a295b80453a66523a214cfdaabc59bc860fe","unresolved":false,"context_lines":[{"line_number":223,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":224,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":225,"context_line":"                else:"},{"line_number":226,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"            request.user \u003d user"},{"line_number":229,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_91c31fed","line":226,"in_reply_to":"9a41bdd9_9e091f2f","updated":"2015-07-14 17:28:29.000000000","message":"well, we\u0027ll be using the keystone endpoint out of the service catalog. So then we\u0027re up to selectively paring the service catalog. I\u0027m leaving as a whole for now.","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"626cd0dfd458d19093565f9b8302ff7f5cd8bf2f","unresolved":false,"context_lines":[{"line_number":223,"context_line":"                              \u0027perform identity operations due to cookie size \u0027"},{"line_number":224,"context_line":"                              \u0027constraints.\u0027)"},{"line_number":225,"context_line":"                else:"},{"line_number":226,"context_line":"                    request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"            request.user \u003d user"},{"line_number":229,"context_line":"            timeout \u003d getattr(settings, \"SESSION_TIMEOUT\", 3600)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a41bdd9_9e091f2f","line":226,"in_reply_to":"ba3cc151_803a7633","updated":"2015-07-13 18:59:33.000000000","message":"We could set the service_catalog to None before setting it in the session.\n\ndomain_auth_ref.service_catalog \u003d None\n\nWe\u0027d have to be careful about how we use it later in horizon due to the endpoint param in the following function.\n\ndomain_user \u003d auth_user.create_user_from_token(\n            request, auth_user.Token(domain_auth_ref),\n           domain_auth_ref.service_catalog.url_for(endpoint_type\u003dinterface))","commit_id":"8228bd79d41393fe7d312ab577041843a16a8d55"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2e185292b72ce57eb3e34670f25629038b014996","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        LOG.debug(\u0027Authentication completed.\u0027)"},{"line_number":236,"context_line":"        return user"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def domain_token_to_session(self, domain_auth_ref, request):"},{"line_number":239,"context_line":"        if domain_auth_ref:"},{"line_number":240,"context_line":"            # check django session engine, if using cookies, this will not"},{"line_number":241,"context_line":"            # work, as it will overflow the cookie so don\u0027t add domain"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_ed0cb5ed","line":238,"updated":"2015-08-13 06:09:30.000000000","message":"this should be marked as private\n\nthe method name is also not descriptive what it does, change to _set_session_from_domain_token","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"75b314fc4ae19c451d0c6787b2d6fa6ede9f6c8d","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        LOG.debug(\u0027Authentication completed.\u0027)"},{"line_number":236,"context_line":"        return user"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def domain_token_to_session(self, domain_auth_ref, request):"},{"line_number":239,"context_line":"        if domain_auth_ref:"},{"line_number":240,"context_line":"            # check django session engine, if using cookies, this will not"},{"line_number":241,"context_line":"            # work, as it will overflow the cookie so don\u0027t add domain"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_47bc8106","line":238,"in_reply_to":"1a4dcd0f_ed0cb5ed","updated":"2015-08-13 19:10:13.000000000","message":"np, will do","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"42fc91f4c4851935c112cf3d6aa2f01d23db3448","unresolved":false,"context_lines":[{"line_number":245,"context_line":"                          \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":246,"context_line":"                          \u0027enabled. This disables the ability to \u0027"},{"line_number":247,"context_line":"                          \u0027perform identity operations due to cookie size \u0027"},{"line_number":248,"context_line":"                          \u0027constraints.\u0027)"},{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_ff1b4071","line":248,"updated":"2015-08-05 23:29:55.000000000","message":"is this an issue with PKI tokens or just a desire to minimize what\u0027s in the session period?","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"4fe3b8e7f0d6444d8e759154d20b0a8a2291d166","unresolved":false,"context_lines":[{"line_number":245,"context_line":"                          \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":246,"context_line":"                          \u0027enabled. This disables the ability to \u0027"},{"line_number":247,"context_line":"                          \u0027perform identity operations due to cookie size \u0027"},{"line_number":248,"context_line":"                          \u0027constraints.\u0027)"},{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_97d67c26","line":248,"in_reply_to":"1a4dcd0f_43537ae2","updated":"2015-08-06 16:10:51.000000000","message":"a known issue and work in progress. reminds me to test and review Lin\u0027s patch on the subject","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"54f93fe08b848f9b908d79377529ea1c861a3e8f","unresolved":false,"context_lines":[{"line_number":245,"context_line":"                          \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":246,"context_line":"                          \u0027enabled. This disables the ability to \u0027"},{"line_number":247,"context_line":"                          \u0027perform identity operations due to cookie size \u0027"},{"line_number":248,"context_line":"                          \u0027constraints.\u0027)"},{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_ab01fa06","line":248,"in_reply_to":"1a4dcd0f_70c8bfa8","updated":"2015-08-06 03:41:54.000000000","message":"we should figure out a way to optimize the service catalogs;  no reason to hold a copy of all the data for each user.","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"9fddecb0f3b697f0101728791ed6e2b2623db05a","unresolved":false,"context_lines":[{"line_number":245,"context_line":"                          \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":246,"context_line":"                          \u0027enabled. This disables the ability to \u0027"},{"line_number":247,"context_line":"                          \u0027perform identity operations due to cookie size \u0027"},{"line_number":248,"context_line":"                          \u0027constraints.\u0027)"},{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_43537ae2","line":248,"in_reply_to":"1a4dcd0f_ab01fa06","updated":"2015-08-06 05:26:42.000000000","message":"the service catalog is fairly static, definitely some caching can be done. And the catalog should not actually be stored in session but in the django cache instead.\n\nAs for the caching, we can probably cache it by project, due to the endpoints in the catalog contains the project_id in the url.","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"699480d076caa0fd451a46f45fba531a409a2847","unresolved":false,"context_lines":[{"line_number":245,"context_line":"                          \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT is \u0027"},{"line_number":246,"context_line":"                          \u0027enabled. This disables the ability to \u0027"},{"line_number":247,"context_line":"                          \u0027perform identity operations due to cookie size \u0027"},{"line_number":248,"context_line":"                          \u0027constraints.\u0027)"},{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_70c8bfa8","line":248,"in_reply_to":"1a4dcd0f_ff1b4071","updated":"2015-08-06 01:02:07.000000000","message":"it\u0027s an issue with all tokens actually. The cookie max size is 4K and even a single project scoped token in v3 with a rich catalog can eclipse the 4K margin. Two tokens will regardless. We recommend not using signed cookies as the session storage engine, this is mainly just a sanity check as operators convert.","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2e185292b72ce57eb3e34670f25629038b014996","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"    def get_domain_auth(self, auth_url, kwargs, session, unscoped_auth_ref):"},{"line_number":253,"context_line":"        # domain support can require domain scoped tokens to perform"},{"line_number":254,"context_line":"        # identity operations depending on the policy files being used"},{"line_number":255,"context_line":"        # for keystone."}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_4d0a89d3","line":252,"updated":"2015-08-13 06:09:30.000000000","message":"this should be marked as private to allow the flexibility to refactor it later","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"75b314fc4ae19c451d0c6787b2d6fa6ede9f6c8d","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            else:"},{"line_number":250,"context_line":"                request.session[\u0027domain_token\u0027] \u003d domain_auth_ref"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"    def get_domain_auth(self, auth_url, kwargs, session, unscoped_auth_ref):"},{"line_number":253,"context_line":"        # domain support can require domain scoped tokens to perform"},{"line_number":254,"context_line":"        # identity operations depending on the policy files being used"},{"line_number":255,"context_line":"        # for keystone."}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_a746a51f","line":252,"in_reply_to":"1a4dcd0f_4d0a89d3","updated":"2015-08-13 19:10:13.000000000","message":"will change to _get_domain_auth","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"}],"openstack_auth/tests/data_v3.py":[{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"1f63c7f0cd9193fe9048a57b18f6d6272aa9296c","unresolved":false,"context_lines":[{"line_number":238,"context_line":"    }"},{"line_number":239,"context_line":"    test_data.domain_scoped_access_info \u003d access.AccessInfo.factory("},{"line_number":240,"context_line":"        resp\u003dauth_response,"},{"line_number":241,"context_line":"        body\u003dscoped_token_dict"},{"line_number":242,"context_line":"    )"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_20beab65","line":241,"updated":"2014-12-11 21:55:11.000000000","message":"Should this be domain_token_dict?","commit_id":"25f2896c51afe6dfdd1846ab293ad7aa9db48ccb"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"0766a9c8e48f8d75fce9e4c61e2f2ed04715eb31","unresolved":false,"context_lines":[{"line_number":238,"context_line":"    }"},{"line_number":239,"context_line":"    test_data.domain_scoped_access_info \u003d access.AccessInfo.factory("},{"line_number":240,"context_line":"        resp\u003dauth_response,"},{"line_number":241,"context_line":"        body\u003dscoped_token_dict"},{"line_number":242,"context_line":"    )"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_d65ccd4d","line":241,"in_reply_to":"3a961159_20beab65","updated":"2014-12-11 23:22:06.000000000","message":"yeah, I noticed that too, fixing","commit_id":"25f2896c51afe6dfdd1846ab293ad7aa9db48ccb"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"53c30ea717b95ee1bcd458a23d13de0cd760e71d","unresolved":false,"context_lines":[{"line_number":233,"context_line":"                }"},{"line_number":234,"context_line":"            },"},{"line_number":235,"context_line":"            \u0027roles\u0027: [role_dict],"},{"line_number":236,"context_line":"            \u0027catalog\u0027: [keystone_service, nova_service]"},{"line_number":237,"context_line":"        }"},{"line_number":238,"context_line":"    }"},{"line_number":239,"context_line":"    test_data.domain_scoped_access_info \u003d access.AccessInfo.factory("}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_dd0c463e","line":236,"updated":"2015-02-09 20:18:06.000000000","message":"this will probably only contain Keystone endpoint","commit_id":"843f1f3afb582b406fcd5393978bcc9e234af192"}],"openstack_auth/tests/tests.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"a4fb85fc4df0de532a49c1a01092f0e857a30bc9","unresolved":false,"context_lines":[{"line_number":497,"context_line":"        plugin.get_access(mox.IsA(session.Session)).AndReturn("},{"line_number":498,"context_line":"            self.data.domain_scoped_access_info)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"        # if no projects for user, but domain scoped token"},{"line_number":501,"context_line":"        # client auth gets set to domain scoped auth"},{"line_number":502,"context_line":"        # otherwise it\u0027s set to the project scoped auth"},{"line_number":503,"context_line":"        # and that happens in a different mock"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_ad04977e","line":500,"updated":"2015-03-02 16:20:10.000000000","message":"(nit) I would clean up this sentence to something like:\n\n\"If the user isn\u0027t authorized for any projects but is authorized to a domain, client auth gets set to domain scoped auth.  Otherwise it\u0027s set to the project scoped auth, and that happens in a different mock.\"","commit_id":"b963fe99c519ebc12fa1e506011efd5783be892d"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2e185292b72ce57eb3e34670f25629038b014996","unresolved":false,"context_lines":[{"line_number":495,"context_line":"            project_id\u003dNone,"},{"line_number":496,"context_line":"            domain_name\u003dDEFAULT_DOMAIN,"},{"line_number":497,"context_line":"            token\u003dself.data.unscoped_access_info.auth_token,"},{"line_number":498,"context_line":"            url\u003durl)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"        plugin.get_access(mox.IsA(session.Session)).AndReturn("},{"line_number":501,"context_line":"            self.data.domain_scoped_access_info)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_6df0a591","line":498,"updated":"2015-08-13 06:09:30.000000000","message":"url is not necessary to be passed, the value is the same as default anyway","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"75b314fc4ae19c451d0c6787b2d6fa6ede9f6c8d","unresolved":false,"context_lines":[{"line_number":495,"context_line":"            project_id\u003dNone,"},{"line_number":496,"context_line":"            domain_name\u003dDEFAULT_DOMAIN,"},{"line_number":497,"context_line":"            token\u003dself.data.unscoped_access_info.auth_token,"},{"line_number":498,"context_line":"            url\u003durl)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"        plugin.get_access(mox.IsA(session.Session)).AndReturn("},{"line_number":501,"context_line":"            self.data.domain_scoped_access_info)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_67509dd5","line":498,"in_reply_to":"1a4dcd0f_6df0a591","updated":"2015-08-13 19:10:13.000000000","message":"will remove","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"1b44c641aa8a2c47f38af4c23c2b2d051ec83f41","unresolved":false,"context_lines":[{"line_number":628,"context_line":"        response \u003d self.client.post(url, form_data)"},{"line_number":629,"context_line":"        self.assertRedirects(response, settings.LOGIN_REDIRECT_URL)"},{"line_number":630,"context_line":""},{"line_number":631,"context_line":"    def test_no_projects(self):"},{"line_number":632,"context_line":"        user \u003d self.data.user"},{"line_number":633,"context_line":"        form_data \u003d self.get_form_data(user)"},{"line_number":634,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"1a4dcd0f_495330e3","line":631,"updated":"2015-08-17 16:15:20.000000000","message":"this covers domain scoped token, no projects.","commit_id":"60bd1a48e63aa5de3c717f6dbd6e1a06b122917b"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2a02d91652dc85d69fbaf3de9b030a7b70e843d9","unresolved":false,"context_lines":[{"line_number":495,"context_line":"            project_id\u003dNone,"},{"line_number":496,"context_line":"            domain_name\u003dDEFAULT_DOMAIN,"},{"line_number":497,"context_line":"            token\u003dself.data.unscoped_access_info.auth_token,"},{"line_number":498,"context_line":"            url\u003durl)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"        plugin.get_access(mox.IsA(session.Session)).AndReturn("},{"line_number":501,"context_line":"            self.data.domain_scoped_access_info)"}],"source_content_type":"text/x-python","patch_set":18,"id":"fa1b9901_45165ef2","line":498,"updated":"2015-08-18 21:40:32.000000000","message":"url does not need to be passed, it already defaults to settings.OPENSTACK_KEYSTONE_URL","commit_id":"561794ad51c941b868a00fb7a43404462b40623e"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2a02d91652dc85d69fbaf3de9b030a7b70e843d9","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        # to the project scoped auth and that happens in a different mock"},{"line_number":506,"context_line":"        enabled_projects \u003d [project for project in projects if project.enabled]"},{"line_number":507,"context_line":"        if not projects or not enabled_projects:"},{"line_number":508,"context_line":"            return self.ks_client_module.Client("},{"line_number":509,"context_line":"                session\u003dmox.IsA(session.Session),"},{"line_number":510,"context_line":"                auth\u003dplugin)"},{"line_number":511,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"fa1b9901_45c09e2a","line":508,"updated":"2015-08-18 21:40:32.000000000","message":"I can\u0027t seem to find how this is used","commit_id":"561794ad51c941b868a00fb7a43404462b40623e"}],"openstack_auth/utils.py":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"8e6df6c01bcaab70df334a872b6effa0be0df132","unresolved":false,"context_lines":[{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    if get_keystone_version() \u003c 3:"},{"line_number":256,"context_line":"        projects \u003d client.tenants.list()"},{"line_number":257,"context_line":"    else:"},{"line_number":258,"context_line":"        projects \u003d client.projects.list(user\u003dkwargs.get(\u0027user_id\u0027))"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"    projects.sort(key\u003dlambda project: project.name.lower())"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_f692979d","line":257,"updated":"2015-02-18 22:49:21.000000000","message":"I *think* we might what to do this.  not 100% yet tho.\n\ndomain_id \u003d client.project_domain_id\nprojects \u003d client.projects.list(user\u003dkwargs.get(\u0027user_id\u0027),\n                                             domain\u003ddomain_id)","commit_id":"843f1f3afb582b406fcd5393978bcc9e234af192"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"8184e5dcaf037a959357488908d09cb2b27b6400","unresolved":false,"context_lines":[{"line_number":153,"context_line":"# Helper for figuring out keystone version"},{"line_number":154,"context_line":"# Implementation will change when API version discovery is available"},{"line_number":155,"context_line":"def get_keystone_version():"},{"line_number":156,"context_line":"    return getattr(settings, \u0027OPENSTACK_API_VERSIONS\u0027, {}).get(\u0027identity\u0027, 3)"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"def get_session():"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba7be1f8_650c3ded","line":156,"updated":"2015-03-03 15:44:56.000000000","message":"I could go either way, but is it sensible to change this as part of this patch? This might affect deployments where it\u0027s not set, and it\u0027d be harder to figure out where the change came from.","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"34d802c9f077040bb6b279676582900e48344eb1","unresolved":false,"context_lines":[{"line_number":153,"context_line":"# Helper for figuring out keystone version"},{"line_number":154,"context_line":"# Implementation will change when API version discovery is available"},{"line_number":155,"context_line":"def get_keystone_version():"},{"line_number":156,"context_line":"    return getattr(settings, \u0027OPENSTACK_API_VERSIONS\u0027, {}).get(\u0027identity\u0027, 3)"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"def get_session():"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_375d5fea","line":156,"in_reply_to":"ba7be1f8_650c3ded","updated":"2015-03-05 21:53:11.000000000","message":"that was unintended actually, good catch","commit_id":"9b9ee464930006ec8d7a685039bdbe53e0fb1482"}],"openstack_auth/views.py":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"04adca06f3f8b9369461b0f70c11d742bf3631b5","unresolved":false,"context_lines":[{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    # delete the domain scoped token if set"},{"line_number":176,"context_line":"    domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":177,"context_line":"    if domain_token and endpoint:"},{"line_number":178,"context_line":"        delete_token(endpoint\u003dendpoint, token_id\u003ddomain_token.auth_token)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    \"\"\" Securely logs a user out. \"\"\""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_186cd9cc","line":177,"updated":"2015-08-06 17:21:28.000000000","message":"There is a case where there is only a domain token and both token and domain_token reference the same object. I wonder if you should check for it here?\n\nas far as I can tell by reading the code the only impact is an extra call to delete a token that\u0027s deleted and maybe an extra log message, so not a critical update.","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"75b314fc4ae19c451d0c6787b2d6fa6ede9f6c8d","unresolved":false,"context_lines":[{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    # delete the domain scoped token if set"},{"line_number":176,"context_line":"    domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":177,"context_line":"    if domain_token and endpoint:"},{"line_number":178,"context_line":"        delete_token(endpoint\u003dendpoint, token_id\u003ddomain_token.auth_token)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    \"\"\" Securely logs a user out. \"\"\""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_072af92f","line":177,"in_reply_to":"1a4dcd0f_186cd9cc","updated":"2015-08-13 19:10:13.000000000","message":"I\u0027ll add a comment here that describes this so we don\u0027t lose track.","commit_id":"2d7594c47a3d3f7b5edbfc79e6e610dfe930e663"}]}
