)]}'
{"specs/keystoneclient/cookie-for-token.rst":[{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"008cb3e98a97ea48556b36047812d0b1e570dd2f","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Example Spec - The title of your blueprint"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp cookie-for-token \u003chttps://blueprints.launchpad.net/python-keystoneclient/+spec/cookie-for-token\u003e`"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_0e0badd5","line":8,"updated":"2014-07-24 22:15:02.000000000","message":"?","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"05bb2d96a75249781c8bfacb89e3f3e7185e94f8","unresolved":false,"context_lines":[{"line_number":8,"context_line":"Example Spec - The title of your blueprint"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp cookie-for-token \u003chttps://blueprints.launchpad.net/python-keystoneclient/+spec/cookie-for-token\u003e`"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Provide a helper function to convert a PKI token into its hashed version for"},{"line_number":14,"context_line":"second and additional passes.  Validate based on the value extracted from the"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_2e0dd18f","line":11,"updated":"2014-07-24 22:27:56.000000000","message":"(NIT): Linewrap to 79 columns","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"008cb3e98a97ea48556b36047812d0b1e570dd2f","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp cookie-for-token \u003chttps://blueprints.launchpad.net/python-keystoneclient/+spec/cookie-for-token\u003e`"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Provide a helper function to convert a PKI token into its hashed version for"},{"line_number":14,"context_line":"second and additional passes.  Validate based on the value extracted from the"},{"line_number":15,"context_line":"cookie."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_0e22cd53","line":13,"updated":"2014-07-24 22:15:02.000000000","message":"\"helper function\" jumps immediately into implementation - avoid that throughout the spec. just give a concise overview of the spec here","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"05bb2d96a75249781c8bfacb89e3f3e7185e94f8","unresolved":false,"context_lines":[{"line_number":18,"context_line":"Problem Description"},{"line_number":19,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"People are continuing to use UUID tokens due to the size of PKI tokens.  The"},{"line_number":24,"context_line":"current shortcut used by Horizon of converting a token to its hashed form"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_2ed231d1","line":21,"updated":"2014-07-24 22:27:56.000000000","message":"(NIT): why so many lines?","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"008cb3e98a97ea48556b36047812d0b1e570dd2f","unresolved":false,"context_lines":[{"line_number":23,"context_line":"People are continuing to use UUID tokens due to the size of PKI tokens.  The"},{"line_number":24,"context_line":"current shortcut used by Horizon of converting a token to its hashed form"},{"line_number":25,"context_line":"requires the client knowing the Hash algorthimg used, and converts the Hashed"},{"line_number":26,"context_line":"version of the token into an insecure bearer token.   Additionally, it forces"},{"line_number":27,"context_line":"fallback to online validation and verification."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_6ec0a97c","line":26,"updated":"2014-07-24 22:15:02.000000000","message":"PKI tokens are bearer tokens as well","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"05bb2d96a75249781c8bfacb89e3f3e7185e94f8","unresolved":false,"context_lines":[{"line_number":23,"context_line":"People are continuing to use UUID tokens due to the size of PKI tokens.  The"},{"line_number":24,"context_line":"current shortcut used by Horizon of converting a token to its hashed form"},{"line_number":25,"context_line":"requires the client knowing the Hash algorthimg used, and converts the Hashed"},{"line_number":26,"context_line":"version of the token into an insecure bearer token.   Additionally, it forces"},{"line_number":27,"context_line":"fallback to online validation and verification."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_6ed7c9bf","line":26,"in_reply_to":"baada198_6ec0a97c","updated":"2014-07-24 22:27:56.000000000","message":"unless auth binding occurs, PKI tokens are just as insecure (if not more so due to delay in revocation list sync)","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"008cb3e98a97ea48556b36047812d0b1e570dd2f","unresolved":false,"context_lines":[{"line_number":34,"context_line":"auth_token only processes on the request stage.  Add a response handler that"},{"line_number":35,"context_line":"extracts the auth_token out of the request, generates a random hash as its key,"},{"line_number":36,"context_line":"and adds the token data to memcache, keyed by the new random value.  Then, add"},{"line_number":37,"context_line":"the key into a session cookie."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"In the keystoneclient session code, look for the cookie and maintain it,"},{"line_number":40,"context_line":"sending it in place of the last used token for repeated calls to the endpoint."}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_8e717d47","line":37,"updated":"2014-07-24 22:15:02.000000000","message":"so, in other words, completely and utterly abandon REST","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"05bb2d96a75249781c8bfacb89e3f3e7185e94f8","unresolved":false,"context_lines":[{"line_number":34,"context_line":"auth_token only processes on the request stage.  Add a response handler that"},{"line_number":35,"context_line":"extracts the auth_token out of the request, generates a random hash as its key,"},{"line_number":36,"context_line":"and adds the token data to memcache, keyed by the new random value.  Then, add"},{"line_number":37,"context_line":"the key into a session cookie."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"In the keystoneclient session code, look for the cookie and maintain it,"},{"line_number":40,"context_line":"sending it in place of the last used token for repeated calls to the endpoint."}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_0e7f2de0","line":37,"in_reply_to":"baada198_8e717d47","updated":"2014-07-24 22:27:56.000000000","message":"So, you need to make a request to a service and then get a cookie back that is a map to the real token..which is stored in memcached...\n\nAlternatively keystone could just inject the token data into memcached and the services could check memcached for the token data befor asking keystone.. Then we could just return the uuid-type-token and call it a day (without extracting the \"cookie\" respponse from the request).\n\nIs this a real \"cookie\" (HTTP style) or something you\u0027re calling a \"cookie\"? How are cookies secured?","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"008cb3e98a97ea48556b36047812d0b1e570dd2f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"In the keystoneclient session code, look for the cookie and maintain it,"},{"line_number":40,"context_line":"sending it in place of the last used token for repeated calls to the endpoint."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"During the auth_token processing stage, look first for the cookie.  If it"},{"line_number":43,"context_line":"exists, use it to fetch the token data out of memcache and varify that it has"},{"line_number":44,"context_line":"not been revoked.  Set the cookie as an environment variable."},{"line_number":45,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_4e94c543","line":42,"updated":"2014-07-24 22:15:02.000000000","message":"what is the auth_token processing stage?","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"008cb3e98a97ea48556b36047812d0b1e570dd2f","unresolved":false,"context_lines":[{"line_number":43,"context_line":"exists, use it to fetch the token data out of memcache and varify that it has"},{"line_number":44,"context_line":"not been revoked.  Set the cookie as an environment variable."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"During the process_response stage,  it is important to check for the existence"},{"line_number":47,"context_line":"of the random hash generated in previous requests, and reuse it instead of"},{"line_number":48,"context_line":"generating a new one, as multiple requests might come in parallel."},{"line_number":49,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_eea599b5","line":46,"updated":"2014-07-24 22:15:02.000000000","message":"i think you\u0027re getting keystone\u0027s middleware framework confused with something else. auth_token doesn\u0027t use keystone\u0027s middleware framework.","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"05bb2d96a75249781c8bfacb89e3f3e7185e94f8","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"There should be no resource exhaustion.  Any attack would take the form of a"},{"line_number":80,"context_line":"DDOS, and needs to be protected at the endpoint already.  Tokens already"},{"line_number":81,"context_line":"depend on a high degree of randomness in their range, this does not change that."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"Notifications Impact"},{"line_number":84,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_0ecd6d30","line":81,"updated":"2014-07-24 22:27:56.000000000","message":"Could it be possible to fill up memcached? what if memcached fails or a token LRUs out before expiry? Does that net a security impact?","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"8dcb9f6f57bfc17f2950766472013d1ef7532937","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Slight increase in the demand for random numbers in the client"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"Reduced hashing of PKIZ tokens."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Other Deployer Impact"},{"line_number":104,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_4e012538","line":101,"updated":"2014-07-24 22:29:42.000000000","message":"When a memcache server goes down, how do you handle it? the python-memcache libraries (frankly) are bad and cause massive delays waiting for a timeout.\n\nThere has also been cases where high request rates through memcache will bind up python (and eventlet) due to the GIL if there is much/any real looping involving asking memcache for lots of data.","commit_id":"42fbd259be5ec292424d2769e04b124cd3733da6"}]}
