)]}'
{"doc/source/index.rst":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"ab5178f76ad40ff080e3b0a81a2230af7293cc1e","unresolved":false,"context_lines":[{"line_number":25,"context_line":"   specs/keystone/rocky/*"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"Queens approved specs:"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"`Queens Roadmap \u003chttps://trello.com/b/5F0h9Hoe/keystone-queens-roadmap\u003e`_"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":".. toctree::"},{"line_number":33,"context_line":"   :glob:"},{"line_number":34,"context_line":"   :maxdepth: 1"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"   specs/keystone/queens/*"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Backlog:"}],"source_content_type":"text/x-rst","patch_set":11,"id":"bf659307_49b863c7","line":36,"range":{"start_line":28,"start_character":0,"end_line":36,"end_character":26},"updated":"2018-03-26 15:05:13.000000000","message":"This section should technically be moved below. We can do this in a follow up if there isn\u0027t another patch set proposed.","commit_id":"d3695a1b5d3b6e37df7147c88f2eb2d7943ddc4f"}],"specs/keystone/rocky/mfa-auth-receipt.rst":[{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":56,"context_line":"certain auth methods have been completed. The return code for this would be"},{"line_number":57,"context_line":"``401`` as the user is still unauthorised, but the response header and body"},{"line_number":58,"context_line":"would give them the information they need to continue the auth process."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"In addition this response would be explicitly setup to only occur when a user"},{"line_number":61,"context_line":"with auth rules successfully auths with one of the methods in any of their auth"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_469a8ec5","line":58,"range":{"start_line":57,"start_character":42,"end_line":58,"end_character":71},"updated":"2018-03-20 01:27:33.000000000","message":"suggest defining where the response data is header *or* body.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":56,"context_line":"certain auth methods have been completed. The return code for this would be"},{"line_number":57,"context_line":"``401`` as the user is still unauthorised, but the response header and body"},{"line_number":58,"context_line":"would give them the information they need to continue the auth process."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"In addition this response would be explicitly setup to only occur when a user"},{"line_number":61,"context_line":"with auth rules successfully auths with one of the methods in any of their auth"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_a9efbbae","line":58,"range":{"start_line":57,"start_character":42,"end_line":58,"end_character":71},"in_reply_to":"df7087c5_469a8ec5","updated":"2018-03-20 04:29:25.000000000","message":"id in header just like token, data in body.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":65,"context_line":"minutes), but be configurable by the deployer via a conf setting."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"The receipt id would be included in the header in the same fashion as a token"},{"line_number":68,"context_line":"but under the header ``X-AUTH-RECEIPT``."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"An example response::"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_a6bb6a0c","line":68,"range":{"start_line":68,"start_character":23,"end_line":68,"end_character":37},"updated":"2018-03-20 01:27:33.000000000","message":"DO noth use the \"X-YYYYYY\" format for headers, see https://tools.ietf.org/html/rfc6648, use ``OpenStack-Auth-Recepit`` or similar header name.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":65,"context_line":"minutes), but be configurable by the deployer via a conf setting."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"The receipt id would be included in the header in the same fashion as a token"},{"line_number":68,"context_line":"but under the header ``X-AUTH-RECEIPT``."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"An example response::"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_492a9fe7","line":68,"range":{"start_line":68,"start_character":23,"end_line":68,"end_character":37},"in_reply_to":"df7087c5_a6bb6a0c","updated":"2018-03-20 04:29:25.000000000","message":"done","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":67,"context_line":"The receipt id would be included in the header in the same fashion as a token"},{"line_number":68,"context_line":"but under the header ``X-AUTH-RECEIPT``."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"An example response::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    {"},{"line_number":73,"context_line":"        \"receipt\": {"},{"line_number":74,"context_line":"            \"methods\": ["},{"line_number":75,"context_line":"                \"password\""},{"line_number":76,"context_line":"            ],"},{"line_number":77,"context_line":"            \"required_auth_plugins\": ["},{"line_number":78,"context_line":"                [\u0027password\u0027, \u0027totp\u0027]"},{"line_number":79,"context_line":"            ],"},{"line_number":80,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\","},{"line_number":81,"context_line":"            \"user\": {"},{"line_number":82,"context_line":"                \"domain\": {"},{"line_number":83,"context_line":"                    \"id\": \"default\","},{"line_number":84,"context_line":"                    \"name\": \"Default\""},{"line_number":85,"context_line":"                },"},{"line_number":86,"context_line":"                \"id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":87,"context_line":"                \"name\": \"admin\","},{"line_number":88,"context_line":"                \"password_expires_at\": null"},{"line_number":89,"context_line":"            },"},{"line_number":90,"context_line":"            \"audit_ids\": ["},{"line_number":91,"context_line":"                \"ZzZwkUflQfygX7pdYDBCQQ\""},{"line_number":92,"context_line":"            ],"},{"line_number":93,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\""},{"line_number":94,"context_line":"        }"},{"line_number":95,"context_line":"    }"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"``required_auth_plugins`` would be a list of rules that include the"},{"line_number":98,"context_line":"successfully authenticated method and not a list of all user auth rules."}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_26d0ba50","line":95,"range":{"start_line":70,"start_character":0,"end_line":95,"end_character":5},"updated":"2018-03-20 01:27:33.000000000","message":"Ok, lets look through what data we need to pass back:\n\nwe do not need audit_ids, that is for fully issued tokens, this new \"receipt\" can only ever be used to get a token.\n\nI suggest only including the user_id in the receipt, no domain data, no name data.\n\npassword_expires_at is superfluous, remove.\n\nThis is what I suggest responding with in the payload for the receipt (it doesn\u0027t have to be json, just the very basic info goes into the payload, this data doesn\u0027t need to be exposed to the client); keep this super short/limited. We can derive expiration from the issued_at, we may need to include the scope data in here (if supplied) as well. Rememeber this is just the data in the payload of the receipt:\n\n    {\n        \"receipt\": {\n            \"methods\": [\n                \"password\"\n            ],\n            \"user_id\":\"423f19a4ac1e4f48bbb4180756e6eb6c\",\n            \"issued_at\": \"2015-11-06T14:32:17.893797Z\"\n        },\n    }\n\nWe need to communicate the possible combinations of MFA rules, \"required_auth_plugins\" is not necessarily providing enough information about what auth methods could satisfy the MFA rules.\n\nI suggest communicating that data in the 401 body or in another header the client can interact with. In that data you should also expose what methods have been processed.\n\n  { \n    \"processed_auth_plugins\":\n       [\"password\", \"...\", \"...\"]\n    \"auth_requirements\":\n       [\"password\", \"totp\", \"...\", \"...\"]\n  }","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":67,"context_line":"The receipt id would be included in the header in the same fashion as a token"},{"line_number":68,"context_line":"but under the header ``X-AUTH-RECEIPT``."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"An example response::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    {"},{"line_number":73,"context_line":"        \"receipt\": {"},{"line_number":74,"context_line":"            \"methods\": ["},{"line_number":75,"context_line":"                \"password\""},{"line_number":76,"context_line":"            ],"},{"line_number":77,"context_line":"            \"required_auth_plugins\": ["},{"line_number":78,"context_line":"                [\u0027password\u0027, \u0027totp\u0027]"},{"line_number":79,"context_line":"            ],"},{"line_number":80,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\","},{"line_number":81,"context_line":"            \"user\": {"},{"line_number":82,"context_line":"                \"domain\": {"},{"line_number":83,"context_line":"                    \"id\": \"default\","},{"line_number":84,"context_line":"                    \"name\": \"Default\""},{"line_number":85,"context_line":"                },"},{"line_number":86,"context_line":"                \"id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":87,"context_line":"                \"name\": \"admin\","},{"line_number":88,"context_line":"                \"password_expires_at\": null"},{"line_number":89,"context_line":"            },"},{"line_number":90,"context_line":"            \"audit_ids\": ["},{"line_number":91,"context_line":"                \"ZzZwkUflQfygX7pdYDBCQQ\""},{"line_number":92,"context_line":"            ],"},{"line_number":93,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\""},{"line_number":94,"context_line":"        }"},{"line_number":95,"context_line":"    }"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"``required_auth_plugins`` would be a list of rules that include the"},{"line_number":98,"context_line":"successfully authenticated method and not a list of all user auth rules."}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_89fc373f","line":95,"range":{"start_line":70,"start_character":0,"end_line":95,"end_character":5},"in_reply_to":"df7087c5_26d0ba50","updated":"2018-03-20 04:29:25.000000000","message":"Yeah... that was just copy and paste. Have cleaned up to be clearer.\n\nI\u0027ve kept expires_at because the client doesn\u0027t know how long receipts last (that\u0027s a keystone config).\n\nrequired_auth_plugins is meant to be what you describe, I just didn\u0027t include multiple rules, but have added that now.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        }"},{"line_number":95,"context_line":"    }"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"``required_auth_plugins`` would be a list of rules that include the"},{"line_number":98,"context_line":"successfully authenticated method and not a list of all user auth rules."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"By knowing what auth rules are needed we can build tools and libraries that"},{"line_number":101,"context_line":"after a partially successful authentication can infer about the missing pieces."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"This allows Horizon to build GUI based on the returned receipt, and not require"},{"line_number":104,"context_line":"the user to reenter their password."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Alternatives"},{"line_number":107,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_e66f2290","line":104,"range":{"start_line":97,"start_character":0,"end_line":104,"end_character":35},"updated":"2018-03-20 01:27:33.000000000","message":"You need to communicate the entire rulesets so that the client can know what combinations it may use. The requirement may be:\n\nPassword \u0026\u0026 TOTP \n\nOR\n\nPassword \u0026\u0026 X509\n\n\nThe MFA rules are a list of lists. Each sublist describes a combination of auth plugins that satisfies the auth requirement. The above example would look like:\n\n  [\n    [\"password\", \"totp\"],\n    [\"password\", \"x509\"]\n  ]\n\nEither combination would be sufficient.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        }"},{"line_number":95,"context_line":"    }"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"``required_auth_plugins`` would be a list of rules that include the"},{"line_number":98,"context_line":"successfully authenticated method and not a list of all user auth rules."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"By knowing what auth rules are needed we can build tools and libraries that"},{"line_number":101,"context_line":"after a partially successful authentication can infer about the missing pieces."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"This allows Horizon to build GUI based on the returned receipt, and not require"},{"line_number":104,"context_line":"the user to reenter their password."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Alternatives"},{"line_number":107,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_69c203ec","line":104,"range":{"start_line":97,"start_character":0,"end_line":104,"end_character":35},"in_reply_to":"df7087c5_e66f2290","updated":"2018-03-20 04:29:25.000000000","message":"required_auth_plugins was already a list of lists, since a \u0027rule\u0027 is a list of methods, and the only rules we should return are ones that have overlap with the successful methods.\n\nThat also means that if you auth successfully with password and method2, we may return:\n\n[\n   [\u0027password\u0027, \u0027totp\u0027],\n   [\u0027method2\u0027, \u0027totp\u0027]\n]","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"This allows Horizon to build GUI based on the returned receipt, and not require"},{"line_number":104,"context_line":"the user to reenter their password."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Alternatives"},{"line_number":107,"context_line":"------------"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_46d28e36","line":105,"updated":"2018-03-20 01:27:33.000000000","message":"Is it expected that the client would only get the receipt from the first auth attempt? if you pass OpenStack-Auth-Receipt header and get a step closer (e.g. provide 2 auth methods where 3 are required) would you get a subsequent receipt or just a flat 401? E.g. could you have multiple receipts chained together?\n\nWhat does the receipt look like? please provide an example.\n\nDoes this use the fernet model (not the tokens, the actual crypto library), if so, we need another fernet repository for MFA receipts, this needs documentation, and communication to deployers via deployer impact, etc.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"This allows Horizon to build GUI based on the returned receipt, and not require"},{"line_number":104,"context_line":"the user to reenter their password."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Alternatives"},{"line_number":107,"context_line":"------------"},{"line_number":108,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_cc879db6","line":105,"in_reply_to":"df7087c5_46d28e36","updated":"2018-03-20 04:29:25.000000000","message":"Receipts should probably be cumulative, so yes, a receipt can be exchanged for a receipt with extra methods.\n\nExample of receipt data as in the encrypted payload will be added (it\u0027s almost nothing).\n\nAnd yes on fernet, and have expanded on that in the spec.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":125,"context_line":"Security Impact"},{"line_number":126,"context_line":"---------------"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"A user who authenticates with one successful method now knows what auth rules"},{"line_number":129,"context_line":"can be used for a given user. This isn\u0027t particularly unsafe, as while they"},{"line_number":130,"context_line":"know the rules, they can\u0027t auth with them. Additionally it is safe to assume"},{"line_number":131,"context_line":"that one successful auth method is enough to prove identity of the user, while"},{"line_number":132,"context_line":"not enough to satisfy authentication requirements."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Notifications Impact"},{"line_number":135,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_468e0e28","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":50},"updated":"2018-03-20 01:27:33.000000000","message":"What is the case when a user provides no methods? Ensure that we flat 401 if no methods pass or none are passed in.\n\nWhat happens if one auth method fails, but the other succeeds? I think right now the failure of any auth method is a total failure (which is fine and probably should be maintained).","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":125,"context_line":"Security Impact"},{"line_number":126,"context_line":"---------------"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"A user who authenticates with one successful method now knows what auth rules"},{"line_number":129,"context_line":"can be used for a given user. This isn\u0027t particularly unsafe, as while they"},{"line_number":130,"context_line":"know the rules, they can\u0027t auth with them. Additionally it is safe to assume"},{"line_number":131,"context_line":"that one successful auth method is enough to prove identity of the user, while"},{"line_number":132,"context_line":"not enough to satisfy authentication requirements."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"Notifications Impact"},{"line_number":135,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_09ffc767","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":50},"in_reply_to":"df7087c5_468e0e28","updated":"2018-03-20 04:29:25.000000000","message":"No methods is a failure, all methods fail is a failure.\n\nI\u0027m torn on partial failure. In the case of password+totp the totp code may have expired 1sec ago, and returning a receipt so only the totp code needs to be resent isn\u0027t a bad idea. I\u0027d prefer returning a receipt, but would budge if we all agreed that failure is better if we made the error returned parsable and clear as to what failed, what didn\u0027t (receipt without the receipt id basically).\n\nSame again if a receipt auth attempt fails, the receipt is still \u0027valid\u0027 until it expires so you have a few chances to get your totp code right.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Notifications Impact"},{"line_number":135,"context_line":"--------------------"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"N/A"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Other End User Impact"},{"line_number":140,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_66931251","line":137,"range":{"start_line":137,"start_character":0,"end_line":137,"end_character":3},"updated":"2018-03-20 01:27:33.000000000","message":"Do we issue notifications on the partial auth? Ensure we\u0027re clear where/if we are changing notifications. \"N/A\" is insufficient here.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":134,"context_line":"Notifications Impact"},{"line_number":135,"context_line":"--------------------"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"N/A"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"Other End User Impact"},{"line_number":140,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_ec84e1b3","line":137,"range":{"start_line":137,"start_character":0,"end_line":137,"end_character":3},"in_reply_to":"df7087c5_66931251","updated":"2018-03-20 04:29:25.000000000","message":"Unsure. Do we issues notifications on successful auth? We may want to then do the same here.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"e340a67541e5bad7a1cff41136938023eb632ff9","unresolved":false,"context_lines":[{"line_number":162,"context_line":"Other Deployer Impact"},{"line_number":163,"context_line":"---------------------"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"This would allow a much better MFA method going forward and allow us to expand"},{"line_number":166,"context_line":"on it in ways that would actually be useful to deployers."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"Developer Impact"},{"line_number":169,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_06981668","line":166,"range":{"start_line":165,"start_character":0,"end_line":166,"end_character":57},"updated":"2018-03-20 01:27:33.000000000","message":"This is not really a deployer impact statement, remove.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"0087e6030865e104ee185baefef212e64c60f5f5","unresolved":false,"context_lines":[{"line_number":162,"context_line":"Other Deployer Impact"},{"line_number":163,"context_line":"---------------------"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"This would allow a much better MFA method going forward and allow us to expand"},{"line_number":166,"context_line":"on it in ways that would actually be useful to deployers."},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"Developer Impact"},{"line_number":169,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_d7aacad0","line":166,"range":{"start_line":165,"start_character":0,"end_line":166,"end_character":57},"in_reply_to":"df7087c5_06981668","updated":"2018-03-20 04:29:25.000000000","message":"Yeah... what I wrote is mostly nonsense. I\u0027ve actually added something useful now.","commit_id":"417fd2fdd8e3ab7fbf1f9d3df64864d8d49a7e2e"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"df7087c5_bba04fa7","updated":"2018-03-20 16:49:16.000000000","message":"Please add that any auth-plugin failure is a hard 401. No chained receipts e.g.:\n\nIf a bad password is supplied but a valid totp, this is a hard 401. Similar if a bad totp is submitted.\n\nAny failure is explicitly a hard failure with regards to receipts and multi-step auth.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"a9b8e850a7113805d142eb4793e9bb5ec540fd19","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"df7087c5_20c0872a","in_reply_to":"df7087c5_7645ee6f","updated":"2018-03-20 19:28:37.000000000","message":"What we agreed on today was, I think:\n\nAll auth methods failed -\u003e hard 401, no information on why\nAt least one auth method succeeds but another fails -\u003e still a hard 401, no receipt, but with structured data informing the user which auth methods failed","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"df7087c5_7645ee6f","in_reply_to":"df7087c5_bba04fa7","updated":"2018-03-20 17:36:40.000000000","message":"As said in a previous comment, I do lean towards a receipt for methods that were successfully even if some fail. Will let others chime in first though, and if they want a hard failure too, then my only requirement is that we make the response for that error formatted json that describes the failure, and what was valid/wasn\u0027t. So basically like the receipt body but without an actual receipt.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":51,"context_line":"can infer that they are who they say they are, and then return to them a"},{"line_number":52,"context_line":"receipt that contains information about missing auth rules."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"If a user attempts auth with multiple methods and one fails, we still return a"},{"line_number":55,"context_line":"receipt for the methods that passed."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"Using a receipt to get a new receipt with extra auth methods should ideally be"},{"line_number":58,"context_line":"possible. If you need three auth methods to get a token, you should be able to"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_fb47a7bb","line":55,"range":{"start_line":54,"start_character":0,"end_line":55,"end_character":36},"updated":"2018-03-20 16:49:16.000000000","message":"See top of file comment","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":54,"context_line":"If a user attempts auth with multiple methods and one fails, we still return a"},{"line_number":55,"context_line":"receipt for the methods that passed."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"Using a receipt to get a new receipt with extra auth methods should ideally be"},{"line_number":58,"context_line":"possible. If you need three auth methods to get a token, you should be able to"},{"line_number":59,"context_line":"add to your receipt until it can become a token."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":62,"context_line":"certain auth methods have been completed. The expiry for the receipt would"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_5b225303","line":59,"range":{"start_line":57,"start_character":0,"end_line":59,"end_character":48},"updated":"2018-03-20 16:49:16.000000000","message":"Provide an example of what the subsequent auth with receipt header looks like.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":54,"context_line":"If a user attempts auth with multiple methods and one fails, we still return a"},{"line_number":55,"context_line":"receipt for the methods that passed."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"Using a receipt to get a new receipt with extra auth methods should ideally be"},{"line_number":58,"context_line":"possible. If you need three auth methods to get a token, you should be able to"},{"line_number":59,"context_line":"add to your receipt until it can become a token."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":62,"context_line":"certain auth methods have been completed. The expiry for the receipt would"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_ea9d8ebb","line":59,"range":{"start_line":57,"start_character":0,"end_line":59,"end_character":48},"in_reply_to":"df7087c5_5b225303","updated":"2018-03-20 17:36:40.000000000","message":"Will add it below the payload example below.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":58,"context_line":"possible. If you need three auth methods to get a token, you should be able to"},{"line_number":59,"context_line":"add to your receipt until it can become a token."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":62,"context_line":"certain auth methods have been completed. The expiry for the receipt would"},{"line_number":63,"context_line":"default to a fairly short time-frame (15 minutes), but be configurable by the"},{"line_number":64,"context_line":"deployer via a conf setting."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"The return code for this would be ``401`` as the user is still unauthorised,"},{"line_number":67,"context_line":"with the response header containing the receipt id, and the body containing"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_3b6c3f35","line":64,"range":{"start_line":61,"start_character":0,"end_line":64,"end_character":27},"updated":"2018-03-20 16:49:16.000000000","message":"Please select a 5m expiry on the receipt. This needs to be as narrow as possible as it is only ever used to auth with the next factor.\n\nI tested google and their auth works as follows:\n\nEmail (page 1)\nPassword (page 2)\nTOTP (page 3)\n\nIt still allowed auth after 5+ minutes of waiting, however, since we don\u0027t prevent replay we should keep this narrow. If we start preventing replay on a receipt (real 1-time use) we can eliminate the expiration.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":58,"context_line":"possible. If you need three auth methods to get a token, you should be able to"},{"line_number":59,"context_line":"add to your receipt until it can become a token."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":62,"context_line":"certain auth methods have been completed. The expiry for the receipt would"},{"line_number":63,"context_line":"default to a fairly short time-frame (15 minutes), but be configurable by the"},{"line_number":64,"context_line":"deployer via a conf setting."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"The return code for this would be ``401`` as the user is still unauthorised,"},{"line_number":67,"context_line":"with the response header containing the receipt id, and the body containing"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_96168255","line":64,"range":{"start_line":61,"start_character":0,"end_line":64,"end_character":27},"in_reply_to":"df7087c5_3669b6bd","updated":"2018-03-20 17:36:40.000000000","message":"We can always tweak this later if 15mins proved to be an unsafe default. This doesn\u0027t require a deprecation warning to change later, and deployers can always override it themselves.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"3cac007ecc45584f52e6ea23e6a7ced8090b7448","unresolved":false,"context_lines":[{"line_number":58,"context_line":"possible. If you need three auth methods to get a token, you should be able to"},{"line_number":59,"context_line":"add to your receipt until it can become a token."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"This receipt would allow no API interaction, but it would be proof that"},{"line_number":62,"context_line":"certain auth methods have been completed. The expiry for the receipt would"},{"line_number":63,"context_line":"default to a fairly short time-frame (15 minutes), but be configurable by the"},{"line_number":64,"context_line":"deployer via a conf setting."},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"The return code for this would be ``401`` as the user is still unauthorised,"},{"line_number":67,"context_line":"with the response header containing the receipt id, and the body containing"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_3669b6bd","line":64,"range":{"start_line":61,"start_character":0,"end_line":64,"end_character":27},"in_reply_to":"df7087c5_3b6c3f35","updated":"2018-03-20 16:54:37.000000000","message":"Actually, strike that. since more auth info is required, i am fine with a longer expiry.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":72,"context_line":"rules."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"The receipt id would be included in the header in the same fashion as a token"},{"line_number":75,"context_line":"but under the header ``OPENSTACK-AUTH-RECEIPT``."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"An example response::"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_9b86ab13","line":75,"range":{"start_line":75,"start_character":21,"end_line":75,"end_character":47},"updated":"2018-03-20 16:49:16.000000000","message":"Please add what header (if it is the same as this) that includes the \"fernet\"-receipt in the 401 response. Please be explicit that this is used in lieu of x-auth-token AND/or the same header used in the initial 401 response.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":72,"context_line":"rules."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"The receipt id would be included in the header in the same fashion as a token"},{"line_number":75,"context_line":"but under the header ``OPENSTACK-AUTH-RECEIPT``."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"An example response::"},{"line_number":78,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_2aeb86dc","line":75,"range":{"start_line":75,"start_character":21,"end_line":75,"end_character":47},"in_reply_to":"df7087c5_9b86ab13","updated":"2018-03-20 17:36:40.000000000","message":"Will clarify that OPENSTACK-AUTH-RECEIPT is the header value which includes the fernet encrypted payload (receipt id from the user\u0027s perspective), and this is included in a 401 response when the conditions for a receipt being created are met.\n\nAnd in the auth example I\u0027ll add, I\u0027ll be explicit that much like x-auth-token, this receipt id value should be given in the request header as part of an auth attempt that wishs to use the receipt. Keystone itself will check for the header, and if present treat those methods in it as \u0027already valid\u0027 and then only require the missing methods as part of it\u0027s checking of auth for the given user.\n\nWorth potentially adding a note about what if the receipt contains a method that the user is attempting to supply again... Keystone should probably ignore the valid state and recheck the method details as provided by the user in that situation.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"a9b8e850a7113805d142eb4793e9bb5ec540fd19","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            \"methods\": ["},{"line_number":82,"context_line":"                \"password\""},{"line_number":83,"context_line":"            ],"},{"line_number":84,"context_line":"            \"required_auth_plugins\": ["},{"line_number":85,"context_line":"                [\u0027password\u0027, \u0027totp\u0027],"},{"line_number":86,"context_line":"                [\u0027password\u0027, \u0027option2\u0027],"},{"line_number":87,"context_line":"                [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_6083dfaa","line":84,"range":{"start_line":84,"start_character":13,"end_line":84,"end_character":34},"updated":"2018-03-20 19:28:37.000000000","message":"sort of a nitpick but I think it makes more sense to call this \"required_auth_methods\" rather than _plugins, to mirror the \"methods\" block. I think of an auth \"plugin\" as the part of keystoneauth that we use to represent a keystone auth \"method\".","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            \"methods\": ["},{"line_number":82,"context_line":"                \"password\""},{"line_number":83,"context_line":"            ],"},{"line_number":84,"context_line":"            \"required_auth_plugins\": ["},{"line_number":85,"context_line":"                [\u0027password\u0027, \u0027totp\u0027],"},{"line_number":86,"context_line":"                [\u0027password\u0027, \u0027option2\u0027],"},{"line_number":87,"context_line":"                [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]"},{"line_number":88,"context_line":"            ],"},{"line_number":89,"context_line":"            \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":90,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\","},{"line_number":91,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\""}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_9b9b0b65","line":88,"range":{"start_line":84,"start_character":12,"end_line":88,"end_character":14},"updated":"2018-03-20 16:49:16.000000000","message":"move this outside of the receipt block:\n\n    {\n        \"receipt\": {\n            \"methods\": [\n                \"password\"\n            ],\n            \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\",\n            \"expires_at\": \"2015-11-06T15:32:17.893769Z\"\n        },\n        \"required_auth_plugins\": [\n            [\u0027password\u0027, \u0027totp\u0027],\n            [\u0027password\u0027, \u0027option2\u0027],\n            [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]\n        ],\n    }\n\nThis is to make the receipt body more in line with what is in the payload and allowing clients to work with a top-level data structure.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            \"methods\": ["},{"line_number":82,"context_line":"                \"password\""},{"line_number":83,"context_line":"            ],"},{"line_number":84,"context_line":"            \"required_auth_plugins\": ["},{"line_number":85,"context_line":"                [\u0027password\u0027, \u0027totp\u0027],"},{"line_number":86,"context_line":"                [\u0027password\u0027, \u0027option2\u0027],"},{"line_number":87,"context_line":"                [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]"},{"line_number":88,"context_line":"            ],"},{"line_number":89,"context_line":"            \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":90,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\","},{"line_number":91,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\""}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_7683ae05","line":88,"range":{"start_line":84,"start_character":12,"end_line":88,"end_character":14},"in_reply_to":"df7087c5_9b9b0b65","updated":"2018-03-20 17:36:40.000000000","message":"will do.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]"},{"line_number":88,"context_line":"            ],"},{"line_number":89,"context_line":"            \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":90,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\","},{"line_number":91,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\""},{"line_number":92,"context_line":"        }"},{"line_number":93,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_1b685b85","line":90,"range":{"start_line":90,"start_character":12,"end_line":90,"end_character":54},"updated":"2018-03-20 16:49:16.000000000","message":"Either delete issued at or expires at here. That is superfluous (if you\u0027re deleting issued_at, just derive expires_at from the issued_at we have in the payload).","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]"},{"line_number":88,"context_line":"            ],"},{"line_number":89,"context_line":"            \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":90,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\","},{"line_number":91,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\""},{"line_number":92,"context_line":"        }"},{"line_number":93,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_36945644","line":90,"range":{"start_line":90,"start_character":12,"end_line":90,"end_character":54},"in_reply_to":"df7087c5_1b685b85","updated":"2018-03-20 17:36:40.000000000","message":"I\u0027ll remove issued_at since the purpose of these values is to allow a client to parse how long it has until expiry. With issued_at alone it can\u0027t do that, but in reality it only needs expiry so we can drop issued_at for the response.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"e9cccc5432b9312604c8f8c24b3f2f4d38ed6c4b","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                [\u0027password\u0027, \u0027option3\u0027, \u0027option4\u0027]"},{"line_number":88,"context_line":"            ],"},{"line_number":89,"context_line":"            \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","},{"line_number":90,"context_line":"            \"issued_at\": \"2015-11-06T14:32:17.893797Z\","},{"line_number":91,"context_line":"            \"expires_at\": \"2015-11-06T15:32:17.893769Z\""},{"line_number":92,"context_line":"        }"},{"line_number":93,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_6c63bfb2","line":90,"range":{"start_line":90,"start_character":12,"end_line":90,"end_character":54},"in_reply_to":"df7087c5_36945644","updated":"2018-03-21 15:50:47.000000000","message":"FWIW - the fernet specification has an issued at time built into the token itself when we get it back from the cryptography library.\n\nFor tokens, we pull apart the timestamp and regenerate it so that we have a single source of truth for when a token was issued. Just incase you need that kind of information, it\u0027s available with fernet.\n\nJWT might treat it differently.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":96,"context_line":"successfully authenticated method and not a list of all of the user\u0027s auth"},{"line_number":97,"context_line":"rules."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"The receipt will not include scope data as it isn\u0027t relevant to it. A user will"},{"line_number":100,"context_line":"supply scope when using the receipt and trying to get a token, Keystone will"},{"line_number":101,"context_line":"not look at the receipt for scope. The only reason to potentially introduce"},{"line_number":102,"context_line":"scope to the receipt is if and when we introduce auth rules based on scope."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"The actual storage provider for the receipt should be configurable in the same"},{"line_number":105,"context_line":"fashion as token, and similar types (fernet, jwt). In the case of fernet the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_5b1c9312","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":75},"updated":"2018-03-20 16:49:16.000000000","message":"This is great to specify, the scope will need to be carried forward in the subsequent auth with the receipt.\n\nLets make sure receipt is the \"right\" name (if there is an industry standard to reference).","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"a9b8e850a7113805d142eb4793e9bb5ec540fd19","unresolved":false,"context_lines":[{"line_number":96,"context_line":"successfully authenticated method and not a list of all of the user\u0027s auth"},{"line_number":97,"context_line":"rules."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"The receipt will not include scope data as it isn\u0027t relevant to it. A user will"},{"line_number":100,"context_line":"supply scope when using the receipt and trying to get a token, Keystone will"},{"line_number":101,"context_line":"not look at the receipt for scope. The only reason to potentially introduce"},{"line_number":102,"context_line":"scope to the receipt is if and when we introduce auth rules based on scope."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"The actual storage provider for the receipt should be configurable in the same"},{"line_number":105,"context_line":"fashion as token, and similar types (fernet, jwt). In the case of fernet the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_633be9c7","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":75},"in_reply_to":"df7087c5_5b1c9312","updated":"2018-03-20 19:28:37.000000000","message":"So if I request a scoped token and pass my first auth attempt, what happens when I bring that receipt to the second auth attempt but try to specify a different scope? Does the scope from the first attempt just get thrown away?","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"6bfa647abc918dc13b8028307d4b0db31951b30f","unresolved":false,"context_lines":[{"line_number":96,"context_line":"successfully authenticated method and not a list of all of the user\u0027s auth"},{"line_number":97,"context_line":"rules."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"The receipt will not include scope data as it isn\u0027t relevant to it. A user will"},{"line_number":100,"context_line":"supply scope when using the receipt and trying to get a token, Keystone will"},{"line_number":101,"context_line":"not look at the receipt for scope. The only reason to potentially introduce"},{"line_number":102,"context_line":"scope to the receipt is if and when we introduce auth rules based on scope."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"The actual storage provider for the receipt should be configurable in the same"},{"line_number":105,"context_line":"fashion as token, and similar types (fernet, jwt). In the case of fernet the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_e3f2996f","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":75},"in_reply_to":"df7087c5_633be9c7","updated":"2018-03-20 19:41:10.000000000","message":"That is my understanding, I\u0027d be ok with that *or* encoding scope in the receipt. Either works as long as we clearly document/outline that.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"21b4e19ad4697c7464d4a169a67a33a6c2ca926d","unresolved":false,"context_lines":[{"line_number":96,"context_line":"successfully authenticated method and not a list of all of the user\u0027s auth"},{"line_number":97,"context_line":"rules."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"The receipt will not include scope data as it isn\u0027t relevant to it. A user will"},{"line_number":100,"context_line":"supply scope when using the receipt and trying to get a token, Keystone will"},{"line_number":101,"context_line":"not look at the receipt for scope. The only reason to potentially introduce"},{"line_number":102,"context_line":"scope to the receipt is if and when we introduce auth rules based on scope."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"The actual storage provider for the receipt should be configurable in the same"},{"line_number":105,"context_line":"fashion as token, and similar types (fernet, jwt). In the case of fernet the"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_6f78a7f7","line":102,"range":{"start_line":99,"start_character":0,"end_line":102,"end_character":75},"in_reply_to":"df7087c5_e3f2996f","updated":"2018-03-20 23:31:42.000000000","message":"I\u0027m leaning towards no scope, since the changing scope case you give isn\u0027t exactly a problem and may be a valid case (it doesn\u0027t break anything).\n\nMFA and scope only matters down the line when someone asks for scope based auth rules, and that\u0027s when we potentially need to include scope in the receipt, but for a different reason. And I believe this feature has been asked about and will crop up again.\n\nAlthough even then we\u0027d only need to include the scope in the response so it is clear that the required auth rules we send you are filtered by the scoped auth rules. The payload doesn\u0027t care again because the user supplies the scope, and keystone would then filter the required auth rules by the supplied scope, not the receipt scope.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":101,"context_line":"not look at the receipt for scope. The only reason to potentially introduce"},{"line_number":102,"context_line":"scope to the receipt is if and when we introduce auth rules based on scope."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"The actual storage provider for the receipt should be configurable in the same"},{"line_number":105,"context_line":"fashion as token, and similar types (fernet, jwt). In the case of fernet the"},{"line_number":106,"context_line":"key repository should ideally be able to be shared with the token provider, but"},{"line_number":107,"context_line":"configuration should be possible to split the repo. This minimises potential"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_bbd28f33","line":104,"range":{"start_line":104,"start_character":11,"end_line":104,"end_character":18},"updated":"2018-03-20 16:49:16.000000000","message":"remove \"storage\" it is not a storage provider, and is ephemeral.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":101,"context_line":"not look at the receipt for scope. The only reason to potentially introduce"},{"line_number":102,"context_line":"scope to the receipt is if and when we introduce auth rules based on scope."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"The actual storage provider for the receipt should be configurable in the same"},{"line_number":105,"context_line":"fashion as token, and similar types (fernet, jwt). In the case of fernet the"},{"line_number":106,"context_line":"key repository should ideally be able to be shared with the token provider, but"},{"line_number":107,"context_line":"configuration should be possible to split the repo. This minimises potential"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_569d4a55","line":104,"range":{"start_line":104,"start_character":11,"end_line":104,"end_character":18},"in_reply_to":"df7087c5_bbd28f33","updated":"2018-03-20 17:36:40.000000000","message":"will fix","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":114,"context_line":"The receipt data itself (before encryption) would likely be::"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    {"},{"line_number":117,"context_line":"        \"methods\": ["},{"line_number":118,"context_line":"            \"password\""},{"line_number":119,"context_line":"        ],"},{"line_number":120,"context_line":"        \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_3bcbdf53","line":117,"range":{"start_line":117,"start_character":9,"end_line":117,"end_character":16},"updated":"2018-03-20 16:49:16.000000000","message":"Clarify below \"methods\" are, in this case, verified methods that are successful.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":114,"context_line":"The receipt data itself (before encryption) would likely be::"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    {"},{"line_number":117,"context_line":"        \"methods\": ["},{"line_number":118,"context_line":"            \"password\""},{"line_number":119,"context_line":"        ],"},{"line_number":120,"context_line":"        \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\","}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_0a9ec262","line":117,"range":{"start_line":117,"start_character":9,"end_line":117,"end_character":16},"in_reply_to":"df7087c5_3bcbdf53","updated":"2018-03-20 17:36:40.000000000","message":"will add a note, but keep the payload key the same (to match tokens mostly).","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":148,"context_line":"This alternative also isn\u0027t a real challenge response."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"Security Impact"},{"line_number":151,"context_line":"---------------"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"A user who authenticates with one successful method now knows what auth rules"},{"line_number":154,"context_line":"can be used for a given user. This isn\u0027t particularly unsafe, as while they"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_1b4a9bab","line":151,"updated":"2018-03-20 16:49:16.000000000","message":"Please add a line to the effect that the receipt could be used to get multiple tokens (security concern) while it is valid, this is because we do not prevent replay attacks/store what receipts have been used. Long term we should work to solve this with a shared system that wont grow endlessly (not a SQL table).","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":148,"context_line":"This alternative also isn\u0027t a real challenge response."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"Security Impact"},{"line_number":151,"context_line":"---------------"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"A user who authenticates with one successful method now knows what auth rules"},{"line_number":154,"context_line":"can be used for a given user. This isn\u0027t particularly unsafe, as while they"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_164a72ab","line":151,"in_reply_to":"df7087c5_1b4a9bab","updated":"2018-03-20 17:36:40.000000000","message":"Will do, but at least the benefit of what this patch will encourage is MFA, so ideally the receipt would most of the time be for a password method, at which point the chance of it being reused successfully is no different than someone right now who keeps trying with password+totp at the same time. The second factor should do it\u0027s job the majority of the time.\n\nIt\u0027s a concern to note, but not one that should really have any much impact, although I agree we should find a way to \u0027revoke\u0027 receipts in future.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":156,"context_line":"that one successful auth method is enough to prove identity of the user, while"},{"line_number":157,"context_line":"not enough to satisfy authentication requirements."},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"If all methods fail, we still return an error, so auth rules are only exposed"},{"line_number":160,"context_line":"if at least one method was valid."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"Notifications Impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_5b9d7355","line":159,"range":{"start_line":159,"start_character":3,"end_line":159,"end_character":6},"updated":"2018-03-20 16:49:16.000000000","message":"\"any\" see top of file comment.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":157,"context_line":"not enough to satisfy authentication requirements."},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"If all methods fail, we still return an error, so auth rules are only exposed"},{"line_number":160,"context_line":"if at least one method was valid."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"Notifications Impact"},{"line_number":163,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_fbc48742","line":160,"range":{"start_line":160,"start_character":3,"end_line":160,"end_character":26},"updated":"2018-03-20 16:49:16.000000000","message":"all provided auth methods are","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":214,"context_line":"Assignee(s)"},{"line_number":215,"context_line":"-----------"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"Unknown as yet, but I\u0027m (adriant) willing to do it with guidance."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"Work Items"},{"line_number":220,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_db08a392","line":217,"range":{"start_line":217,"start_character":0,"end_line":217,"end_character":65},"updated":"2018-03-20 16:49:16.000000000","message":"(NIT) Make this look like other specs (the TBD) or your information.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":214,"context_line":"Assignee(s)"},{"line_number":215,"context_line":"-----------"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"Unknown as yet, but I\u0027m (adriant) willing to do it with guidance."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"Work Items"},{"line_number":220,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_aa86b612","line":217,"range":{"start_line":217,"start_character":0,"end_line":217,"end_character":65},"in_reply_to":"df7087c5_db08a392","updated":"2018-03-20 17:36:40.000000000","message":"will do","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"053de778dc445d12f180d3a0497e1aff1dd2c2d5","unresolved":false,"context_lines":[{"line_number":229,"context_line":"#. Work with the CLI and Dashboard teams to build support in for MFA using the"},{"line_number":230,"context_line":"   changes made to KeystoneAuth. (optional follow up)"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"A potential follow up is a series of safe APIs for non-admins to manage their"},{"line_number":233,"context_line":"own auth rules, but that work should be handled in its own spec."},{"line_number":234,"context_line":""},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_fb4ec7bf","line":233,"range":{"start_line":232,"start_character":0,"end_line":233,"end_character":64},"updated":"2018-03-20 16:49:16.000000000","message":"Remove this. It isn\u0027t relevant for this spec, can be included in the","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"23d28e6a8670a9f4ca7bb7f1c283be4b2853f1cf","unresolved":false,"context_lines":[{"line_number":229,"context_line":"#. Work with the CLI and Dashboard teams to build support in for MFA using the"},{"line_number":230,"context_line":"   changes made to KeystoneAuth. (optional follow up)"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"A potential follow up is a series of safe APIs for non-admins to manage their"},{"line_number":233,"context_line":"own auth rules, but that work should be handled in its own spec."},{"line_number":234,"context_line":""},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_ca89aa26","line":233,"range":{"start_line":232,"start_character":0,"end_line":233,"end_character":64},"in_reply_to":"df7087c5_fb4ec7bf","updated":"2018-03-20 17:36:40.000000000","message":"will do.","commit_id":"7df416856249e9deccedad00e96c597cccc74fc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"e9cccc5432b9312604c8f8c24b3f2f4d38ed6c4b","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Ideally any code we can share with the token providers we do, and move as much"},{"line_number":139,"context_line":"as makes sense into common utils. Much like tokens, we even handle key"},{"line_number":140,"context_line":"rotation in the same way. Accept receipts encrypted by the current and last key"},{"line_number":141,"context_line":"but issue new ones with the current key."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"The receipt data itself (before encryption) would likely be::"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_acc0f72b","line":141,"updated":"2018-03-21 15:50:47.000000000","message":"We need to clarify in our token rotation documentation that rotating encryption keys can impact the validity of a receipt.\n\nThis is applicable if a deployment is 1.) using MFA and 2.) rotating keys through their entire life-cycle in less than 15 minutes (so - ultra-secure deployments?).\n\nThat last bit seems like these two work against each other :)","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"9635c680042b5d52035fee26370a77fa648f5083","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Ideally any code we can share with the token providers we do, and move as much"},{"line_number":139,"context_line":"as makes sense into common utils. Much like tokens, we even handle key"},{"line_number":140,"context_line":"rotation in the same way. Accept receipts encrypted by the current and last key"},{"line_number":141,"context_line":"but issue new ones with the current key."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"The receipt data itself (before encryption) would likely be::"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_b5da77e6","line":141,"in_reply_to":"df7087c5_32cf62b1","updated":"2018-03-21 21:24:38.000000000","message":"I\u0027ll add a bit to the Documentation Impact.","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"a4e4745f11b51a9a1fc1871b817365d2092c0357","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Ideally any code we can share with the token providers we do, and move as much"},{"line_number":139,"context_line":"as makes sense into common utils. Much like tokens, we even handle key"},{"line_number":140,"context_line":"rotation in the same way. Accept receipts encrypted by the current and last key"},{"line_number":141,"context_line":"but issue new ones with the current key."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"The receipt data itself (before encryption) would likely be::"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_32cf62b1","line":141,"in_reply_to":"df7087c5_acc0f72b","updated":"2018-03-21 16:24:48.000000000","message":"I think we agreed on 5m not configurable and we\u0027ll move that needle as needed going forward.","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"2b0318ec4a9360c1f297327233e6ef6227e98825","unresolved":false,"context_lines":[{"line_number":138,"context_line":"Ideally any code we can share with the token providers we do, and move as much"},{"line_number":139,"context_line":"as makes sense into common utils. Much like tokens, we even handle key"},{"line_number":140,"context_line":"rotation in the same way. Accept receipts encrypted by the current and last key"},{"line_number":141,"context_line":"but issue new ones with the current key."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"The receipt data itself (before encryption) would likely be::"},{"line_number":144,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"bf659307_e8605f35","line":141,"in_reply_to":"df7087c5_b5da77e6","updated":"2018-03-26 07:52:46.000000000","message":"still think the time windows can be configurable. But we can revisit it in the future if it\u0027s really a requirement.","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"982abd4126358e0708aba26ac7e1a9f9ea425f82","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When auth is continued with a receipt a user must supply the receipt id in the"},{"line_number":166,"context_line":"``OPENSTACK-AUTH-RECEIPT`` header. When Keystone sees an auth attempt with"},{"line_number":167,"context_line":"that header it will use the set receipt provider to decrypt the payload (id),"},{"line_number":168,"context_line":"and will then treat the ``methods`` as defined in the receipt as having been"},{"line_number":169,"context_line":"already satisfied as part of auth, and auth continues with the new user"},{"line_number":170,"context_line":"supplied methods."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"If all given methods are valid, but all the total valid methods including those"},{"line_number":173,"context_line":"from the receipt still do not fulfill any of the auth rules, another receipt is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_389d1257","line":170,"range":{"start_line":168,"start_character":9,"end_line":170,"end_character":17},"updated":"2018-03-21 08:15:09.000000000","message":"what if the auth data in the \"methods\" has been changed? Should it be treat as having been already satisfied as part of auth?\n\nFor example, user A is configured to use [\u0027password\u0027, \u0027totp\u0027] MFA to auth. First he passed \"passsword\" auth and receive a receipt. Then he use this receipt to auth \u0027totp\u0027,\nbut if before he use the receipt to auth, he\u0027s password is changed. Then should his receipt request be success? \n\nI think we need add the receipt revoke mechanism as well. For the case mentioned above, once the user\u0027s password is changed, the related receipt should be invalided as well.","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b305736737438747fa9081f870cdc00ac1eea0be","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When auth is continued with a receipt a user must supply the receipt id in the"},{"line_number":166,"context_line":"``OPENSTACK-AUTH-RECEIPT`` header. When Keystone sees an auth attempt with"},{"line_number":167,"context_line":"that header it will use the set receipt provider to decrypt the payload (id),"},{"line_number":168,"context_line":"and will then treat the ``methods`` as defined in the receipt as having been"},{"line_number":169,"context_line":"already satisfied as part of auth, and auth continues with the new user"},{"line_number":170,"context_line":"supplied methods."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"If all given methods are valid, but all the total valid methods including those"},{"line_number":173,"context_line":"from the receipt still do not fulfill any of the auth rules, another receipt is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_479edf07","line":170,"range":{"start_line":168,"start_character":9,"end_line":170,"end_character":17},"in_reply_to":"df7087c5_389d1257","updated":"2018-03-21 11:11:41.000000000","message":"I\u0027ve just tested with github, and if I login with password, it takes me to the totp screen. I then in a different session change the password, and then enter the totp passcode in the original one. It still logged me in.\n\nWould be good to test the same for Google, but it looks like other people also aren\u0027t handling that situation because it is assumed the receipt/token thing lasts for a short enough period to be safe (5mins for us), and the 2fa should act as intended and ideally limit the chance of the damage anyway.\n\nThat said... we can do better ourselves and handle such a case.\n\nRevocations is the easiest solution in a way, but with receipts we can actually do most of the checking server side if we include some extra data in the receipt payload, and add some extra receipt validation logic to the auth plugins.\n\nE.g. the password auth plugin is used to validate the receipt for a prevalidated password and it confirms that the password hasn\u0027t been updated since the receipt issue datetime. For totp we\u0027d include in the receipt what the credential_id was we validated with, and have the revalidation check that credential still exists. etc. We build into the plugin the ability to add extra data to the receipt payload if it needs (like totp, but not password), and a validation method to confirm the receipt method is still valid.\n\nThe payload data then becomes:\n    {\n        \"methods\": [\n            \"totp\"\n        ],\n        \"method_data\": {\n            \"totp\": {\n                \"credential_id\": \"1e4f8bbb4180756e64423f19a4aceb6c\"\n            },\n        },\n        \"user_id\": \"423f19a4ac1e4f48bbb4180756e6eb6c\",\n        \"issued_at\": \"2015-11-06T14:32:17.893797Z\",\n    }\n\nThat still doesn\u0027t solve the receipt being used more than once problem, but it does mean we potentially don\u0027t need revocations should we decide to handle revalidating the methods, but it does mean we need to define revalidation logic for each method type, and the best place for that is in the plugin itself.\n\nI don\u0027t know if we NEED this, given that github (and likely others) don\u0027t handle that case, but ideally we should do better. It can always be added later, or a follow up task since it would be an entirely internal logic change.","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"e9cccc5432b9312604c8f8c24b3f2f4d38ed6c4b","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When auth is continued with a receipt a user must supply the receipt id in the"},{"line_number":166,"context_line":"``OPENSTACK-AUTH-RECEIPT`` header. When Keystone sees an auth attempt with"},{"line_number":167,"context_line":"that header it will use the set receipt provider to decrypt the payload (id),"},{"line_number":168,"context_line":"and will then treat the ``methods`` as defined in the receipt as having been"},{"line_number":169,"context_line":"already satisfied as part of auth, and auth continues with the new user"},{"line_number":170,"context_line":"supplied methods."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"If all given methods are valid, but all the total valid methods including those"},{"line_number":173,"context_line":"from the receipt still do not fulfill any of the auth rules, another receipt is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_acdf97d4","line":170,"range":{"start_line":168,"start_character":9,"end_line":170,"end_character":17},"in_reply_to":"df7087c5_479edf07","updated":"2018-03-21 15:50:47.000000000","message":"Checking if the methods provided in a receipt when authenticating with more factors seems pretty specific. Since revocation events are really only used when changing passwords, it just happens to be available for us to parse against if we get a receipt with \"password\" in the methods and we have an issued at date, which we can pull out of the receipt itself for more accuracy [0][1]. I don\u0027t think it would be too hard to see gaps in the revocation system we have today when comparing it to other authentication methods (for example, afaik we don\u0027t presist any revocation data about external auth methods)\n\n\nGiven this, I\u0027d certainly wouldn\u0027t be opposed to \u003c 5 minute receipt lifetimes.\n\n\n[0] https://github.com/fernet/spec/blob/master/Spec.md#timestamp\n[1] https://github.com/openstack/keystone/blob/c402b4d941076b050e26eb2fe0198cb97d751acb/keystone/token/token_formatters.py#L112-L136","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"a4e4745f11b51a9a1fc1871b817365d2092c0357","unresolved":false,"context_lines":[{"line_number":165,"context_line":"When auth is continued with a receipt a user must supply the receipt id in the"},{"line_number":166,"context_line":"``OPENSTACK-AUTH-RECEIPT`` header. When Keystone sees an auth attempt with"},{"line_number":167,"context_line":"that header it will use the set receipt provider to decrypt the payload (id),"},{"line_number":168,"context_line":"and will then treat the ``methods`` as defined in the receipt as having been"},{"line_number":169,"context_line":"already satisfied as part of auth, and auth continues with the new user"},{"line_number":170,"context_line":"supplied methods."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"If all given methods are valid, but all the total valid methods including those"},{"line_number":173,"context_line":"from the receipt still do not fulfill any of the auth rules, another receipt is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_d2cf067d","line":170,"range":{"start_line":168,"start_character":9,"end_line":170,"end_character":17},"in_reply_to":"df7087c5_acdf97d4","updated":"2018-03-21 16:24:48.000000000","message":"So, if someone passes TOTP in first and changes their password while the receipt is active, the new password will be required.\n\nIf someone auths with Password and changes it before TOTP auth\u0027d, it should still work. If you have both your TOTP and TOTP secrets exposed, a change of both should occur.\n\nI don\u0027t think we need to handle revocations for the receipt because we have multiple factors of auth that should be separate.\n\nThis all seems to be industry-standard practices. A ~5m (or less) receipt should be reasonable for ensuring small enough windows without making for an awful UX.\n\nIf we support (future) actual 1-time receipts, we can drop the expiration of the receipt (or make it very long).","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"e9cccc5432b9312604c8f8c24b3f2f4d38ed6c4b","unresolved":false,"context_lines":[{"line_number":177,"context_line":"and return a ``401`` right away."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"A mismatch between receipt user_id and user_id in any of the methods is a"},{"line_number":180,"context_line":"failure."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"A failure in any of the user supplied auth methods is a failure, and does not"},{"line_number":183,"context_line":"extend the receipt even if some new methods were valid, but should include"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_cc768bd9","line":180,"updated":"2018-03-21 15:50:47.000000000","message":"403 or 401?","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"a4e4745f11b51a9a1fc1871b817365d2092c0357","unresolved":false,"context_lines":[{"line_number":177,"context_line":"and return a ``401`` right away."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"A mismatch between receipt user_id and user_id in any of the methods is a"},{"line_number":180,"context_line":"failure."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"A failure in any of the user supplied auth methods is a failure, and does not"},{"line_number":183,"context_line":"extend the receipt even if some new methods were valid, but should include"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_d2dce675","line":180,"in_reply_to":"df7087c5_cc768bd9","updated":"2018-03-21 16:24:48.000000000","message":"401. This is all AuthN work, not AuthZ","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"9635c680042b5d52035fee26370a77fa648f5083","unresolved":false,"context_lines":[{"line_number":177,"context_line":"and return a ``401`` right away."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"A mismatch between receipt user_id and user_id in any of the methods is a"},{"line_number":180,"context_line":"failure."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"A failure in any of the user supplied auth methods is a failure, and does not"},{"line_number":183,"context_line":"extend the receipt even if some new methods were valid, but should include"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_35dd0714","line":180,"in_reply_to":"df7087c5_d2dce675","updated":"2018-03-21 21:24:38.000000000","message":"All of these failures should be 401 I think.","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"e9cccc5432b9312604c8f8c24b3f2f4d38ed6c4b","unresolved":false,"context_lines":[{"line_number":223,"context_line":"completed by someone else. Given though that this receipt exists in the context"},{"line_number":224,"context_line":"of MFA, the second factor should limit this concern quite heavily. In reality"},{"line_number":225,"context_line":"this isn\u0027t a problem unique to the auth receipt, but an eventual action we"},{"line_number":226,"context_line":"should take is to do some form of receipt revocations when turned into a token."},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"Notifications Impact"},{"line_number":229,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":9,"id":"df7087c5_573768b1","line":226,"updated":"2018-03-21 15:50:47.000000000","message":"Yeah - ideally it would be nice to not have to store receipts...","commit_id":"c35cda95e684c3eac5edd4bfda84b594eaca303f"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"f6ba766bf9137c020d753fd1ac7bf534c14df8aa","unresolved":false,"context_lines":[{"line_number":51,"context_line":"can infer that they are who they say they are, and then return to them a"},{"line_number":52,"context_line":"receipt that contains information about missing auth rules."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"If a user attempts auth with multiple methods and one fails, we do not return a"},{"line_number":55,"context_line":"receipt, but we do include json error data as to what methods failed, and which"},{"line_number":56,"context_line":"did not."},{"line_number":57,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_d71eee5d","line":54,"range":{"start_line":54,"start_character":46,"end_line":54,"end_character":59},"updated":"2018-03-22 21:55:43.000000000","message":"*but at least one succeeds","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":51,"context_line":"can infer that they are who they say they are, and then return to them a"},{"line_number":52,"context_line":"receipt that contains information about missing auth rules."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"If a user attempts auth with multiple methods and one fails, we do not return a"},{"line_number":55,"context_line":"receipt, but we do include json error data as to what methods failed, and which"},{"line_number":56,"context_line":"did not."},{"line_number":57,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_5aff63aa","line":54,"range":{"start_line":54,"start_character":46,"end_line":54,"end_character":59},"in_reply_to":"df7087c5_d71eee5d","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":66,"context_line":"Receipt Response"},{"line_number":67,"context_line":"----------------"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"The return code for this would be ``401`` as the user is still unauthorised,"},{"line_number":70,"context_line":"with the response header containing the receipt id, and the body containing"},{"line_number":71,"context_line":"information about the receipt which they need to continue the auth process."},{"line_number":72,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_86284be2","line":69,"range":{"start_line":69,"start_character":63,"end_line":69,"end_character":75},"updated":"2018-03-22 19:18:07.000000000","message":"(NIT) use \"unauthorized\" spelling for consistency.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"Receipt Response"},{"line_number":67,"context_line":"----------------"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"The return code for this would be ``401`` as the user is still unauthorised,"},{"line_number":70,"context_line":"with the response header containing the receipt id, and the body containing"},{"line_number":71,"context_line":"information about the receipt which they need to continue the auth process."},{"line_number":72,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_7afca7b4","line":69,"range":{"start_line":69,"start_character":63,"end_line":69,"end_character":75},"in_reply_to":"df7087c5_86284be2","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":183,"context_line":"extend the receipt even if some new methods were valid, but should include"},{"line_number":184,"context_line":"failure details."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"If a user supplies a method that was already satisfied in the receipt, the user"},{"line_number":187,"context_line":"supplied method takes precedence, even if it fails."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"All of these failures return a ``401``."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_e684a7d5","line":187,"range":{"start_line":186,"start_character":0,"end_line":187,"end_character":51},"updated":"2018-03-22 19:18:07.000000000","message":"Good, glad this was explicitly specified.\nThanks!","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":216,"context_line":"that one successful auth method is enough to prove identity of the user, while"},{"line_number":217,"context_line":"not enough to satisfy authentication requirements."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"If all methods fail, we still return an error, so auth rules are only exposed"},{"line_number":220,"context_line":"if at least one method was valid."},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"An additional security concern is that a given receipt could be used to make"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_e6d267d1","line":219,"range":{"start_line":219,"start_character":47,"end_line":219,"end_character":49},"updated":"2018-03-22 19:18:07.000000000","message":"and","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":216,"context_line":"that one successful auth method is enough to prove identity of the user, while"},{"line_number":217,"context_line":"not enough to satisfy authentication requirements."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"If all methods fail, we still return an error, so auth rules are only exposed"},{"line_number":220,"context_line":"if at least one method was valid."},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"An additional security concern is that a given receipt could be used to make"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_26cdbf30","line":219,"range":{"start_line":219,"start_character":3,"end_line":219,"end_character":14},"updated":"2018-03-22 19:18:07.000000000","message":"any method","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":216,"context_line":"that one successful auth method is enough to prove identity of the user, while"},{"line_number":217,"context_line":"not enough to satisfy authentication requirements."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"If all methods fail, we still return an error, so auth rules are only exposed"},{"line_number":220,"context_line":"if at least one method was valid."},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"An additional security concern is that a given receipt could be used to make"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_fa299736","line":219,"range":{"start_line":219,"start_character":47,"end_line":219,"end_character":49},"in_reply_to":"df7087c5_e6d267d1","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":230,"context_line":"Notifications Impact"},{"line_number":231,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"This is unknown at present, and still needs to be decided."},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"Notifications should ideally match tokens, because if we do care when someone"},{"line_number":236,"context_line":"authenticates, we may care if someone manages to successfully authenticate in"},{"line_number":237,"context_line":"part."},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Other End User Impact"},{"line_number":240,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_46fa3343","line":237,"range":{"start_line":233,"start_character":0,"end_line":237,"end_character":5},"updated":"2018-03-22 19:18:07.000000000","message":"Do not leave this up for question, replace this with something like:\n\n    Notifications will continue to be issued for successful and fail authentication as today. Issuance of a receipt will not issue a notification.\n\n    We may add receipt notifications in the future.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":230,"context_line":"Notifications Impact"},{"line_number":231,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"This is unknown at present, and still needs to be decided."},{"line_number":234,"context_line":""},{"line_number":235,"context_line":"Notifications should ideally match tokens, because if we do care when someone"},{"line_number":236,"context_line":"authenticates, we may care if someone manages to successfully authenticate in"},{"line_number":237,"context_line":"part."},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Other End User Impact"},{"line_number":240,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_ba1f9f06","line":237,"range":{"start_line":233,"start_character":0,"end_line":237,"end_character":5},"in_reply_to":"df7087c5_46fa3343","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":239,"context_line":"Other End User Impact"},{"line_number":240,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"Currently the auth rules are not supported anywhere other than the Keystone"},{"line_number":243,"context_line":"API itself. In a large part this is because there is no way to programmatically"},{"line_number":244,"context_line":"figure out missing auth rules after a failure."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"This change would alter the API response in that Keystone would now return"},{"line_number":247,"context_line":"a receipt rather than an error, but since no one is using this feature yet for"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_06967bf1","line":244,"range":{"start_line":242,"start_character":0,"end_line":244,"end_character":46},"updated":"2018-03-22 19:18:07.000000000","message":"This is superfluous, remove if we have another patchset.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":239,"context_line":"Other End User Impact"},{"line_number":240,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"Currently the auth rules are not supported anywhere other than the Keystone"},{"line_number":243,"context_line":"API itself. In a large part this is because there is no way to programmatically"},{"line_number":244,"context_line":"figure out missing auth rules after a failure."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"This change would alter the API response in that Keystone would now return"},{"line_number":247,"context_line":"a receipt rather than an error, but since no one is using this feature yet for"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_5a18c31c","line":244,"range":{"start_line":242,"start_character":0,"end_line":244,"end_character":46},"in_reply_to":"df7087c5_06967bf1","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":243,"context_line":"API itself. In a large part this is because there is no way to programmatically"},{"line_number":244,"context_line":"figure out missing auth rules after a failure."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"This change would alter the API response in that Keystone would now return"},{"line_number":247,"context_line":"a receipt rather than an error, but since no one is using this feature yet for"},{"line_number":248,"context_line":"good reasons it\u0027s a safe change."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"It is important to reiterate that this change does not affect anyone only doing"},{"line_number":251,"context_line":"auth with no auth rules set. The default auth use case does not change, only"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_e6a02745","line":248,"range":{"start_line":246,"start_character":0,"end_line":248,"end_character":32},"updated":"2018-03-22 19:18:07.000000000","message":"This is not true based upon the rest of the spec. The 401 is still returned, but with actionable data.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":243,"context_line":"API itself. In a large part this is because there is no way to programmatically"},{"line_number":244,"context_line":"figure out missing auth rules after a failure."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"This change would alter the API response in that Keystone would now return"},{"line_number":247,"context_line":"a receipt rather than an error, but since no one is using this feature yet for"},{"line_number":248,"context_line":"good reasons it\u0027s a safe change."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"It is important to reiterate that this change does not affect anyone only doing"},{"line_number":251,"context_line":"auth with no auth rules set. The default auth use case does not change, only"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_7a1587e4","line":248,"range":{"start_line":246,"start_character":0,"end_line":248,"end_character":32},"in_reply_to":"df7087c5_e6a02745","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":247,"context_line":"a receipt rather than an error, but since no one is using this feature yet for"},{"line_number":248,"context_line":"good reasons it\u0027s a safe change."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"It is important to reiterate that this change does not affect anyone only doing"},{"line_number":251,"context_line":"auth with no auth rules set. The default auth use case does not change, only"},{"line_number":252,"context_line":"the MFA use case which is not yet fully implemented or used anyway."},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"This change would require follow up in KeystoneAuth and other libraries before"},{"line_number":255,"context_line":"anyone will be able to effectively consume the feature, but should not throw"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_a686afb8","line":252,"range":{"start_line":250,"start_character":0,"end_line":252,"end_character":67},"updated":"2018-03-22 19:18:07.000000000","message":"Also superfluous, reiterating isn\u0027t important if we covered it above. If it is not covered, remove the \"reiterate\" pare and replace the start with:\n\n\"It is important to note\"","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":247,"context_line":"a receipt rather than an error, but since no one is using this feature yet for"},{"line_number":248,"context_line":"good reasons it\u0027s a safe change."},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"It is important to reiterate that this change does not affect anyone only doing"},{"line_number":251,"context_line":"auth with no auth rules set. The default auth use case does not change, only"},{"line_number":252,"context_line":"the MFA use case which is not yet fully implemented or used anyway."},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"This change would require follow up in KeystoneAuth and other libraries before"},{"line_number":255,"context_line":"anyone will be able to effectively consume the feature, but should not throw"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_dad93356","line":252,"range":{"start_line":250,"start_character":0,"end_line":252,"end_character":67},"in_reply_to":"df7087c5_a686afb8","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":251,"context_line":"auth with no auth rules set. The default auth use case does not change, only"},{"line_number":252,"context_line":"the MFA use case which is not yet fully implemented or used anyway."},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"This change would require follow up in KeystoneAuth and other libraries before"},{"line_number":255,"context_line":"anyone will be able to effectively consume the feature, but should not throw"},{"line_number":256,"context_line":"any additional errors."},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"Performance Impact"},{"line_number":259,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_86b28b93","line":256,"range":{"start_line":254,"start_character":0,"end_line":256,"end_character":22},"updated":"2018-03-22 19:18:07.000000000","message":"This is not a user impact.\n\nA user impact would be more along the lines of:\n\nThe user may now process the returned data and utilize the receipt to authenticate in multiple steps.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":251,"context_line":"auth with no auth rules set. The default auth use case does not change, only"},{"line_number":252,"context_line":"the MFA use case which is not yet fully implemented or used anyway."},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"This change would require follow up in KeystoneAuth and other libraries before"},{"line_number":255,"context_line":"anyone will be able to effectively consume the feature, but should not throw"},{"line_number":256,"context_line":"any additional errors."},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"Performance Impact"},{"line_number":259,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_bae47f0e","line":256,"range":{"start_line":254,"start_character":0,"end_line":256,"end_character":22},"in_reply_to":"df7087c5_86b28b93","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":258,"context_line":"Performance Impact"},{"line_number":259,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"A tiny amount of extra load due to encryption during partial auth processes,"},{"line_number":262,"context_line":"but unlikely to be in any higher volumes that current auth processes."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"Other Deployer Impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_c642c368","line":261,"range":{"start_line":261,"start_character":0,"end_line":261,"end_character":22},"updated":"2018-03-22 19:18:07.000000000","message":"Without knowledge of real impact, replace with:\n\n\"It is expected load and auth-processing-time will increase a small amount due added encryption and decryption of the receipt.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"b86213303f5b507ff47ec26a30be06ba3539fe6e","unresolved":false,"context_lines":[{"line_number":258,"context_line":"Performance Impact"},{"line_number":259,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"A tiny amount of extra load due to encryption during partial auth processes,"},{"line_number":262,"context_line":"but unlikely to be in any higher volumes that current auth processes."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"Other Deployer Impact"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_1abd6bd7","line":261,"range":{"start_line":261,"start_character":0,"end_line":261,"end_character":22},"in_reply_to":"df7087c5_c642c368","updated":"2018-03-22 22:59:11.000000000","message":"Done","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"4b9cda9d380f22c49856054f5ae0de003b978858","unresolved":false,"context_lines":[{"line_number":258,"context_line":"Performance Impact"},{"line_number":259,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"A tiny amount of extra load due to encryption during partial auth processes,"},{"line_number":262,"context_line":"but unlikely to be in any higher volumes that current auth processes."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"Other Deployer Impact"},{"line_number":265,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df7087c5_a6af8f28","line":262,"range":{"start_line":261,"start_character":75,"end_line":262,"end_character":69},"updated":"2018-03-22 19:18:07.000000000","message":"Remove this line.","commit_id":"6d5c668a6a3e1624956cb113dc3e94975ece3414"}],"specs/keystone/rocky/partial-auth-token.rst":[{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"f6c95e0dda62410227ae8be409b0008b36a184a9","unresolved":false,"context_lines":[{"line_number":47,"context_line":"This new token would allow no API interaction, but it would be proof that"},{"line_number":48,"context_line":"certain auth methods have been completed. The return code for this would be"},{"line_number":49,"context_line":"``202`` rather than the standard ``201`` so it is clear that this isn\u0027t a"},{"line_number":50,"context_line":"normal token."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"In addition this response would be explicitly setup to only occur when a user"},{"line_number":53,"context_line":"with auth rules successfully auths with one of the methods in any of their auth"}],"source_content_type":"text/x-rst","patch_set":4,"id":"df7087c5_3e769140","line":50,"updated":"2018-03-19 15:34:41.000000000","message":"I\u0027m a little hesitant about abusing 202 for this. The API-SIG\u0027s guidelines specify this is for an asynchronous action: https://specs.openstack.org/openstack/api-wg/guidelines/http.html#xx-success-codes\n\nThis isn\u0027t exactly asynchronous, since it\u0027s not like I can do a GET at some resource later in time and expect a different result.\n\nI don\u0027t have a better suggestion though. I do think returning something other than a 201 is a good idea.","commit_id":"009511b840549bb5334dd9b8ed76685cd1eeec61"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"d1a87c7d152808cfb54cb0bb619699581600979c","unresolved":false,"context_lines":[{"line_number":47,"context_line":"This new token would allow no API interaction, but it would be proof that"},{"line_number":48,"context_line":"certain auth methods have been completed. The return code for this would be"},{"line_number":49,"context_line":"``202`` rather than the standard ``201`` so it is clear that this isn\u0027t a"},{"line_number":50,"context_line":"normal token."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"In addition this response would be explicitly setup to only occur when a user"},{"line_number":53,"context_line":"with auth rules successfully auths with one of the methods in any of their auth"}],"source_content_type":"text/x-rst","patch_set":4,"id":"df7087c5_9458d9fa","line":50,"in_reply_to":"df7087c5_3e769140","updated":"2018-03-19 19:18:09.000000000","message":"I\u0027m hesitant as well, but 201 is a no, and 202 is potentially vague enough:\nhttps://tools.ietf.org/html/rfc7231#section-6.3.3\n\nWe can approach the API-SIG and explain the situation. The RFC for 204 doesn\u0027t explicitly say it is for async... so we could potentially use it.\n\nAn alternative is to still use 401, but actually return something other than an error. Looking at the RFC for 401, that seems to fit (and the sub sections 4.1 and 4.2):\nhttps://tools.ietf.org/html/rfc7235#section-3.1","commit_id":"009511b840549bb5334dd9b8ed76685cd1eeec61"},{"author":{"_account_id":8482,"name":"Colleen Murphy","email":"colleen@gazlene.net","username":"krinkle"},"change_message_id":"f6c95e0dda62410227ae8be409b0008b36a184a9","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"It is important to reiterate that this change does not affect anyone only doing"},{"line_number":138,"context_line":"auth with no auth rules set. The default auth use case does not change, only"},{"line_number":139,"context_line":"the MFA use case which is not yet fully implemented or used anyway."},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"This change would require follow up in KeystoneAuth and other libraries to then"},{"line_number":142,"context_line":"lead into support for MFA in the OpenStackClient and Horizon."}],"source_content_type":"text/x-rst","patch_set":4,"id":"df7087c5_1e0aad89","line":139,"updated":"2018-03-19 15:34:41.000000000","message":"Is there any possibility that someone is using MFA as-is, with some ugly hacks to get it to work? I think breaking that person is Morgan\u0027s concern.","commit_id":"009511b840549bb5334dd9b8ed76685cd1eeec61"},{"author":{"_account_id":10420,"name":"Adrian Turjak","email":"devs+openstack@uncaught-exceptions.com","username":"adriant"},"change_message_id":"d1a87c7d152808cfb54cb0bb619699581600979c","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"It is important to reiterate that this change does not affect anyone only doing"},{"line_number":138,"context_line":"auth with no auth rules set. The default auth use case does not change, only"},{"line_number":139,"context_line":"the MFA use case which is not yet fully implemented or used anyway."},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"This change would require follow up in KeystoneAuth and other libraries to then"},{"line_number":142,"context_line":"lead into support for MFA in the OpenStackClient and Horizon."}],"source_content_type":"text/x-rst","patch_set":4,"id":"df7087c5_7468a520","line":139,"in_reply_to":"df7087c5_1e0aad89","updated":"2018-03-19 19:18:09.000000000","message":"From what I can gather, it is an undocumented change. I can\u0027t see a doc about it in core Keystone docs, and I don\u0027t remember the original review adding any (will check). It isn\u0027t even in the API ref that I can see.\n\nI know of one place that is using multiple auth methods but without the auth rules:\nhttp://bogott.net/unspecified/?p\u003d2344\n\nAlthough, without the auth rules you could bypass the totp part easily with direct api calls. The MFA solution our cloud is using was inspired by Bogott\u0027s work, but we outright just made our own single auth method solution.\n\nThe keystoneclient doesn\u0027t support adding auth rules, so in turn the CLI doesn\u0027t.\n\nThe only way to use it... is directly talking to the API as far as I\u0027m aware. So, yes technically someone could be using \nit, but my money is on not. You\u0027d have to first even be aware it existed, which I doubt many people are. We can always ask the mailing lists, and make it clear we\u0027d like to redo this properly this time around before anyone does actually use it.\n\nI was one of the main people pushing for MFA at the time it was added and was meant to take over the work of actually adding to to keystoneclient/keystoneauth, etc, but didn\u0027t because I got swamped with work and the lack of a partial token kind of left me without a good way to do it.","commit_id":"009511b840549bb5334dd9b8ed76685cd1eeec61"}]}
