)]}'
{"specs/keystone/newton/shadow-mapping.rst":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":19,"context_line":"- How do federated users receive role assignments?"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"- Federation or not, how do deployers create \"personal projects\" for new users?"},{"line_number":22,"context_line":"  How are new users assigned default projects?"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Today, deployers have to answer these questions by implementing external"},{"line_number":25,"context_line":"orchestration tools which either preemptively populate keystone with"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_42b680f9","line":22,"updated":"2016-06-01 19:05:10.000000000","message":"How do deployers create \"personal projects\" for new users in an automated fashion?","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":19,"context_line":"- How do federated users receive role assignments?"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"- Federation or not, how do deployers create \"personal projects\" for new users?"},{"line_number":22,"context_line":"  How are new users assigned default projects?"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Today, deployers have to answer these questions by implementing external"},{"line_number":25,"context_line":"orchestration tools which either preemptively populate keystone with"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_08a777bd","line":22,"in_reply_to":"9abb7d3a_42b680f9","updated":"2016-06-01 19:41:10.000000000","message":"I think that\u0027s an amendment that applies to all of these questions, so I\u0027ll include it in the leading sentence.","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":39,"context_line":"A shadow user is created only after a successful authentication attempt."},{"line_number":40,"context_line":"Therefore, a federated user would have to attempt to authenticate before an"},{"line_number":41,"context_line":"administrator could assign roles directly to their shadowed identity, resulting"},{"line_number":42,"context_line":"in a strange user experience. Granted, we do have the capability to manage"},{"line_number":43,"context_line":"authorization on user groups ahead of time, user groups are simply not a"},{"line_number":44,"context_line":"flexible enough solution to cover everyone\u0027s use cases. For example, how do we"},{"line_number":45,"context_line":"\"map\" new user into a personal project (a user-specific tenancy), assign the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_a27f6c13","line":42,"updated":"2016-06-01 19:05:10.000000000","message":"++","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":16465,"name":"Kristi Nikolla","email":"knikolla@bu.edu","username":"knikolla"},"change_message_id":"28b6151997aa3853467b41cd6e3c467c24c12003","unresolved":false,"context_lines":[{"line_number":172,"context_line":"  the respective projects."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":175,"context_line":"  remote assertions. If any of those projects are roles do not exist, they must"},{"line_number":176,"context_line":"  be created by Keystone automatically."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_023758ff","line":175,"range":{"start_line":175,"start_character":46,"end_line":175,"end_character":49},"updated":"2016-06-01 19:02:55.000000000","message":"nit: s/are/or","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":172,"context_line":"  the respective projects."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":175,"context_line":"  remote assertions. If any of those projects are roles do not exist, they must"},{"line_number":176,"context_line":"  be created by Keystone automatically."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_48b21fe6","line":175,"in_reply_to":"9abb7d3a_023758ff","updated":"2016-06-01 19:41:10.000000000","message":"Done","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":173,"context_line":""},{"line_number":174,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":175,"context_line":"  remote assertions. If any of those projects are roles do not exist, they must"},{"line_number":176,"context_line":"  be created by Keystone automatically."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":179,"context_line":"  first project that appears in the list."}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_22341cfa","line":176,"updated":"2016-06-01 19:05:10.000000000","message":"Does it make sense to be able to assign partial uuids in addition to values from the remote assertion? \n\n    \"name\": \"{0}-uuid.uuid4().hex[:6]\",\n\nWhere the result would yield something like: \n\n    \"name\": \"lbragstad-797551\"\n\nDo we need that kind of flexibility for any reason?","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":173,"context_line":""},{"line_number":174,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":175,"context_line":"  remote assertions. If any of those projects are roles do not exist, they must"},{"line_number":176,"context_line":"  be created by Keystone automatically."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":179,"context_line":"  first project that appears in the list."}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_08e3f7d9","line":176,"in_reply_to":"9abb7d3a_22341cfa","updated":"2016-06-01 19:41:10.000000000","message":"Maybe (not sure about partial, but full UUIDs), but that sounds like another spec, unless there\u0027s a reason for it to be a fundamental part of this one.","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":16465,"name":"Kristi Nikolla","email":"knikolla@bu.edu","username":"knikolla"},"change_message_id":"28b6151997aa3853467b41cd6e3c467c24c12003","unresolved":false,"context_lines":[{"line_number":179,"context_line":"  first project that appears in the list."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":182,"context_line":"\"Joe\". According to the mapping, if Joe is a neither a guest nor contractor, he"},{"line_number":183,"context_line":"would:"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"1. Receive a shadowed user identity, with a username of \"Joe\", in the domain"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_0d7ae987","line":182,"range":{"start_line":182,"start_character":43,"end_line":182,"end_character":44},"updated":"2016-06-01 19:02:55.000000000","message":"nit: /a/\u0027\u0027/","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":179,"context_line":"  first project that appears in the list."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":182,"context_line":"\"Joe\". According to the mapping, if Joe is a neither a guest nor contractor, he"},{"line_number":183,"context_line":"would:"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"1. Receive a shadowed user identity, with a username of \"Joe\", in the domain"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_a842abab","line":182,"in_reply_to":"9abb7d3a_0d7ae987","updated":"2016-06-01 19:41:10.000000000","message":"Done","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":16465,"name":"Kristi Nikolla","email":"knikolla@bu.edu","username":"knikolla"},"change_message_id":"28b6151997aa3853467b41cd6e3c467c24c12003","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"2. Receive a project-scoped \"admin\" role on a new project (created"},{"line_number":189,"context_line":"   automatically) named \"Development project for Joe\" in the \"ab4e2e\" domain."},{"line_number":190,"context_line":"   would be created automatically."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"3. Joe\u0027s ``default_project_id`` would be set to the ID of the \"Development"},{"line_number":193,"context_line":"   project for Joe\"."}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_2dd36d61","line":190,"range":{"start_line":190,"start_character":3,"end_line":190,"end_character":34},"updated":"2016-06-01 19:02:55.000000000","message":"This was included in the parenthesis one sentence earlier.","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"2. Receive a project-scoped \"admin\" role on a new project (created"},{"line_number":189,"context_line":"   automatically) named \"Development project for Joe\" in the \"ab4e2e\" domain."},{"line_number":190,"context_line":"   would be created automatically."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"3. Joe\u0027s ``default_project_id`` would be set to the ID of the \"Development"},{"line_number":193,"context_line":"   project for Joe\"."}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_c843afad","line":190,"in_reply_to":"9abb7d3a_2dd36d61","updated":"2016-06-01 19:41:10.000000000","message":"Ha, done.","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":196,"context_line":"   three different roles."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"5. Receive a project-scoped token (instead of an unscoped token, as federated"},{"line_number":199,"context_line":"   users receive today), scoped to the user\u0027s default project."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"Finally, it\u0027s worth mentioning that if the mapping were to change between"},{"line_number":202,"context_line":"federated authentications with keystone, the result of the new mapping would simply be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_8dcc198a","line":199,"updated":"2016-06-01 19:05:10.000000000","message":"This last piece reflects the auth behavior of local keystone users. \n\nIf you don\u0027t explicitly set a scope in the authentication request, but you have a default project id and you have a role assignment on that default project - keystone will automatically give you a project scoped token scoped to your default project.\n\nhttps://github.com/openstack/keystone-specs/blob/master/api/v3/identity-api-v3.rst#unscoped","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":196,"context_line":"   three different roles."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"5. Receive a project-scoped token (instead of an unscoped token, as federated"},{"line_number":199,"context_line":"   users receive today), scoped to the user\u0027s default project."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"Finally, it\u0027s worth mentioning that if the mapping were to change between"},{"line_number":202,"context_line":"federated authentications with keystone, the result of the new mapping would simply be"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_885c074c","line":199,"in_reply_to":"9abb7d3a_8dcc198a","updated":"2016-06-01 19:41:10.000000000","message":"Yes - but I\u0027m not 100% sure what sort of change you\u0027re looking for here, if any. Federated users don\u0027t have an opportunity to specify a scope today, until they\u0027ve already received a token from keystone.","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":203,"context_line":"applied without any additional side effects. Any reduction in authorization"},{"line_number":204,"context_line":"implied by a change in mapping would need to be handled out of band, as Keystone"},{"line_number":205,"context_line":"would have no way of tracking what authorization was granted as a result of a"},{"line_number":206,"context_line":"mapping versus any other means. However, normal token revocation behaviors"},{"line_number":207,"context_line":"would still to the role assignments created by a mapping (so you could still"},{"line_number":208,"context_line":"change a mapping, delete a project created by a mapping, and expect tokens to"},{"line_number":209,"context_line":"be revoked for that project)."}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_2db9adcc","line":206,"updated":"2016-06-01 19:05:10.000000000","message":"This would involve some crazy mapping engine logic in order for it to be smart enough to handle these cases.","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":203,"context_line":"applied without any additional side effects. Any reduction in authorization"},{"line_number":204,"context_line":"implied by a change in mapping would need to be handled out of band, as Keystone"},{"line_number":205,"context_line":"would have no way of tracking what authorization was granted as a result of a"},{"line_number":206,"context_line":"mapping versus any other means. However, normal token revocation behaviors"},{"line_number":207,"context_line":"would still to the role assignments created by a mapping (so you could still"},{"line_number":208,"context_line":"change a mapping, delete a project created by a mapping, and expect tokens to"},{"line_number":209,"context_line":"be revoked for that project)."}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_081e576f","line":206,"in_reply_to":"9abb7d3a_2db9adcc","updated":"2016-06-01 19:41:10.000000000","message":"+1","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":16465,"name":"Kristi Nikolla","email":"knikolla@bu.edu","username":"knikolla"},"change_message_id":"28b6151997aa3853467b41cd6e3c467c24c12003","unresolved":false,"context_lines":[{"line_number":204,"context_line":"implied by a change in mapping would need to be handled out of band, as Keystone"},{"line_number":205,"context_line":"would have no way of tracking what authorization was granted as a result of a"},{"line_number":206,"context_line":"mapping versus any other means. However, normal token revocation behaviors"},{"line_number":207,"context_line":"would still to the role assignments created by a mapping (so you could still"},{"line_number":208,"context_line":"change a mapping, delete a project created by a mapping, and expect tokens to"},{"line_number":209,"context_line":"be revoked for that project)."},{"line_number":210,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_edc7a561","line":207,"range":{"start_line":207,"start_character":11,"end_line":207,"end_character":12},"updated":"2016-06-01 19:02:55.000000000","message":"nit: apply*","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":204,"context_line":"implied by a change in mapping would need to be handled out of band, as Keystone"},{"line_number":205,"context_line":"would have no way of tracking what authorization was granted as a result of a"},{"line_number":206,"context_line":"mapping versus any other means. However, normal token revocation behaviors"},{"line_number":207,"context_line":"would still to the role assignments created by a mapping (so you could still"},{"line_number":208,"context_line":"change a mapping, delete a project created by a mapping, and expect tokens to"},{"line_number":209,"context_line":"be revoked for that project)."},{"line_number":210,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_4db231e6","line":207,"updated":"2016-06-01 19:05:10.000000000","message":"would still apply* ?","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"fb56970d60b70c1d64c6e8a12bed327d2491c0ef","unresolved":false,"context_lines":[{"line_number":204,"context_line":"implied by a change in mapping would need to be handled out of band, as Keystone"},{"line_number":205,"context_line":"would have no way of tracking what authorization was granted as a result of a"},{"line_number":206,"context_line":"mapping versus any other means. However, normal token revocation behaviors"},{"line_number":207,"context_line":"would still to the role assignments created by a mapping (so you could still"},{"line_number":208,"context_line":"change a mapping, delete a project created by a mapping, and expect tokens to"},{"line_number":209,"context_line":"be revoked for that project)."},{"line_number":210,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_dc8d3032","line":207,"in_reply_to":"9abb7d3a_4db231e6","updated":"2016-06-01 19:41:10.000000000","message":"Done","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3cf4d63494b7df5329402acdbe0024e7b0c91687","unresolved":false,"context_lines":[{"line_number":259,"context_line":""},{"line_number":260,"context_line":"First time users will have a much smoother experience going through the"},{"line_number":261,"context_line":"federated authenticating flow, without requiring significant, external effort"},{"line_number":262,"context_line":"on the part of operators."},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"Performance Impact"},{"line_number":265,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9abb7d3a_8d24190d","line":262,"updated":"2016-06-01 19:05:10.000000000","message":"++","commit_id":"1aafdb4f6a5c97dc88f83cc40fcabe9f16a2a918"},{"author":{"_account_id":6460,"name":"Brad Topol","email":"btopol@us.ibm.com","username":"btopol"},"change_message_id":"341dfe34d9a9a455ac094dd96d31942afb81318d","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp shadow-mapping \u003chttps://blueprints.launchpad.net/keystone/+spec/shadow-mapping\u003e`_"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"At the Newton summit in Austin, several related questions about how deployers"},{"line_number":14,"context_line":"solve real world problems with automation kept appearing in loosely related"},{"line_number":15,"context_line":"conversations:"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_9ec30d89","line":13,"updated":"2016-06-07 15:10:08.000000000","message":"Great intro!","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"6bfb19cd3a8b1c6479f7abfadf4241d6abe1cf79","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp shadow-mapping \u003chttps://blueprints.launchpad.net/keystone/+spec/shadow-mapping\u003e`_"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"At the Newton summit in Austin, several related questions about how deployers"},{"line_number":14,"context_line":"solve real world problems with automation kept appearing in loosely related"},{"line_number":15,"context_line":"conversations:"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_5826ebba","line":13,"in_reply_to":"7aa08908_9ec30d89","updated":"2016-06-11 04:44:56.000000000","message":"++","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":15,"context_line":"conversations:"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"- How are federated users bootstrapped into the cloud with some amount of"},{"line_number":18,"context_line":"  useful authorization?"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"- How do federated users receive role assignments?"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_9f0af51f","line":18,"updated":"2016-07-05 17:24:45.000000000","message":"group membership?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":15,"context_line":"conversations:"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"- How are federated users bootstrapped into the cloud with some amount of"},{"line_number":18,"context_line":"  useful authorization?"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"- How do federated users receive role assignments?"},{"line_number":21,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_4a595d8d","line":18,"in_reply_to":"1aa78d24_9f0af51f","updated":"2016-10-03 15:39:13.000000000","message":"I think all of these questions are not assuming pre-setup of any kind. I believe the term bootstrapping here takes on an automated meaning within keystone. The group membership is something that would have to be done by and administrator, which could be done in an automated fashion outside keystone but it would be some amount of setup that must occur before a federated user hits keystone for the first time (see the statements made at line 25).","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":17,"context_line":"- How are federated users bootstrapped into the cloud with some amount of"},{"line_number":18,"context_line":"  useful authorization?"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"- How do federated users receive role assignments?"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"- Federation or not, how do deployers create \"personal projects\" for new users?"},{"line_number":23,"context_line":"  How are new users assigned default projects?"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_df147d45","line":20,"updated":"2016-07-05 17:24:45.000000000","message":"group membership?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":17,"context_line":"- How are federated users bootstrapped into the cloud with some amount of"},{"line_number":18,"context_line":"  useful authorization?"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"- How do federated users receive role assignments?"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"- Federation or not, how do deployers create \"personal projects\" for new users?"},{"line_number":23,"context_line":"  How are new users assigned default projects?"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_2acdf130","line":20,"in_reply_to":"1aa78d24_df147d45","updated":"2016-10-03 15:39:13.000000000","message":"Same comment as above.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":20,"context_line":"- How do federated users receive role assignments?"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"- Federation or not, how do deployers create \"personal projects\" for new users?"},{"line_number":23,"context_line":"  How are new users assigned default projects?"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Today, deployers have to answer these questions by implementing external"},{"line_number":26,"context_line":"orchestration tools which either preemptively populate keystone with"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_ff19797a","line":23,"updated":"2016-07-05 17:24:45.000000000","message":"group membership? This is possible with one group per user, for example.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":20,"context_line":"- How do federated users receive role assignments?"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"- Federation or not, how do deployers create \"personal projects\" for new users?"},{"line_number":23,"context_line":"  How are new users assigned default projects?"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Today, deployers have to answer these questions by implementing external"},{"line_number":26,"context_line":"orchestration tools which either preemptively populate keystone with"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_8ade05db","line":23,"in_reply_to":"1aa78d24_ff19797a","updated":"2016-10-03 15:39:13.000000000","message":"Same comment as above.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"74f51513934f32763b8b67281301e6e4df643004","unresolved":false,"context_lines":[{"line_number":44,"context_line":"authorization on user groups ahead of time, user groups are simply not a"},{"line_number":45,"context_line":"flexible enough solution to cover everyone\u0027s use cases. For example, how do we"},{"line_number":46,"context_line":"\"map\" new user into a personal project (a user-specific tenancy), assign the"},{"line_number":47,"context_line":"user a \"member\" role on that project, and make it the user\u0027s default project"},{"line_number":48,"context_line":"for subsequent authentication attempts?"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed Change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_ef3c0eca","line":47,"range":{"start_line":47,"start_character":69,"end_line":47,"end_character":76},"updated":"2016-06-08 04:13:49.000000000","message":"do we want to propagate the concept of a default project? I think no.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":44,"context_line":"authorization on user groups ahead of time, user groups are simply not a"},{"line_number":45,"context_line":"flexible enough solution to cover everyone\u0027s use cases. For example, how do we"},{"line_number":46,"context_line":"\"map\" new user into a personal project (a user-specific tenancy), assign the"},{"line_number":47,"context_line":"user a \"member\" role on that project, and make it the user\u0027s default project"},{"line_number":48,"context_line":"for subsequent authentication attempts?"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed Change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_657e4a6b","line":47,"in_reply_to":"1aa78d24_5c19bb87","updated":"2016-10-03 15:39:13.000000000","message":"We already do some interesting things with the default project and unscoped versus scoped requests (resulting in code to handle edge cases in keystone). IMO, I like the idea of doing away with the term default because it makes role assignments to projects and domains explicit. You either have a role assignment or you don\u0027t. Whether or not that\u0027s on a single project or multiple projects it doesn\u0027t really matter.\n\nThe only case I see for maintaining the default project ID is to be consistent with local user experience.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":44,"context_line":"authorization on user groups ahead of time, user groups are simply not a"},{"line_number":45,"context_line":"flexible enough solution to cover everyone\u0027s use cases. For example, how do we"},{"line_number":46,"context_line":"\"map\" new user into a personal project (a user-specific tenancy), assign the"},{"line_number":47,"context_line":"user a \"member\" role on that project, and make it the user\u0027s default project"},{"line_number":48,"context_line":"for subsequent authentication attempts?"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed Change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_5c19bb87","line":47,"range":{"start_line":47,"start_character":69,"end_line":47,"end_character":76},"in_reply_to":"7aa08908_ef3c0eca","updated":"2016-07-05 17:24:45.000000000","message":"I agree. But if you only have role assignment on a single project, that\u0027s essentially your default project.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"For example, if a project name is referenced in the mapping, it may need to be"},{"line_number":60,"context_line":"automatically created prior to assigning the user a \"member\" role on it (where"},{"line_number":61,"context_line":"the member role may or may not exist as well)."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"The following is an example of what the mapping engine supports today:"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_ffe33931","line":61,"range":{"start_line":61,"start_character":44,"end_line":61,"end_character":46},"updated":"2016-07-05 17:24:45.000000000","message":"That would constitute multiple transactions on auth. I presume we\u0027ll need to roll back all if one failed?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"For example, if a project name is referenced in the mapping, it may need to be"},{"line_number":60,"context_line":"automatically created prior to assigning the user a \"member\" role on it (where"},{"line_number":61,"context_line":"the member role may or may not exist as well)."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"The following is an example of what the mapping engine supports today:"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_65280a34","line":61,"in_reply_to":"1aa78d24_ffe33931","updated":"2016-10-03 15:39:13.000000000","message":"Well - since all things in the dynamic part of the mapping are coming from the assertion, a subsequent authentication could work just fine without having to clean anything up.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"246e594b328f6f80b448af25ea2d6cfb1bebed70","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"The following is an example of what the mapping engine might support as a"},{"line_number":102,"context_line":"result of this spec:"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. code:: javascript"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_6fdf7e0d","line":103,"updated":"2016-06-07 18:16:35.000000000","message":"So...to maintain control of what can and cannot be done in a domain should be handled by a set of domain specific configuration values.\n\n\"allowed_idps\"  should be a list of idps allowed to map to this domain.  Should support a value indicating \"all\" \n\nA second configuration value specifies that the domain supports \nauto_provisioning defaults to false.  If true, then the mapping file is allowed to specify autoprovisioning.\n\nTHese two values can also be added to the domain object in the database if it is cleaner.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"The following is an example of what the mapping engine might support as a"},{"line_number":102,"context_line":"result of this spec:"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":".. code:: javascript"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_330805da","line":103,"in_reply_to":"7aa08908_6fdf7e0d","updated":"2016-10-03 15:39:13.000000000","message":"By auto-provisioning, I assume you mean the ability to create various resources within the domain? Is there a reason why we would need a configuration option to turn that off?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_5ec89322","line":109,"range":{"start_line":109,"start_character":12,"end_line":109,"end_character":34},"updated":"2016-06-07 12:29:50.000000000","message":"this could also be the domain\u0027s name for better UX","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_7f2aa92d","line":109,"in_reply_to":"7aa08908_2a61e4d3","updated":"2016-07-05 17:24:45.000000000","message":"mapping engine supports both domain ID and name today already. Also, what\u0027s the point of specifying a domain_id outside of the rules? Are we implying that mapping is owned by a domain?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"74f51513934f32763b8b67281301e6e4df643004","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_2a61e4d3","line":109,"in_reply_to":"7aa08908_3454adc8","updated":"2016-06-08 04:13:49.000000000","message":"ew, on the other hand domain names are guaranteed unique and i\u0027m sure there is a flag somewhere for domain names are immutable but i cannot find it anywhere.\n\nI don\u0027t think this change should be part of this spec.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":11022,"name":"Rodrigo Duarte Sousa","email":"rodrigodsousa@gmail.com","username":"rodrigods"},"change_message_id":"e6215e9492eea61a8be753ec313ec07ce294d3ee","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_ef6fee28","line":109,"in_reply_to":"7aa08908_3454adc8","updated":"2016-06-07 18:20:47.000000000","message":"the other attributes (in local for example) use a domain object, like:\n\n  domain: {\n    id: ...\n  }\n\nor\n\n  domain: {\n    name: ...\n  }\n\nI think that would be good to be consistent here.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":6460,"name":"Brad Topol","email":"btopol@us.ibm.com","username":"btopol"},"change_message_id":"341dfe34d9a9a455ac094dd96d31942afb81318d","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_be41a9ab","line":109,"range":{"start_line":109,"start_character":12,"end_line":109,"end_character":34},"in_reply_to":"7aa08908_5ec89322","updated":"2016-06-07 15:10:08.000000000","message":"++ That would be nice","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"9de88d641bee805f71dc7b2b4f71b8da96984bd7","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_f5cdfc85","line":109,"in_reply_to":"7aa08908_b2d42abd","updated":"2016-06-07 19:58:25.000000000","message":"Rodrigo: The mapping object is a normal API request, which is generally flat. The contents of \"rules\" is much more complex, and I think warrants the extra flexibility of using full objects. But I appreciate the desire for consistency!\n\nSamuel: Yes, project names are mutable. A new project would be created if you manually renamed one that had been created by a mapping.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"b23b9013a563aa9ca84ca0b8a9abfbf34999d9aa","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_3454adc8","line":109,"in_reply_to":"7aa08908_be41a9ab","updated":"2016-06-07 18:03:54.000000000","message":"Domain names are mutable, and as a reference in an API, that makes the approach incredibly fragile and a possible attack vector. Clients can do name -\u003e ID lookups to provide better UX.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b0b3d0aade5c07b0f4263d7069c5d009e19b80e6","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    PUT /OS-FEDERATION/mappings/{mapping_id}"},{"line_number":107,"context_line":"    {"},{"line_number":108,"context_line":"        \"mapping\": {"},{"line_number":109,"context_line":"            \"domain_id\": \"ab4e2e\","},{"line_number":110,"context_line":"            \"rules\": ["},{"line_number":111,"context_line":"                {"},{"line_number":112,"context_line":"                    \"remote\": ["}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_b2d42abd","line":109,"in_reply_to":"7aa08908_ef6fee28","updated":"2016-06-07 19:48:36.000000000","message":"aren\u0027t project names also mutable (we represent projects by names below) ? so they\u0027re in the same concern ?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                                    ]"},{"line_number":139,"context_line":"                                },"},{"line_number":140,"context_line":"                                {"},{"line_number":141,"context_line":"                                    \"name\": \"Staging\","},{"line_number":142,"context_line":"                                    \"roles\": ["},{"line_number":143,"context_line":"                                        {"},{"line_number":144,"context_line":"                                            \"name\": \"member\""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_012ceaa9","line":141,"range":{"start_line":141,"start_character":0,"end_line":141,"end_character":54},"updated":"2016-06-07 12:29:50.000000000","message":"Would it be useful to specify whether a project is expected to exist in the deployment already?\n\nI am thinking of the cases where a typo happened and that will have a completely different result (think of the resources that existed in an existing project already).\n\nThe default for the option could be True, then one would need to specify \"create\": \"False\"","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":6460,"name":"Brad Topol","email":"btopol@us.ibm.com","username":"btopol"},"change_message_id":"341dfe34d9a9a455ac094dd96d31942afb81318d","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                                    ]"},{"line_number":139,"context_line":"                                },"},{"line_number":140,"context_line":"                                {"},{"line_number":141,"context_line":"                                    \"name\": \"Staging\","},{"line_number":142,"context_line":"                                    \"roles\": ["},{"line_number":143,"context_line":"                                        {"},{"line_number":144,"context_line":"                                            \"name\": \"member\""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_deed95b8","line":141,"range":{"start_line":141,"start_character":0,"end_line":141,"end_character":54},"in_reply_to":"7aa08908_012ceaa9","updated":"2016-06-07 15:10:08.000000000","message":"Done","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b0b3d0aade5c07b0f4263d7069c5d009e19b80e6","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                                    ]"},{"line_number":139,"context_line":"                                },"},{"line_number":140,"context_line":"                                {"},{"line_number":141,"context_line":"                                    \"name\": \"Staging\","},{"line_number":142,"context_line":"                                    \"roles\": ["},{"line_number":143,"context_line":"                                        {"},{"line_number":144,"context_line":"                                            \"name\": \"member\""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_8fb74af4","line":141,"in_reply_to":"7aa08908_748ab51c","updated":"2016-06-07 19:48:36.000000000","message":"I agree with you, this would just add complexity, not worth to treat those cases","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"b23b9013a563aa9ca84ca0b8a9abfbf34999d9aa","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                                    ]"},{"line_number":139,"context_line":"                                },"},{"line_number":140,"context_line":"                                {"},{"line_number":141,"context_line":"                                    \"name\": \"Staging\","},{"line_number":142,"context_line":"                                    \"roles\": ["},{"line_number":143,"context_line":"                                        {"},{"line_number":144,"context_line":"                                            \"name\": \"member\""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_748ab51c","line":141,"in_reply_to":"7aa08908_deed95b8","updated":"2016-06-07 18:03:54.000000000","message":"Without a use case, no it would not be useful... and I don\u0027t consider typos to be use cases for anything but a spell checker.\n\nThe intent was to treat the mapping as a declaration of authorization. If the authorization model does not exist, it needs to be created. So, if a project is deleted, the mapping should recreate it.\n\nWhat is keystone supposed to do if a project is supposed_to_exist\u003dTrue, but it doesn\u0027t exist... 401 the authentication? What about the inverse, where a project is supposed_to_exist\u003dFalse, but the project does exist... 409, can\u0027t create the project? What is the default behavior, null? This sounds like a complex rabbit hole to me.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":152,"context_line":"                                            \"name\": \"observer\""},{"line_number":153,"context_line":"                                        }"},{"line_number":154,"context_line":"                                    ]"},{"line_number":155,"context_line":"                                },"},{"line_number":156,"context_line":"                            ]"},{"line_number":157,"context_line":"                        }"},{"line_number":158,"context_line":"                    ]"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_1f228500","line":155,"range":{"start_line":155,"start_character":32,"end_line":155,"end_character":34},"updated":"2016-07-05 17:24:45.000000000","message":"wow, this mapping is implying to user is mapped to multiple projects. This is exactly what group is for.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":152,"context_line":"                                            \"name\": \"observer\""},{"line_number":153,"context_line":"                                        }"},{"line_number":154,"context_line":"                                    ]"},{"line_number":155,"context_line":"                                },"},{"line_number":156,"context_line":"                            ]"},{"line_number":157,"context_line":"                        }"},{"line_number":158,"context_line":"                    ]"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_2569a2f9","line":155,"in_reply_to":"1aa78d24_1f228500","updated":"2016-10-03 15:39:13.000000000","message":"Except you don\u0027t get the automatic provisioning of a project for a user.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5707,"name":"Henry Nash","email":"henryn@linux.vnet.ibm.com","username":"henry-nash"},"change_message_id":"f0b4a3381f720c7ee43f942ccb487843350a1678","unresolved":false,"context_lines":[{"line_number":163,"context_line":""},{"line_number":164,"context_line":"The above example is constructed with the following considerations in mind:"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"- The mapping explicitly references a ``domain_id``, which applies to all"},{"line_number":167,"context_line":"  objects in the mapping schema (users, projects, and possibly even roles)."},{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_7e9206a1","line":169,"range":{"start_line":166,"start_character":2,"end_line":169,"end_character":49},"updated":"2016-06-02 15:10:24.000000000","message":"I love this idea! We would want to be able to write a policy rule to control this. Also, isn\u0027t the mapping_ID essentially linked to a given IDP? Does that mean each domain has to have its own, discrete IDP defined....or can we allow a single IDP entry to be hooked to a different mapping per domain?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":166,"context_line":"- The mapping explicitly references a ``domain_id``, which applies to all"},{"line_number":167,"context_line":"  objects in the mapping schema (users, projects, and possibly even roles)."},{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_e5009a04","line":169,"in_reply_to":"1aa78d24_5fbd2d67","updated":"2016-10-03 15:39:13.000000000","message":"Right - we\u0027d have to allow for backwards compatibility here.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":166,"context_line":"- The mapping explicitly references a ``domain_id``, which applies to all"},{"line_number":167,"context_line":"  objects in the mapping schema (users, projects, and possibly even roles)."},{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_5fbd2d67","line":169,"in_reply_to":"7aa08908_a167c8e7","updated":"2016-07-05 17:24:45.000000000","message":"This implies mapping is controlled by a domain. That\u0027s not the case right now.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"1d5100844f2a485f34c01bf10783c358fb650a1a","unresolved":false,"context_lines":[{"line_number":166,"context_line":"- The mapping explicitly references a ``domain_id``, which applies to all"},{"line_number":167,"context_line":"  objects in the mapping schema (users, projects, and possibly even roles)."},{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_fe63963f","line":169,"in_reply_to":"9abb7d3a_7e9206a1","updated":"2016-06-02 15:17:24.000000000","message":"Looks like we currently allow mappings to be shared across identity providers. The mapping is linked to the identity provider but I don\u0027t think there is anything saying the mapping can\u0027t be linked to several identity providers.\n\nhttps://github.com/openstack/keystone-specs/blob/master/api/v3/identity-api-v3-os-federation-ext.rst#add-a-protocol-and-attribute-mapping-to-an-identity-provider","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":6460,"name":"Brad Topol","email":"btopol@us.ibm.com","username":"btopol"},"change_message_id":"341dfe34d9a9a455ac094dd96d31942afb81318d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"- The mapping explicitly references a ``domain_id``, which applies to all"},{"line_number":167,"context_line":"  objects in the mapping schema (users, projects, and possibly even roles)."},{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_a167c8e7","line":169,"in_reply_to":"9abb7d3a_e368118a","updated":"2016-06-07 15:10:08.000000000","message":"I have to admit. I love this idea as well! I really like the consumability/usability advances this feature enables","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"46534d418d8b889e42d7066e68b8fd831245bf7a","unresolved":false,"context_lines":[{"line_number":166,"context_line":"- The mapping explicitly references a ``domain_id``, which applies to all"},{"line_number":167,"context_line":"  objects in the mapping schema (users, projects, and possibly even roles)."},{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_e368118a","line":169,"in_reply_to":"9abb7d3a_fe63963f","updated":"2016-06-02 20:15:41.000000000","message":"Henry: The policy rule approach is my line of thinking too. This would be adding a new constraint on the relationship between mappings,  IdPs, and domains, which I suppose would have to be optional for backwards compatibility, or optionally enforced.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":168,"context_line":"  This would allow a domain administrator to control a mapping, without"},{"line_number":169,"context_line":"  requiring intervention from the cloud operator."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"},{"line_number":173,"context_line":"  the respective projects."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":176,"context_line":"  remote assertions. If any of those projects or roles do not exist, they must"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_7e10efa8","line":173,"range":{"start_line":171,"start_character":0,"end_line":173,"end_character":26},"updated":"2016-06-07 12:29:50.000000000","message":"So there is no support for domain role assignments, which are allowed in today\u0027s mapping capabilities.\n\nHowever I am not sure if it\u0027s a true usecase to federate domain admins","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"b23b9013a563aa9ca84ca0b8a9abfbf34999d9aa","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"- The mapping refers to multiple projects, each with a unique set of role"},{"line_number":172,"context_line":"  references. This implies that the user has those role assignments on each of"},{"line_number":173,"context_line":"  the respective projects."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":176,"context_line":"  remote assertions. If any of those projects or roles do not exist, they must"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_742d95fd","line":173,"in_reply_to":"7aa08908_7e10efa8","updated":"2016-06-07 18:03:54.000000000","message":"If there\u0027s a use case for it, I\u0027d consider it, but I agree... it\u0027s not MVP.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":6460,"name":"Brad Topol","email":"btopol@us.ibm.com","username":"btopol"},"change_message_id":"341dfe34d9a9a455ac094dd96d31942afb81318d","unresolved":false,"context_lines":[{"line_number":174,"context_line":""},{"line_number":175,"context_line":"- Each project name (and possibly ID) may be determined dynamically based on"},{"line_number":176,"context_line":"  remote assertions. If any of those projects or roles do not exist, they must"},{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_c1749469","line":177,"updated":"2016-06-07 15:10:08.000000000","message":"Nice! Very convenient!","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":176,"context_line":"  remote assertions. If any of those projects or roles do not exist, they must"},{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_1ef44b84","line":180,"range":{"start_line":179,"start_character":0,"end_line":180,"end_character":41},"updated":"2016-06-07 12:29:50.000000000","message":"Default project ID is an optional attribute, right ? One may want to simply not use it.\n\nIf we want to support setting it, why not do it via an attribute \u0027default\u0027: True within a project ? So it\u0027s up to who is constructing the mapping to decide whether to use it or not.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"c1188ef5e643d320f2fa9a79e44ef68318b43b42","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3a98d1f4_0b6117a9","line":180,"in_reply_to":"1aa78d24_dfdc7de6","updated":"2016-10-03 15:39:13.000000000","message":"I think from an MVP perspective - Jamie has a point. Let\u0027s say that we don\u0027t set default_project_id using the mapping engine to make *any* assumptions about a default project. If we want to change that later, I think it would be easy enough to do so. Then we could establish the rule that the first project in the list will be set to the user\u0027s default_project_id. By not allowing it at all initially, we can easily move towards it later. That\u0027s not true if we end up introducing a mapping syntax to handle default_project_id, because we\u0027ll be on the hook for supporting it.\n\nI don\u0027t think we should use a special mapping syntax for the default project ID. I think we can document the behavior well enough to ensure people understand that the first project in the list is the user\u0027s default project.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"9de88d641bee805f71dc7b2b4f71b8da96984bd7","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_b52374a6","line":180,"in_reply_to":"7aa08908_1261be05","updated":"2016-06-07 19:58:25.000000000","message":"Why?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"b23b9013a563aa9ca84ca0b8a9abfbf34999d9aa","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_d46c4937","line":180,"in_reply_to":"7aa08908_1ef44b84","updated":"2016-06-07 18:03:54.000000000","message":"Yes, it would be part of the mapping, but what is keystone supposed to do if you set default\u003dTrue in multiple projects that come out of the mapping? 400? 401? 409? Is that the fault of the domain admin, the end user, or the IdP? Or is that just a design fault in keystone, so 500?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"daf9aeed953c6533d6bec98428330cc07c144dc2","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_dfdc7de6","line":180,"in_reply_to":"7aa08908_2baef580","updated":"2016-07-05 17:24:45.000000000","message":"I agree with Jamie.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"72e606118d6edc63753ededa45ed0000dc07a4be","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_53e18599","line":180,"in_reply_to":"7aa08908_b52374a6","updated":"2016-06-07 21:51:36.000000000","message":"A valid mapping may contain a list of projects. If it does, either none of them contains default\u003dTrue or only one does. That seems reasonable, and more importantly allow one to not specify a default project. But again, yes, that complicate things.\n\nMy point is that I don\u0027t see why it\u0027s needed to set a default_project_id to a user, if he already has a role in that project (specified in the mapping), seems useless for me.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":7191,"name":"Jamie Lennox","email":"jamielennox@gmail.com","username":"jamielennox"},"change_message_id":"74f51513934f32763b8b67281301e6e4df643004","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_2baef580","line":180,"in_reply_to":"7aa08908_d46c4937","updated":"2016-06-08 04:13:49.000000000","message":"I don\u0027t think we should set default project id. We should be encouraging unscoped tokens with v3.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b0b3d0aade5c07b0f4263d7069c5d009e19b80e6","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  be created by Keystone automatically."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"- The user\u0027s ``default_project_id`` attribute could be automatically set to the"},{"line_number":180,"context_line":"  first project that appears in the list."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"So, in this example, let\u0027s say that the remote ``UserName`` attribute is simply"},{"line_number":183,"context_line":"\"Joe\". According to the mapping, if Joe is neither a guest nor contractor, he"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_1261be05","line":180,"in_reply_to":"7aa08908_d46c4937","updated":"2016-06-07 19:48:36.000000000","message":"Maybe the mapping is invalid (400) ?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":136,"name":"Tim Bell","email":"tim.bell@cern.ch","username":"tim-bell"},"change_message_id":"ddfb4494cd9583f3f6073b123635a1ced096e3a2","unresolved":false,"context_lines":[{"line_number":187,"context_line":"   with an ID of \"ab4e2e\"."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"2. Receive a project-scoped \"admin\" role on a new project (created"},{"line_number":190,"context_line":"   automatically) named \"Development project for Joe\" in the \"ab4e2e\" domain."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"3. Joe\u0027s ``default_project_id`` would be set to the ID of the \"Development"},{"line_number":193,"context_line":"   project for Joe\"."}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_02c4f35c","line":190,"updated":"2016-06-03 17:19:15.000000000","message":"This looks great. We have struggled with automation of personal projects and having an automatic create process would really help. How does the nova/cinder/... quota get set for those which are automatically created ?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":187,"context_line":"   with an ID of \"ab4e2e\"."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"2. Receive a project-scoped \"admin\" role on a new project (created"},{"line_number":190,"context_line":"   automatically) named \"Development project for Joe\" in the \"ab4e2e\" domain."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"3. Joe\u0027s ``default_project_id`` would be set to the ID of the \"Development"},{"line_number":193,"context_line":"   project for Joe\"."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_7ea3cf4f","line":190,"in_reply_to":"9abb7d3a_02c4f35c","updated":"2016-06-07 12:29:50.000000000","message":"Good question Tim. I believe they will get the default values for quotas, similarly to what happens when you create a project through horizon.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":11022,"name":"Rodrigo Duarte Sousa","email":"rodrigodsousa@gmail.com","username":"rodrigods"},"change_message_id":"45b9ee2324bc6fd92b6a309a2f019368d57b1928","unresolved":false,"context_lines":[{"line_number":195,"context_line":"4. Receive direct user + project + role assignments on three projects, with"},{"line_number":196,"context_line":"   three different roles."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"5. Receive a project-scoped token (instead of an unscoped token, as federated"},{"line_number":199,"context_line":"   users receive today), scoped to the user\u0027s default project. This reflects"},{"line_number":200,"context_line":"   the auth behavior of local keystone users."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_caac198f","line":198,"range":{"start_line":198,"start_character":0,"end_line":198,"end_character":1},"updated":"2016-06-02 13:25:05.000000000","message":"an idea: since we have a list of projects, we could add a parameter to choose which project to scope / set as default_project_id. If the parameter is not set, falls back to the first in the list.","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":195,"context_line":"4. Receive direct user + project + role assignments on three projects, with"},{"line_number":196,"context_line":"   three different roles."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"5. Receive a project-scoped token (instead of an unscoped token, as federated"},{"line_number":199,"context_line":"   users receive today), scoped to the user\u0027s default project. This reflects"},{"line_number":200,"context_line":"   the auth behavior of local keystone users."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_be21b7b6","line":198,"in_reply_to":"9abb7d3a_63e1c1fe","updated":"2016-06-07 12:29:50.000000000","message":"This is related to my suggestion above to allow who is building the mapping to specify this information. See my comment in line 179-180","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"6bfb19cd3a8b1c6479f7abfadf4241d6abe1cf79","unresolved":false,"context_lines":[{"line_number":195,"context_line":"4. Receive direct user + project + role assignments on three projects, with"},{"line_number":196,"context_line":"   three different roles."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"5. Receive a project-scoped token (instead of an unscoped token, as federated"},{"line_number":199,"context_line":"   users receive today), scoped to the user\u0027s default project. This reflects"},{"line_number":200,"context_line":"   the auth behavior of local keystone users."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_1df67fd7","line":198,"in_reply_to":"9abb7d3a_63e1c1fe","updated":"2016-06-11 04:44:56.000000000","message":"i assume something like:\n\n  {\n    \"name\": \"Development project for {0}\",\n    \"roles\": [ {  \"name\": \"admin\"  } ],\n    \"is_default\": True\n  },","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"46534d418d8b889e42d7066e68b8fd831245bf7a","unresolved":false,"context_lines":[{"line_number":195,"context_line":"4. Receive direct user + project + role assignments on three projects, with"},{"line_number":196,"context_line":"   three different roles."},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"5. Receive a project-scoped token (instead of an unscoped token, as federated"},{"line_number":199,"context_line":"   users receive today), scoped to the user\u0027s default project. This reflects"},{"line_number":200,"context_line":"   the auth behavior of local keystone users."},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9abb7d3a_63e1c1fe","line":198,"in_reply_to":"9abb7d3a_caac198f","updated":"2016-06-02 20:15:41.000000000","message":"Where would that attribute appear in the example mapping above?","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"Finally, it\u0027s worth mentioning that if the mapping were to change between"},{"line_number":203,"context_line":"federated authentications with keystone, the result of the new mapping would"},{"line_number":204,"context_line":"simply be applied without any additional side effects. Any reduction in"},{"line_number":205,"context_line":"authorization implied by a change in mapping would need to be handled out of"},{"line_number":206,"context_line":"band, as Keystone would have no way of tracking what authorization was granted"},{"line_number":207,"context_line":"as a result of a mapping versus any other means. However, normal token"},{"line_number":208,"context_line":"revocation behaviors would still apply to the role assignments created by a"},{"line_number":209,"context_line":"mapping (so you could still change a mapping, delete a project created by a"},{"line_number":210,"context_line":"mapping, and expect tokens to be revoked for that project)."}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_213646e6","line":207,"range":{"start_line":204,"start_character":55,"end_line":207,"end_character":48},"updated":"2016-06-07 12:29:50.000000000","message":"Very well noted","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":229,"context_line":"   persistent) rather than just arbitrary UUIDs lazily assigned during"},{"line_number":230,"context_line":"   authentication."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"4. We must assume that operators are willing to (continue to) implement such"},{"line_number":233,"context_line":"   external orchestration tools. This may be acceptable for large deployments,"},{"line_number":234,"context_line":"   but is an impractical barrier for smaller ones."},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"Security Impact"},{"line_number":237,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_4109d2dc","line":234,"range":{"start_line":232,"start_character":0,"end_line":234,"end_character":50},"updated":"2016-06-07 12:29:50.000000000","message":"++","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":17860,"name":"Samuel de Medeiros Queiroz","email":"samueldmq@gmail.com","username":"samueldmq"},"change_message_id":"b75cd30705da4f0b7a2f73e77d5eca6529108b81","unresolved":false,"context_lines":[{"line_number":265,"context_line":"Performance Impact"},{"line_number":266,"context_line":"------------------"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"For new users requiring a large number of resources to be allocated during"},{"line_number":269,"context_line":"their first authentication, performance of that call will certainly suffer, as"},{"line_number":270,"context_line":"the resources will be created synchronously. Aggressive client-side timeouts"},{"line_number":271,"context_line":"(for example, in Horizon) may result in false-positive authentication failures."},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"Other Deployer Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_011d0abd","line":270,"range":{"start_line":268,"start_character":0,"end_line":270,"end_character":43},"updated":"2016-06-07 12:29:50.000000000","message":"I wouldn\u0027t expect the response time to grow considerably. The calls to create entities will be internal to keystone (no HTTP calls), so I\u0027d expect them to be pretty efficient","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"e5fcef55dcaa2b1a4bd903be02c69b554dd8ad7a","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"For new users requiring a large number of resources to be allocated during"},{"line_number":269,"context_line":"their first authentication, performance of that call will certainly suffer, as"},{"line_number":270,"context_line":"the resources will be created synchronously. Aggressive client-side timeouts"},{"line_number":271,"context_line":"(for example, in Horizon) may result in false-positive authentication failures."},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"Other Deployer Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_0c8c05d9","line":270,"in_reply_to":"7aa08908_011d0abd","updated":"2016-06-07 19:05:03.000000000","message":"Database writes are required, however (and more than in any other request to keystone).","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":18338,"name":"Ron De Rose","email":"ronald.de.rose@intel.com","username":"derosenet"},"change_message_id":"9295a14f5bec1a92db59aff1e2d0208f6da1a59a","unresolved":false,"context_lines":[{"line_number":290,"context_line":""},{"line_number":291,"context_line":"Primary assignee:"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"- TBD (volunteers welcome)"},{"line_number":294,"context_line":""},{"line_number":295,"context_line":"Work Items"},{"line_number":296,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_e6075b7f","line":293,"range":{"start_line":293,"start_character":25,"end_line":293,"end_character":26},"updated":"2016-06-06 19:59:48.000000000","message":"I\u0027d like to volunteer to help with this :)","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"e5fcef55dcaa2b1a4bd903be02c69b554dd8ad7a","unresolved":false,"context_lines":[{"line_number":290,"context_line":""},{"line_number":291,"context_line":"Primary assignee:"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"- TBD (volunteers welcome)"},{"line_number":294,"context_line":""},{"line_number":295,"context_line":"Work Items"},{"line_number":296,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_6cc309ee","line":293,"in_reply_to":"7aa08908_e6075b7f","updated":"2016-06-07 19:05:03.000000000","message":"Done","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"},{"author":{"_account_id":11022,"name":"Rodrigo Duarte Sousa","email":"rodrigodsousa@gmail.com","username":"rodrigods"},"change_message_id":"1f539715ffac624c77e5b876c8c02ee8424cdb8f","unresolved":false,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"2. Handle the additional output of the mapping engine to create and assign"},{"line_number":302,"context_line":"   resources as required."},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"Dependencies"},{"line_number":305,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":306,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_27eaafdb","line":303,"updated":"2016-06-07 23:38:18.000000000","message":"We have home docs that might be updated/improved, like [1]\n\nhttp://docs.openstack.org/developer/keystone/mapping_combinations.html","commit_id":"1fef44dd662330c7a1d03085aa164a4c5761fa75"}]}
