)]}'
{"specs/in_progress/service_token.rst":[{"author":{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},"change_message_id":"c15fc61ebcca00ca58c3e29d36ac2e5f26df0ed2","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                           \\"},{"line_number":272,"context_line":"                       roles: admin"},{"line_number":273,"context_line":"                           |"},{"line_number":274,"context_line":"                          in? SERVICE_operator_roles \u003d Admin"},{"line_number":275,"context_line":"                           \\"},{"line_number":276,"context_line":"                           Yes"},{"line_number":277,"context_line":"                             \\"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5a890539_66400ba6","line":274,"updated":"2014-11-13 10:16:06.000000000","message":"Typo? admin \u003c-\u003e Admin","commit_id":"0b1c72d29a9ee104871d20e24c2af1b2adb09bcc"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"94108f652bd76bfb0bc30a7e03cbf1cb55d68d29","unresolved":false,"context_lines":[{"line_number":271,"context_line":"                           \\"},{"line_number":272,"context_line":"                       roles: admin"},{"line_number":273,"context_line":"                           |"},{"line_number":274,"context_line":"                          in? SERVICE_operator_roles \u003d Admin"},{"line_number":275,"context_line":"                           \\"},{"line_number":276,"context_line":"                           Yes"},{"line_number":277,"context_line":"                             \\"}],"source_content_type":"text/x-rst","patch_set":14,"id":"5a890539_d7d40b22","line":274,"in_reply_to":"5a890539_66400ba6","updated":"2014-11-13 11:22:37.000000000","message":"could well be but operator roles are case insensitive in keystoneauth :)","commit_id":"0b1c72d29a9ee104871d20e24c2af1b2adb09bcc"}],"specs/swift/service_token.rst":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"d91d113d49b488a7c37acbfe127e5b4568390550","unresolved":false,"context_lines":[{"line_number":76,"context_line":"              Object"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"If the container has an X-Container-Service-Access-Role metadata item, the"},{"line_number":80,"context_line":"middleware will perform checking as follows:"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"* The X-Auth-Token role and project id are processed normally. Does the"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_8536574f","line":79,"updated":"2014-07-15 13:42:41.000000000","message":"do you intend this to be sysmeta? in which case name will need to be X-Container-Sysmeta-Service-Access-Role (internally at least). Subject to the discussion below, a translation from  X-Container-Service-Access-Role will be needed if services are to send this header to swift.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"d91d113d49b488a7c37acbfe127e5b4568390550","unresolved":false,"context_lines":[{"line_number":82,"context_line":"* The X-Auth-Token role and project id are processed normally. Does the"},{"line_number":83,"context_line":"  path and the project match? Does the user have a role as specified by"},{"line_number":84,"context_line":"  the \"swiftoperators\" configuration paramater? (i.e., is the user the"},{"line_number":85,"context_line":"  swift_owner)?"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"  In the above diagram, the user token is scoped to the"},{"line_number":88,"context_line":"  1234 project and Admin is in the \"swiftoperators\" configuration paramater."}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_b3cba451","line":85,"updated":"2014-07-15 13:42:41.000000000","message":"Just to be clear, these existing checks are now necessary but not sufficient to grant access - if X-Container-Service-Access-Role is found in the container metadata?","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"bc4384800f82cb67763fe906af2db2306a78a1fb","unresolved":false,"context_lines":[{"line_number":82,"context_line":"* The X-Auth-Token role and project id are processed normally. Does the"},{"line_number":83,"context_line":"  path and the project match? Does the user have a role as specified by"},{"line_number":84,"context_line":"  the \"swiftoperators\" configuration paramater? (i.e., is the user the"},{"line_number":85,"context_line":"  swift_owner)?"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"  In the above diagram, the user token is scoped to the"},{"line_number":88,"context_line":"  1234 project and Admin is in the \"swiftoperators\" configuration paramater."}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_5855fdf8","line":85,"in_reply_to":"baada198_b3cba451","updated":"2014-07-15 16:16:36.000000000","message":"Correct.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"d91d113d49b488a7c37acbfe127e5b4568390550","unresolved":false,"context_lines":[{"line_number":98,"context_line":"This scheme relies on the administrator assigning distinct role names to"},{"line_number":99,"context_line":"end-users and services. Specifically, an end-user should never have a"},{"line_number":100,"context_line":"role that appears in X-Container-Service-Access-Role. If they did,"},{"line_number":101,"context_line":"the end-user could bypass the Service."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Middleware Interaction and Function"},{"line_number":104,"context_line":"-----------------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_935b0085","line":101,"updated":"2014-07-15 13:42:41.000000000","message":"curious - how would the end-user do that? might they send their own token using the X-Service-Token header?","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"bc4384800f82cb67763fe906af2db2306a78a1fb","unresolved":false,"context_lines":[{"line_number":98,"context_line":"This scheme relies on the administrator assigning distinct role names to"},{"line_number":99,"context_line":"end-users and services. Specifically, an end-user should never have a"},{"line_number":100,"context_line":"role that appears in X-Container-Service-Access-Role. If they did,"},{"line_number":101,"context_line":"the end-user could bypass the Service."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Middleware Interaction and Function"},{"line_number":104,"context_line":"-----------------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_985b1555","line":101,"in_reply_to":"baada198_935b0085","updated":"2014-07-15 16:16:36.000000000","message":"Exactly. We can\u0027t stop anyone putting a token into X-Service-Token.\n\nI wonder should we do more enforcement? For example, maybe we should check \"swiftoperators\" and \"service_access_roles\" and refuse to start if they overlapped. This would make it clear the roles should be distinct, but does not stop someone giving an end user both the \"Admin\" and \"service\" roles.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"f11aa1dbed04175f75b07780a6b8aa20e8c913bb","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add the X-Service-Token header to the request."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* When creating the container, set X-Container-Service-Access-Role."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"The appropriate role name to use in X-Container-Service-Access-Role may be a"},{"line_number":186,"context_line":"configuration parameter of the Service. Alternately, the Service could examine"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_66dfb73a","line":183,"updated":"2014-07-14 15:01:26.000000000","message":"Should the service add the X-Container-Service-Access-Role header or should this be left for the middleware to do? Seeing as the middleware has access to the list of allowed services and the X-Service-Token (based on your diagram) has the service name.\n\nI ask because I think making it easier to implement for services is better. Plus we can make sure the correct service name is used (without the poor service having to figure it out).","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"d91d113d49b488a7c37acbfe127e5b4568390550","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add the X-Service-Token header to the request."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* When creating the container, set X-Container-Service-Access-Role."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"The appropriate role name to use in X-Container-Service-Access-Role may be a"},{"line_number":186,"context_line":"configuration parameter of the Service. Alternately, the Service could examine"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_e548f35d","line":183,"in_reply_to":"baada198_4c7b98f4","updated":"2014-07-15 13:42:41.000000000","message":"1) Having keystoneauth set X-Container-Service-Access-Role also has the benefit of not having to translate an externally generated header to a sysmeta header.\n\n2) Could/should the configured roles actually be keyed by service name? Presumably the service name is embedded in the service token info - so keystoneauth could choose X-Container-Service-Access-Role based on (a) seeing an X-Service-Token and (b) the service name in that token\u0027s info.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"eae23c074a4d29a0b01ac001a3e14d204c8e87fd","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add the X-Service-Token header to the request."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* When creating the container, set X-Container-Service-Access-Role."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"The appropriate role name to use in X-Container-Service-Access-Role may be a"},{"line_number":186,"context_line":"configuration parameter of the Service. Alternately, the Service could examine"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_4c7b98f4","line":183,"in_reply_to":"baada198_66dfb73a","updated":"2014-07-15 08:32:37.000000000","message":"That\u0027s an interesting idea. I think what you are saying is that if we see a container create AND X-Service-Token header was included in the request, the middleware should set X-Container-Service-Access-Role.\n\nI like this.I had expected to get pushback from reviewers about exposing the service roles via /info. With your suggestion, we don\u0027t need this since the service does not need to set X-Container-Service-Access-Role ... it happens as a side effect of using X-Service-Token.\n\nHowever, I think X-Container-Service-Access-Role may now become a list of roles  -- not a single value. The reason is that there is nothing to force a service token to be scoped to a single role. In my diagrams, for simplicity,  I used a single role \"service\". However, in practice, the glance and cinder service uses may have multiple roles. \n\nI\u0027ll update the next draft to include this idea.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"cb6aa329960a1cbdb049712959eeaf3f41ee40c6","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add the X-Service-Token header to the request."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* When creating the container, set X-Container-Service-Access-Role."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"The appropriate role name to use in X-Container-Service-Access-Role may be a"},{"line_number":186,"context_line":"configuration parameter of the Service. Alternately, the Service could examine"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_40b7a93a","line":183,"in_reply_to":"baada198_bb90d397","updated":"2014-07-16 08:53:42.000000000","message":"Re. 1) Agree you need to expose a header so user knows the state of the container. Could even be X-Container-Service-Access-Role: service.\n\nRe 2) Agree, scrap that - we do not want to key by names or id that may change. I guess I was wondering if the service type (is it called endpoint type in keystone?) e.g \u0027object-store\u0027, would be available in the service token info, but on reflection I doubt it is.\n\nI\u0027m wondering if its possible to prevent different services accessing each other\u0027s containers by applying different service-access-role(s) according to the service creating the container (of course, services should be trusted, so this isn\u0027t a must-have) - hence the suggestion of the keystoneauth config roles being keyed per service.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"bc4384800f82cb67763fe906af2db2306a78a1fb","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add the X-Service-Token header to the request."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* When creating the container, set X-Container-Service-Access-Role."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"The appropriate role name to use in X-Container-Service-Access-Role may be a"},{"line_number":186,"context_line":"configuration parameter of the Service. Alternately, the Service could examine"}],"source_content_type":"text/x-rst","patch_set":2,"id":"baada198_bb90d397","line":183,"in_reply_to":"baada198_e548f35d","updated":"2014-07-15 16:16:36.000000000","message":"Wrt 1). Yes. However, I think we need some externally visible metadata. Once set, the user is not able to delete their own container. I imagine this will be a source of frustration - the container looks normal, yet refuses to delete.\n\nSo, if X-Container-Sysmeta-Service-Access-Role is set, we translate this to X-Container-Owned-By-Service:true (open to suggestions for a name.. X-Container-Readonly? X-Container-Service?)\n\nWrt 2) What do you mean by service name? Do you mean the username? I would prefer not to key be user name or id. An accidental deletion of the glance user should not break things forever. We should be able to create a glance2 user and by simply giving that user the \"service\" role, that user can take over. Yes, I know since names are mutable, we presumably could create a new user-id that has the same username as a deleted user.","commit_id":"29c5bce620d590ee964828e4183d2f725d278c2b"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"f105002ac79a834cdb77b2de7e13ba3aedbe06b9","unresolved":false,"context_lines":[{"line_number":173,"context_line":"  fields:"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"  * Project Id (example, \"5678\"). The X-Service-Token must be scoped to this"},{"line_number":176,"context_line":"    value (also known as Tenant Id). No two entries may contain the same"},{"line_number":177,"context_line":"    project id."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"  * Service Name (example, \"image\"). Any name may be used. The value need not"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_ec955788","line":176,"updated":"2014-07-28 11:41:34.000000000","message":"In next draft, I plan to introduce two new possible values. In addition to a specific project id, the following values will also be allowed:\n\n_any --- any project_id. This means that it does not matter what project the X-Service-Token is scoped to; however, the role is still needed. This enables an out-of-the-box deployment\n\n_same -- the project_id of the X-Service-Token must match the project_id of the X-Auth-Token.\n\nThe _same concept supports a domain-level role assignments that are inherited to projects. See http://lists.openstack.org/pipermail/openstack-dev/2014-July/040564.html","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"56455b690a30f393e8a7987d4555216986c70b31","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    project id."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"  * Service Name (example, \"image\"). Any name may be used. The value need not"},{"line_number":180,"context_line":"    be unique (i.e., several projects can map to the same service name)."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  * Role (example, \"service\"). The X-Service-Token must include this role."},{"line_number":183,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_17e092f9","line":180,"updated":"2014-07-22 16:48:24.000000000","message":"could project_id just be a list to support that use case?","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"f105002ac79a834cdb77b2de7e13ba3aedbe06b9","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    project id."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"  * Service Name (example, \"image\"). Any name may be used. The value need not"},{"line_number":180,"context_line":"    be unique (i.e., several projects can map to the same service name)."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  * Role (example, \"service\"). The X-Service-Token must include this role."},{"line_number":183,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_f3d9b556","line":180,"in_reply_to":"baada198_17e092f9","updated":"2014-07-28 11:41:34.000000000","message":"I think it\u0027s simpler to have \"one rule\" for each project. If project_id is a list you get issues with resolving two entries with overlapping project_ids...which do you discard, etc.","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"56455b690a30f393e8a7987d4555216986c70b31","unresolved":false,"context_lines":[{"line_number":179,"context_line":"  * Service Name (example, \"image\"). Any name may be used. The value need not"},{"line_number":180,"context_line":"    be unique (i.e., several projects can map to the same service name)."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  * Role (example, \"service\"). The X-Service-Token must include this role."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"The value of the \"services\" parameter is encoded as a json string. An example"},{"line_number":185,"context_line":"is as follows::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_578f6a2e","line":182,"updated":"2014-07-22 16:48:24.000000000","message":"might it be worth making this a list of roles? (just musing really - might future-proof if for some reason other roles are introduced)","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"f105002ac79a834cdb77b2de7e13ba3aedbe06b9","unresolved":false,"context_lines":[{"line_number":179,"context_line":"  * Service Name (example, \"image\"). Any name may be used. The value need not"},{"line_number":180,"context_line":"    be unique (i.e., several projects can map to the same service name)."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  * Role (example, \"service\"). The X-Service-Token must include this role."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"The value of the \"services\" parameter is encoded as a json string. An example"},{"line_number":185,"context_line":"is as follows::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_3395ed3f","line":182,"in_reply_to":"baada198_578f6a2e","updated":"2014-07-28 11:41:34.000000000","message":"That could be useful. e.g., you decide to re-think your role layout. Using a list here would allow you to configure Swift with the new role name, change keystone, then remove the old role from the Swift configuration. With a list, there is no downtime.","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"56455b690a30f393e8a7987d4555216986c70b31","unresolved":false,"context_lines":[{"line_number":185,"context_line":"is as follows::"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    [keystoneauth]"},{"line_number":188,"context_line":"    services\u003d{[{\"service\": \"image\", \"project_id\": \"5678\", \"role\": \"service\"}, {\"service\": \"volume\", \"project_id\": \"9012\", \"role\": \"service\"}]}"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"When processing HTTP_X_Service_Tenant_Id and HTTP_X_Service_Roles, the"},{"line_number":191,"context_line":"\"services\" list is used as follows:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_9714a2ea","line":188,"updated":"2014-07-22 16:48:24.000000000","message":"why match service project_id rather than service user_id?","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"f105002ac79a834cdb77b2de7e13ba3aedbe06b9","unresolved":false,"context_lines":[{"line_number":185,"context_line":"is as follows::"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    [keystoneauth]"},{"line_number":188,"context_line":"    services\u003d{[{\"service\": \"image\", \"project_id\": \"5678\", \"role\": \"service\"}, {\"service\": \"volume\", \"project_id\": \"9012\", \"role\": \"service\"}]}"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"When processing HTTP_X_Service_Tenant_Id and HTTP_X_Service_Roles, the"},{"line_number":191,"context_line":"\"services\" list is used as follows:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_13e8e979","line":188,"in_reply_to":"baada198_9714a2ea","updated":"2014-07-28 11:41:34.000000000","message":"A project is a *resource* whereas a user is a consumer. You could change the user_id of the service yet retain the same project_id. The service might even have two users, e.g., a database user and an api user, both members of the same project.\n\nIn addition, my interpretation of Keystone tokens is that token is scoped to a project...and access is granted based on project+role. The user_id is included in the token only for auditing purposes.","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"f105002ac79a834cdb77b2de7e13ba3aedbe06b9","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"* If no match is found, the X-Service-Token is invalid."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"* Compare the \"service\" field and the value of X-Container-Sysmeta-Service. If"},{"line_number":198,"context_line":"  they do not match, the X-Service-Token is invalid."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Compare the \"role\" field and the HTTP_X_Service_Roles list. If the role"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_2e02e63d","line":197,"updated":"2014-07-28 11:41:34.000000000","message":"I now think this rule is wrong; i.e., we should only be looking at the tokens -- not the exiting value of X-Container-Sysmeta-Service.\n\nIf X-Auth-Token + X-Service-Token grant access to the container, then that\u0027s enough to allow update operations. This means we don\u0027t have different behaviors when X-Container-Sysmeta-Service is or is not already set.\n\nHence, the purpose of X-Container-Sysmeta-Service becomes:\n\n- Prevents updates without an X-Service-Token\n\n- Tells end-user that the container is special (can\u0027t be deleted) and gives them a clue why (e.g., \"image\" means it holds glance image).","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"bd0172bab7ccd9fe1b83feeb01202b2f613dac62","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"The \"services\" configuration parameter is not exposed to the /info feature."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"The default value for \"services\" is an empty list."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Setting X-Container-Sysmeta-Service"},{"line_number":208,"context_line":"-----------------------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_94eca0bd","line":205,"updated":"2014-07-22 16:15:49.000000000","message":"An alternate default is:\n\n    {\"service\": \"_any\", \"project_id\": \"_any\", \"role\": \"service\"}\n\nThis would mean that out-of-the-box, Swift would protect Glance/Cinder images with the only assumption being that they have the \"service\" role assigned to them.","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"56455b690a30f393e8a7987d4555216986c70b31","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"The \"services\" configuration parameter is not exposed to the /info feature."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"The default value for \"services\" is an empty list."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Setting X-Container-Sysmeta-Service"},{"line_number":208,"context_line":"-----------------------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_ba4a6d59","line":205,"in_reply_to":"baada198_94eca0bd","updated":"2014-07-22 16:48:24.000000000","message":"If a container has x-container-sysmeta-service\u003d_any and subsequently actual service rules are configured, would the matching algorithm then try to match against any of the service rules? Or always apply the default if none of the configured rules matched?","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"f105002ac79a834cdb77b2de7e13ba3aedbe06b9","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"The \"services\" configuration parameter is not exposed to the /info feature."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"The default value for \"services\" is an empty list."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Setting X-Container-Sysmeta-Service"},{"line_number":208,"context_line":"-----------------------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"baada198_6e7dbeb1","line":205,"in_reply_to":"baada198_ba4a6d59","updated":"2014-07-28 11:41:34.000000000","message":"See my re-think about  x-container-sysmeta-service values above. So when actual service rules are configured, old containers use the new rule irrespective of the value of x-container-sysmeta-service. AND, if a PUT container happens to occur, the value of x-container-sysmeta-service would change to match the new rule.","commit_id":"26428fc459ca5000e96190d5723c227d935baa26"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":179,"context_line":""},{"line_number":180,"context_line":"  * Project Id. The X-Service-Token must be scoped to this"},{"line_number":181,"context_line":"    value (also known as Tenant Id). No two entries may contain the same"},{"line_number":182,"context_line":"    project id. The value can be specified as follows:"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    * A project id (example, \"5678\")"},{"line_number":185,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_6e8f5023","line":182,"updated":"2014-08-05 15:25:54.000000000","message":"Does the \u0027No two entries may contain the same project id\u0027 apply to the _any and _same values?","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"4d0fff533c740b8bedfc99afebbfbf06658c5bb9","unresolved":false,"context_lines":[{"line_number":179,"context_line":""},{"line_number":180,"context_line":"  * Project Id. The X-Service-Token must be scoped to this"},{"line_number":181,"context_line":"    value (also known as Tenant Id). No two entries may contain the same"},{"line_number":182,"context_line":"    project id. The value can be specified as follows:"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"    * A project id (example, \"5678\")"},{"line_number":185,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1abeadc6_4fda10e9","line":182,"in_reply_to":"baada198_6e8f5023","updated":"2014-08-20 17:19:55.000000000","message":"Yes.","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":251,"context_line":"In this situation, the value is set to be the \"service\" field from the"},{"line_number":252,"context_line":"matching entry in the \"services\" configuration parameter."},{"line_number":253,"context_line":"If X-Container-Sysmeta-Service has a value of ``_any``, this is replaced"},{"line_number":254,"context_line":"by the new value."},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"The effect is that when a service creates a container, the"},{"line_number":257,"context_line":"X-Container-Sysmeta-Service is automatically set without any special"}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_aeb408f2","line":254,"updated":"2014-08-05 15:25:54.000000000","message":"Does this imply that is the value is set to anything other than _any then it will not be replaced?","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"4d0fff533c740b8bedfc99afebbfbf06658c5bb9","unresolved":false,"context_lines":[{"line_number":251,"context_line":"In this situation, the value is set to be the \"service\" field from the"},{"line_number":252,"context_line":"matching entry in the \"services\" configuration parameter."},{"line_number":253,"context_line":"If X-Container-Sysmeta-Service has a value of ``_any``, this is replaced"},{"line_number":254,"context_line":"by the new value."},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"The effect is that when a service creates a container, the"},{"line_number":257,"context_line":"X-Container-Sysmeta-Service is automatically set without any special"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1abeadc6_a2765ba2","line":254,"in_reply_to":"baada198_aeb408f2","updated":"2014-08-20 17:19:55.000000000","message":"Correct. So if it has \"image\", you can\u0027t change it to \"volume\". In the last section, the rules compare values..and if not matching, reject the request. So if \"image\" is already in the metadata and a request comes form the \"volume\" service, it will be rejected...without even reaching here.\n\n.","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":267,"context_line":"This header indicates to the end user that they cannot delete or modify the"},{"line_number":268,"context_line":"contents of the container."},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"Tempurl/FromPOST"},{"line_number":271,"context_line":"----------------"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"The tempurl and formpost middlware must also be modified as follows:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_8ef90485","line":270,"updated":"2014-08-05 15:25:54.000000000","message":"nit: s/FromPOST/FormPOST/","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":270,"context_line":"Tempurl/FromPOST"},{"line_number":271,"context_line":"----------------"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"The tempurl and formpost middlware must also be modified as follows:"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"* If X-Container-Sysmeta-Service has a value, the request is rejected"},{"line_number":276,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_4948c662","line":273,"updated":"2014-08-05 15:25:54.000000000","message":"and container sync i think?\n\nWould an alternative be for keystoneauth to not respect swift.authorize_override if X-Container-Sysmeta-Service is present for PUT/DELETE? A bit draconian but if acceptable it would be easier to maintain.","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"4d0fff533c740b8bedfc99afebbfbf06658c5bb9","unresolved":false,"context_lines":[{"line_number":270,"context_line":"Tempurl/FromPOST"},{"line_number":271,"context_line":"----------------"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"The tempurl and formpost middlware must also be modified as follows:"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"* If X-Container-Sysmeta-Service has a value, the request is rejected"},{"line_number":276,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1abeadc6_c23ef78b","line":273,"in_reply_to":"baada198_4948c662","updated":"2014-08-20 17:19:55.000000000","message":"Thanks for picking this up.\n\nI had thought of using container sync to copy one of these containers to another...the target container is just a normal (no X-Container-Sysmeta-Service) container.\n\nHowever, I had forgotten about the case where a glance container is a target. I guess we want to reject this...but had not worked out how.\n\nWill fix this in next draft.","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":452,"context_line":"  * Read \"services\" configuration parameter"},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"  * Check for X-Container-Sysmeta-Service metadata on all write operations"},{"line_number":455,"context_line":"    and if present enforce rules as described earlier in this document"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"* swift/common/middleware/tempurl.py and swift/common/middleware/frompost.py"},{"line_number":458,"context_line":"  check for X-Container-Sysmeta-Service."}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_c99db65a","line":455,"updated":"2014-08-05 15:25:54.000000000","message":"* translate X-Container-Sysmeta-Service to X-Container-Service in response headers","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"4d0fff533c740b8bedfc99afebbfbf06658c5bb9","unresolved":false,"context_lines":[{"line_number":452,"context_line":"  * Read \"services\" configuration parameter"},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"  * Check for X-Container-Sysmeta-Service metadata on all write operations"},{"line_number":455,"context_line":"    and if present enforce rules as described earlier in this document"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"* swift/common/middleware/tempurl.py and swift/common/middleware/frompost.py"},{"line_number":458,"context_line":"  check for X-Container-Sysmeta-Service."}],"source_content_type":"text/x-rst","patch_set":5,"id":"1abeadc6_625363e2","line":455,"in_reply_to":"baada198_c99db65a","updated":"2014-08-20 17:19:55.000000000","message":"Next draft","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":454,"context_line":"  * Check for X-Container-Sysmeta-Service metadata on all write operations"},{"line_number":455,"context_line":"    and if present enforce rules as described earlier in this document"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"* swift/common/middleware/tempurl.py and swift/common/middleware/frompost.py"},{"line_number":458,"context_line":"  check for X-Container-Sysmeta-Service."},{"line_number":459,"context_line":""},{"line_number":460,"context_line":"* Write unit tests."}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_89a65ebf","line":457,"updated":"2014-08-05 15:25:54.000000000","message":"nit frompost.py -\u003e formpost.py","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"46ab65e87d4a73a475d22c6926dd39704e313643","unresolved":false,"context_lines":[{"line_number":455,"context_line":"    and if present enforce rules as described earlier in this document"},{"line_number":456,"context_line":""},{"line_number":457,"context_line":"* swift/common/middleware/tempurl.py and swift/common/middleware/frompost.py"},{"line_number":458,"context_line":"  check for X-Container-Sysmeta-Service."},{"line_number":459,"context_line":""},{"line_number":460,"context_line":"* Write unit tests."},{"line_number":461,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_29a5529f","line":458,"updated":"2014-08-05 15:25:54.000000000","message":"ditto container_sync.py","commit_id":"3c66b79619073b2c938a3609971d639a3aee7df7"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"f7f3bdd1919c2ec89043f0a12f8319c5191c7c0d","unresolved":false,"context_lines":[{"line_number":178,"context_line":"  the normal ``AUTH_``)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"* The X-Service-Token is also needed to read (GET/HEAD) operations. This"},{"line_number":181,"context_line":"  means that read access can only happen via the service."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* Since you need X-Service-Token to see anything on the ``IMAGE_`` path, the"},{"line_number":184,"context_line":"  end-user has no visability to anything in that account. "}],"source_content_type":"text/x-rst","patch_set":6,"id":"da9df570_5b3e6b29","line":181,"updated":"2014-09-25 12:57:09.000000000","message":"Why could a HEAD/GET not be allowed with just a user token? I\u0027m understanding this to be just another namespace within the user\u0027s \u0027account\u0027, that is only writable with a service-token.","commit_id":"5dd7ff9faaf3669a53281db33022e39a295fe8c4"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"f7f3bdd1919c2ec89043f0a12f8319c5191c7c0d","unresolved":false,"context_lines":[{"line_number":317,"context_line":"  with the project_id_alias. For example, an alias of \"_image\" matches a"},{"line_number":318,"context_line":"  path prefix of ``IMAGE_``. With the Account Namespace Approach a"},{"line_number":319,"context_line":"  a project_id_alias must be configured (otherwise the system does not"},{"line_number":320,"context_line":"  know the legal values for the account prefixes)."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"The \"co_owner_rules\" configuration parameter is not exposed to the /info"},{"line_number":323,"context_line":"feature."}],"source_content_type":"text/x-rst","patch_set":6,"id":"da9df570_7bc24f35","line":320,"updated":"2014-09-25 12:57:09.000000000","message":"Or a single SYS_ namespace could be provided for all services? At least, that could be one way of configuring keystoneauth that would avoid further per-service configuration.","commit_id":"5dd7ff9faaf3669a53281db33022e39a295fe8c4"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"f7f3bdd1919c2ec89043f0a12f8319c5191c7c0d","unresolved":false,"context_lines":[{"line_number":497,"context_line":"----- -----------------------------    --------------------  ------------------"},{"line_number":498,"context_line":"1     User can \"see\" service data      Yes                   No"},{"line_number":499,"context_line":"      Usage is reflected in"},{"line_number":500,"context_line":"      end-user\u0027s account metadata"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"2     Account contains containers      Yes                   No"},{"line_number":503,"context_line":"      with \"strange\" names             Possible name"}],"source_content_type":"text/x-rst","patch_set":6,"id":"da9df570_fb3f1f85","line":500,"updated":"2014-09-25 12:57:09.000000000","message":"Why could a user not GET/HEAD an IMAGE_ namespace by using a different endpoint url?","commit_id":"5dd7ff9faaf3669a53281db33022e39a295fe8c4"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"f7f3bdd1919c2ec89043f0a12f8319c5191c7c0d","unresolved":false,"context_lines":[{"line_number":516,"context_line":"                                                             a change."},{"line_number":517,"context_line":""},{"line_number":518,"context_line":"6     Works with a default value       Yes                   No"},{"line_number":519,"context_line":"      of co_owner_rules"},{"line_number":520,"context_line":""},{"line_number":521,"context_line":"7     Supports existing service        Yes (where data is    No"},{"line_number":522,"context_line":"                                       account (e.g., "}],"source_content_type":"text/x-rst","patch_set":6,"id":"da9df570_fb563fcd","line":519,"updated":"2014-09-25 12:57:09.000000000","message":"For Account namespace approach, could that be a \u0027Yes\u0027 if one SYS_ namespace were shared by all services? So as long as you send a service token you can create in SYS_?\n\nIf I understand it, the non-default co-owner rule is only required to map a particular service to a particular namespace e.g. glance-\u003eIMAGE_, cinder -\u003eVOLUME_","commit_id":"5dd7ff9faaf3669a53281db33022e39a295fe8c4"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"f7f3bdd1919c2ec89043f0a12f8319c5191c7c0d","unresolved":false,"context_lines":[{"line_number":530,"context_line":"                                                             change"},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"10    Each new service requires        No                    Yes"},{"line_number":533,"context_line":"      configuration change\t "},{"line_number":534,"context_line":""},{"line_number":535,"context_line":"\u003d\u003d\u003d\u003d\u003d \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d    \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  \u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":536,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"da9df570_db8fbb28","line":533,"updated":"2014-09-25 12:57:09.000000000","message":"is the \u0027Yes\u0027 based on each service having its own namespace?","commit_id":"5dd7ff9faaf3669a53281db33022e39a295fe8c4"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"df1674a80cc4fadff42014a73adc364759a9721e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"they interact so all are described here. The proposed changes are as follows:"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"* That two tokens can be accepted in a request and the roles from both"},{"line_number":17,"context_line":"  tokens be combined.  "},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"  This proposal supports \"Service Token Composite Authorization\" support in"},{"line_number":20,"context_line":"  the auth_token Keystone middleware"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9aa7fdbe_93c06051","line":17,"updated":"2014-10-28 02:18:31.000000000","message":"White space at the end of the line.","commit_id":"29203987757d8297f119ddb728047eeb02a6c806"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"df1674a80cc4fadff42014a73adc364759a9721e","unresolved":false,"context_lines":[{"line_number":292,"context_line":"        |"},{"line_number":293,"context_line":"        v"},{"line_number":294,"context_line":"     Glance"},{"line_number":295,"context_line":"        |  "},{"line_number":296,"context_line":"        | PUT /v1/SERVICE_1234/container/object"},{"line_number":297,"context_line":"        | X-Auth-Token: \u003cuser-token\u003e"},{"line_number":298,"context_line":"        | X-Service-Token: \u003cglance-token\u003e"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9aa7fdbe_b334844a","line":295,"updated":"2014-10-28 02:18:31.000000000","message":"White space","commit_id":"29203987757d8297f119ddb728047eeb02a6c806"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"df1674a80cc4fadff42014a73adc364759a9721e","unresolved":false,"context_lines":[{"line_number":315,"context_line":"* The keystoneauth middleware appears twice in the pipeline"},{"line_number":316,"context_line":"* One instance is configured using current practice."},{"line_number":317,"context_line":"* The other instance is configured using a different reseller prefix (hence"},{"line_number":318,"context_line":"  account namespace) and also using a default_account_acl."},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"The following shows the proposed configuration::"},{"line_number":321,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"9aa7fdbe_b30ba47b","line":318,"updated":"2014-10-28 02:18:31.000000000","message":"Did you mean hence service namespace (reseller prefix)?","commit_id":"29203987757d8297f119ddb728047eeb02a6c806"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"df1674a80cc4fadff42014a73adc364759a9721e","unresolved":false,"context_lines":[{"line_number":330,"context_line":"    reseller_prefix \u003d SERVICE"},{"line_number":331,"context_line":"    operator_roles \u003d ResellerAdmin "},{"line_number":332,"context_line":"    reseller_admin_roles \u003d ResellerAdmin "},{"line_number":333,"context_line":"    default_account_acl \u003d {\"admin\": {\"roles\": \"Admin\", \"token2_roles\": \"service\"}}"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"In the keytoneauth2 configuration, setting operator_roles to ResellerAdmin"},{"line_number":336,"context_line":"means that \"ordinary\" users have no access. Hence the"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9aa7fdbe_d30e688b","line":333,"updated":"2014-10-28 02:18:31.000000000","message":"More extra white spaces","commit_id":"29203987757d8297f119ddb728047eeb02a6c806"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"df1674a80cc4fadff42014a73adc364759a9721e","unresolved":false,"context_lines":[{"line_number":413,"context_line":"Glance could have ``IMAGE_``, Cinder could have ``VOLUME_``, etc.). This means"},{"line_number":414,"context_line":"there are many accounts to be managed. It also creates a new account each"},{"line_number":415,"context_line":"time you introduce a new service. The mechanisms described in this document"},{"line_number":416,"context_line":"would support this. However, this level of complexity is not recommended. "},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"*policy.xml File*:"},{"line_number":419,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"9aa7fdbe_136b901e","line":416,"updated":"2014-10-28 02:18:31.000000000","message":"whitespace","commit_id":"29203987757d8297f119ddb728047eeb02a6c806"},{"author":{"_account_id":7233,"name":"Matthew Oliver","email":"matt@oliver.net.au","username":"mattoliverau"},"change_message_id":"df1674a80cc4fadff42014a73adc364759a9721e","unresolved":false,"context_lines":[{"line_number":536,"context_line":""},{"line_number":537,"context_line":"So \"mary\" and \"joe\" have write access. Anyone else must have *both* the"},{"line_number":538,"context_line":"\"Admin\" and \"_member\" role to get write access. In contrast, this ACL"},{"line_number":539,"context_line":"only requires users to have *either* \"Admin\" or \"_member\" roles:: "},{"line_number":540,"context_line":""},{"line_number":541,"context_line":"    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": \"Admin\"}, {\"role\": \"_member\"}]}"},{"line_number":542,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"9aa7fdbe_b359e48f","line":539,"updated":"2014-10-28 02:18:31.000000000","message":"More whitespaces","commit_id":"29203987757d8297f119ddb728047eeb02a6c806"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"  This proposal supports \"Service Token Composite Authorization\" support in"},{"line_number":20,"context_line":"  the auth_token Keystone middleware"},{"line_number":21,"context_line":"  (http://git.openstack.org/cgit/openstack/keystone-specs/plain/specs/keystonemiddleware/service-tokens.rst)."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"* An extension to the account ACL mechanism where a richer syntax allows"},{"line_number":24,"context_line":"  explicit refereces to users and roles. In addition, it is proposed"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_de3c3cc2","line":21,"updated":"2014-11-05 13:31:29.000000000","message":"So these two things together are one thing - the ability for a request to have a composite authentication.  What is the bare minimum we can get by with?  Is there anyway to make this work with less.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"* The roles from the second token are made available in token2_roles. This does"},{"line_number":83,"context_line":"  not require that account/project in the two tokens match -- in fact, the"},{"line_number":84,"context_line":"  token2_roles are more useful when the accounts/projects do not match."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* The user from second token is made available in token2_user_id."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_de635cdb","line":84,"updated":"2014-11-05 13:31:29.000000000","message":"Either these should be named \"service_\" or the header should change to x-auth-token-2.\n\nI prefer the consistent user of service concept.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"* The roles from the second token are made available in token2_roles. This does"},{"line_number":83,"context_line":"  not require that account/project in the two tokens match -- in fact, the"},{"line_number":84,"context_line":"  token2_roles are more useful when the accounts/projects do not match."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* The user from second token is made available in token2_user_id."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_f19f5bb2","line":84,"in_reply_to":"7a8c0949_de635cdb","updated":"2014-11-06 11:49:46.000000000","message":"Keystone is already using X-Service-Token as the name. I used token2 because I wanted to show that the abstract concept that two tokens were being combined -- and specifically, the header could be used by someone other than a \"service\". However, I take the point: two names for the same thing is not good.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"In this example, a client is presenting two tokens. One token is the"},{"line_number":92,"context_line":"an end-user\u0027s normal token. The other token comes from \"elsewhere\"."},{"line_number":93,"context_line":"How this happens is outside the scope of this document. For example,"},{"line_number":94,"context_line":"the end-user may send \u003cuser-token\u003e to an application that then"},{"line_number":95,"context_line":"creates \u003ctoken-two\u003e. Alternatively, the application could send"},{"line_number":96,"context_line":"a trust id to the end-user and the end-user redeems the trust, getting"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_5e620cae","line":93,"updated":"2014-11-05 13:31:29.000000000","message":"it might be outside the scope of the swift spec, but it\u0027s terribly relevant, particuarlly to the glance implementation - if possible I\u0027d like to reference their specs for context.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"In this example, a client is presenting two tokens. One token is the"},{"line_number":92,"context_line":"an end-user\u0027s normal token. The other token comes from \"elsewhere\"."},{"line_number":93,"context_line":"How this happens is outside the scope of this document. For example,"},{"line_number":94,"context_line":"the end-user may send \u003cuser-token\u003e to an application that then"},{"line_number":95,"context_line":"creates \u003ctoken-two\u003e. Alternatively, the application could send"},{"line_number":96,"context_line":"a trust id to the end-user and the end-user redeems the trust, getting"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_915617d1","line":93,"in_reply_to":"7a8c0949_5e620cae","updated":"2014-11-06 11:49:46.000000000","message":"This specific case is *not* intended for Glance. This is the general non-\"service\" use case. The glance use-case is in \"Extended Use-case\" below.\n\nWhen writing this document, I had a debate about which order to present things in. I could have presented the glance use-case up front, but that would obscure the general use-case.  Sorry about that -- I had to pick something.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"In this example, the \u003ctoken-two\u003e was scoped to the same project as"},{"line_number":121,"context_line":"\u003cuser-token\u003e. Hence the effective user roles are Admin and supervisor."},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"Example 2 - Combining Roles -- Different Projects"},{"line_number":124,"context_line":"-------------------------------------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_1e688486","line":121,"updated":"2014-11-05 13:31:29.000000000","message":"There\u0027s no justification why this is the right and obvious way to handle this case.  I must admit I don\u0027t understand.  It seems reasonable that at somepoint there would be a consistent view of the aggregate/composite authn membership of the request - then later a way to describe the memberships required for authz (in the ACLs).","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"In this example, the \u003ctoken-two\u003e was scoped to the same project as"},{"line_number":121,"context_line":"\u003cuser-token\u003e. Hence the effective user roles are Admin and supervisor."},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"Example 2 - Combining Roles -- Different Projects"},{"line_number":124,"context_line":"-------------------------------------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_11286733","line":121,"in_reply_to":"7a8c0949_1e688486","updated":"2014-11-06 11:49:46.000000000","message":"This example, says nothing about ACLs...it simply shows how the rules (in \"Composite Tokens\" above are applied.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":153,"context_line":"There are two changes proposed:"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"* The syntax is extended with a richer json syntax that explicitly"},{"line_number":156,"context_line":"  refers to user, roles, token2_user_id and token2_roles"},{"line_number":157,"context_line":"* It is possible to configure a default value for account ACLs"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"ACL Syntax Extension"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_bee77011","line":156,"updated":"2014-11-05 13:31:29.000000000","message":"the acl syntax would explicitly allow me to say \"token2\u0027s user_id must be xyz\" ???  But only if token2 is present?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":154,"context_line":""},{"line_number":155,"context_line":"* The syntax is extended with a richer json syntax that explicitly"},{"line_number":156,"context_line":"  refers to user, roles, token2_user_id and token2_roles"},{"line_number":157,"context_line":"* It is possible to configure a default value for account ACLs"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"ACL Syntax Extension"},{"line_number":160,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_3ebb80e6","line":157,"updated":"2014-11-05 13:31:29.000000000","message":"this is a great idea, no controversy IMHO, could even be separated from this spec and merged separately possibly as a dependency for composite auth.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"An example of a *possible* syntax is as follows:"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    {\"read-write\": [\"5432\", {\"user-id\": \"9876\", \"roles\": \"supervisor\"}]}"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"This reads as follows:"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_1e9b2473","line":191,"updated":"2014-11-05 13:31:29.000000000","message":"inconsistent use of user and user-id ?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"An example of a *possible* syntax is as follows:"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    {\"read-write\": [\"5432\", {\"user-id\": \"9876\", \"roles\": \"supervisor\"}]}"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"This reads as follows:"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_f18cbb37","line":191,"in_reply_to":"7a8c0949_1e9b2473","updated":"2014-11-06 11:49:46.000000000","message":"Sorry. However, it points to a detailed issue: in tempauth, users are names. For Keystone, we want users to present IDs. I didn\u0027t want to dive into deep syntax, but it\u0027s possible that we might allow \"user\" and \"user-id\" keys, but keystone would disallow \"user\" and tempauth would disallow \"user-id\". OR, both use \"user\", but keystone interprets \"user\" as meaning \"user id\". Thoughts?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    Give read-write access if:"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"        (user \u003d\u003d 5432) OR (user \u003d\u003d 9876 AND supervisor in roles)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"Referring to Example 1 above, user 9876 can only meet the second condition when"},{"line_number":200,"context_line":"two tokens are presented in the request."}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_fe76583d","line":197,"updated":"2014-11-05 13:31:29.000000000","message":"this may not be a great example because I think explicit user id is either unreasonably specific or redundant?  Either i want the user to have access (in which i probably don\u0027t care about their current project/role scoping of their token) or I want to authorized requests that have the role supervisor in this project (the swift account).","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    Give read-write access if:"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"        (user \u003d\u003d 5432) OR (user \u003d\u003d 9876 AND supervisor in roles)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"Referring to Example 1 above, user 9876 can only meet the second condition when"},{"line_number":200,"context_line":"two tokens are presented in the request."}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_d17a5ff0","line":197,"in_reply_to":"7a8c0949_fe76583d","updated":"2014-11-06 11:49:46.000000000","message":"I agree, in a real life example this seems redundant. However, the example has served its purpose since you\u0027ve shown you understand the implications.\n\nHaving said that, I can think if a real life scenario. Joe is in HR. I\u0027m allowing him to see my payroll information. However, if Joe is moved to the PR department, I don\u0027t want him to have access. I\u0027m assuming here that Joe\u0027s roles will change when he moves between departments.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":222,"context_line":"The \"public\" /info function will not expose the value of default_account_acl."},{"line_number":223,"context_line":"This is for security reasons -- you can expect important user-ids and roles"},{"line_number":224,"context_line":"to be used in the default_account_acl. The restricted/authenticated /info"},{"line_number":225,"context_line":"will expose the default_account_acl."},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"Setting ACL Metadata"},{"line_number":228,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_5e93ec4e","line":225,"updated":"2014-11-05 13:31:29.000000000","message":"So obvious (after the fact!).  Recommend separate from this spec as a dependency, implementation should be obvious - I would guess no spec required.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":"It is therefore proposed to enhance keystoneauth to support multiple"},{"line_number":254,"context_line":"namespaces by allowing multiple instances of the middleware in the pipeline,"},{"line_number":255,"context_line":"each independently configured."},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"Tempurl, FormPOST, Container Sync"},{"line_number":258,"context_line":"---------------------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_3ede2012","line":255,"updated":"2014-11-05 13:31:29.000000000","message":"I feel like I have used keystone auth with other auth middlewares (seperate auth prefix) in the pipeline with success.  This limitation is specifically with multiple instances of the keystone middleware (never attempted).\n\nAlso not obvious why this is a requirement.  If possible, describe how you were able rule out the possibly of avoiding this in the alternatives section and add a sphinx ref here.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":252,"context_line":""},{"line_number":253,"context_line":"It is therefore proposed to enhance keystoneauth to support multiple"},{"line_number":254,"context_line":"namespaces by allowing multiple instances of the middleware in the pipeline,"},{"line_number":255,"context_line":"each independently configured."},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"Tempurl, FormPOST, Container Sync"},{"line_number":258,"context_line":"---------------------------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_11d307d7","line":255,"in_reply_to":"7a8c0949_3ede2012","updated":"2014-11-06 11:49:46.000000000","message":"Again and ordering problem -- used in \"Extended Use Case\" below.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":307,"context_line":"           account: 1234"},{"line_number":308,"context_line":"           roles: Admin"},{"line_number":309,"context_line":"           token2_roles: service"},{"line_number":310,"context_line":"           token2_user_id: 5432"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"The system is configured as follows:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_3e7aa0f1","line":310,"updated":"2014-11-05 13:31:29.000000000","message":"doesn\u0027t make sense to me.  does the glance user have the service role in project 1234 or 5678?  It seems that the intent is simply to grant the glance service *user* write access.\n\nnit: inconsistent use of user-id and user_id","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":307,"context_line":"           account: 1234"},{"line_number":308,"context_line":"           roles: Admin"},{"line_number":309,"context_line":"           token2_roles: service"},{"line_number":310,"context_line":"           token2_user_id: 5432"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"The system is configured as follows:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_91fd373d","line":310,"in_reply_to":"7a8c0949_3e7aa0f1","updated":"2014-11-06 11:49:46.000000000","message":"Glance user has the service role in project 5678.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":338,"context_line":"the example, the \u003cuser-token\u003e provides the \"Admin\" role and the \u003cglance-token\u003e"},{"line_number":339,"context_line":"provides the service role. By themselves, neither token will grant access to"},{"line_number":340,"context_line":"the account. (Note: as mentioned earlier, the ACL syntax is only provided for"},{"line_number":341,"context_line":"illustrative purposes)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"In addition, the service catalog will be enhanced to add an additional"},{"line_number":344,"context_line":"endpoint type - \"serviceURL\", so the catalog will look like::"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_9ebab46c","line":341,"updated":"2014-11-05 13:31:29.000000000","message":"I\u0027m loosing it.  It seems like composite auth and service accounts are separate things.  Maybe glance just needs access to multiple accounts in the SERVICE_ namespace and it wants to grant READ access to other users (those who\u0027s project matches the service account?)\n\nWhere does composite auth come here?  We just don\u0027t want to have to trust glance (or really glances authentication) to write into services without a forwarded user token?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":338,"context_line":"the example, the \u003cuser-token\u003e provides the \"Admin\" role and the \u003cglance-token\u003e"},{"line_number":339,"context_line":"provides the service role. By themselves, neither token will grant access to"},{"line_number":340,"context_line":"the account. (Note: as mentioned earlier, the ACL syntax is only provided for"},{"line_number":341,"context_line":"illustrative purposes)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"In addition, the service catalog will be enhanced to add an additional"},{"line_number":344,"context_line":"endpoint type - \"serviceURL\", so the catalog will look like::"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_b1023309","line":341,"in_reply_to":"7a8c0949_9ebab46c","updated":"2014-11-06 11:49:46.000000000","message":"Hmm. Maybe I forgot to say that this is Glance configured in multi-tenant mode, except that instead of storing images in AUTH_1234 (user\u0027s account), it would store in SERVICE_1234. Does this clarify things?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":362,"context_line":"* Use the serviceURL path. Services have access to ``HTTP_SERVICE_CATALOG`` in"},{"line_number":363,"context_line":"  their environment so it is easy to construct the appropriate path."},{"line_number":364,"context_line":"* Add their token to the X-Service-Token header"},{"line_number":365,"context_line":"* They should have the \"service\" role for this token"},{"line_number":366,"context_line":"* They should include their service type (e.g., image) as a prefix to any"},{"line_number":367,"context_line":"  container names they create. This will prevent conflict between services"},{"line_number":368,"context_line":"  sharing the account."}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_feaad817","line":365,"updated":"2014-11-05 13:31:29.000000000","message":"nit: I really thought roles were scoped to a project - but I guess the token is too - so you\u0027re just using the transitive property here?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":362,"context_line":"* Use the serviceURL path. Services have access to ``HTTP_SERVICE_CATALOG`` in"},{"line_number":363,"context_line":"  their environment so it is easy to construct the appropriate path."},{"line_number":364,"context_line":"* Add their token to the X-Service-Token header"},{"line_number":365,"context_line":"* They should have the \"service\" role for this token"},{"line_number":366,"context_line":"* They should include their service type (e.g., image) as a prefix to any"},{"line_number":367,"context_line":"  container names they create. This will prevent conflict between services"},{"line_number":368,"context_line":"  sharing the account."}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_d4008d03","line":365,"in_reply_to":"7a8c0949_feaad817","updated":"2014-11-06 11:49:46.000000000","message":"Correct","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":365,"context_line":"* They should have the \"service\" role for this token"},{"line_number":366,"context_line":"* They should include their service type (e.g., image) as a prefix to any"},{"line_number":367,"context_line":"  container names they create. This will prevent conflict between services"},{"line_number":368,"context_line":"  sharing the account."},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"Upgrade Implications"},{"line_number":371,"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":10,"id":"7a8c0949_7e6ee802","line":368,"updated":"2014-11-05 13:31:29.000000000","message":"what about access to other services containers?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":365,"context_line":"* They should have the \"service\" role for this token"},{"line_number":366,"context_line":"* They should include their service type (e.g., image) as a prefix to any"},{"line_number":367,"context_line":"  container names they create. This will prevent conflict between services"},{"line_number":368,"context_line":"  sharing the account."},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"Upgrade Implications"},{"line_number":371,"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":10,"id":"7a8c0949_14a7750d","line":368,"in_reply_to":"7a8c0949_7e6ee802","updated":"2014-11-06 11:49:46.000000000","message":"As proposed here, a service could access another services container. There is an implication/assumption that services can trust each other. You have a related comment below.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":405,"context_line":""},{"line_number":406,"context_line":"An earlier draft proposed new sysmeta that established \"co-ownership\""},{"line_number":407,"context_line":"rules for containers. This was rejected in favour of extending the"},{"line_number":408,"context_line":"ACL syntax."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"*Account Namespace per Service*"},{"line_number":411,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_fe581858","line":408,"updated":"2014-11-05 13:31:29.000000000","message":"Need more detail.  Is the reason for not using containers because the container acl syntax is less extensible?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":413,"context_line":"Glance could have ``IMAGE_``, Cinder could have ``VOLUME_``, etc.). This means"},{"line_number":414,"context_line":"there are many accounts to be managed. It also creates a new account each"},{"line_number":415,"context_line":"time you introduce a new service. The mechanisms described in this document"},{"line_number":416,"context_line":"would support this. However, this level of complexity is not recommended."},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"*policy.xml File*:"},{"line_number":419,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_5e1ccc77","line":416,"updated":"2014-11-05 13:31:29.000000000","message":"But it\u0027s the right secuirty granularity - the hardest part is account usage aggregation - but that\u0027s not drastically harder from 2 to N.\n\nWhat about doing prefix rewriting based on an services level authentication.  Hey I\u0027m glance for project xyz, give me my GLANCE_xyz account please.\n\naccount auto create should make it trivial, you may not need multiple instances of the middleware in the pipeline...","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":413,"context_line":"Glance could have ``IMAGE_``, Cinder could have ``VOLUME_``, etc.). This means"},{"line_number":414,"context_line":"there are many accounts to be managed. It also creates a new account each"},{"line_number":415,"context_line":"time you introduce a new service. The mechanisms described in this document"},{"line_number":416,"context_line":"would support this. However, this level of complexity is not recommended."},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"*policy.xml File*:"},{"line_number":419,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_147e956b","line":416,"in_reply_to":"7a8c0949_5e1ccc77","updated":"2014-11-06 11:49:46.000000000","message":"Creating accounts is easy. And yes, a single middleware could handle them all. My issue is more about management (esp deletion) of these accounts. However, I\u0027m open to a debate on this.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":528,"context_line":"The current syntax means *lists* are ORed (i.e., \"mary\" or \"joe\"). Keeping"},{"line_number":529,"context_line":"this means ORs are in lists; ANDs are in dictionaries. Here is an example::"},{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": {“1”:\"Admin\", \"2\": \"_member\"}}}"},{"line_number":532,"context_line":""},{"line_number":533,"context_line":"This reads as, grant read-write access if::"},{"line_number":534,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_3183b157","line":531,"updated":"2014-11-05 13:31:29.000000000","message":"yuk.\n\nIt seems like any boolean algebra should be expressible with an OR list if the inner elements are always AND\n\nwhat about just:\n\n    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": [\"Admin\", \"_member\"]}}\n\nWhich should be obviously different than:\n\n    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": \"Admin\"}, {\"role\": \"_member\"}}}","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":528,"context_line":"The current syntax means *lists* are ORed (i.e., \"mary\" or \"joe\"). Keeping"},{"line_number":529,"context_line":"this means ORs are in lists; ANDs are in dictionaries. Here is an example::"},{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": {“1”:\"Admin\", \"2\": \"_member\"}}}"},{"line_number":532,"context_line":""},{"line_number":533,"context_line":"This reads as, grant read-write access if::"},{"line_number":534,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_342b9131","line":531,"in_reply_to":"7a8c0949_3183b157","updated":"2014-11-06 11:49:46.000000000","message":"See my reply at the bottom.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":11425,"name":"Kévin Bernard-Allies","email":"kbernard-allies@bajoo.fr","username":"BAK"},"change_message_id":"aaaffc6406ac6ec3502ddd927a17549d2108c014","unresolved":false,"context_lines":[{"line_number":528,"context_line":"The current syntax means *lists* are ORed (i.e., \"mary\" or \"joe\"). Keeping"},{"line_number":529,"context_line":"this means ORs are in lists; ANDs are in dictionaries. Here is an example::"},{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": {“1”:\"Admin\", \"2\": \"_member\"}}}"},{"line_number":532,"context_line":""},{"line_number":533,"context_line":"This reads as, grant read-write access if::"},{"line_number":534,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_4ea0769f","line":531,"in_reply_to":"7a8c0949_342b9131","updated":"2014-11-07 11:43:49.000000000","message":"As an openstack noob, I am asking: Why not reusing the RBAC policy syntax used in \"policy.json\" files ?\nThe syntax is pretty close, and the code is already here.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"8b725b9a6dab6827dcaafd9cb5f7253c8170bd86","unresolved":false,"context_lines":[{"line_number":528,"context_line":"The current syntax means *lists* are ORed (i.e., \"mary\" or \"joe\"). Keeping"},{"line_number":529,"context_line":"this means ORs are in lists; ANDs are in dictionaries. Here is an example::"},{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    {\"read-write\": [\"mary\", {\"user\": \"joe\"}, {\"role\": {“1”:\"Admin\", \"2\": \"_member\"}}}"},{"line_number":532,"context_line":""},{"line_number":533,"context_line":"This reads as, grant read-write access if::"},{"line_number":534,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"5a890539_c7c47442","line":531,"in_reply_to":"7a8c0949_4ea0769f","updated":"2014-11-12 15:55:39.000000000","message":"Kévin, discussed in \"Alternatives\" in draft 11","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1b933fc3cb7106df412cefcdac6f17df4715ca19","unresolved":false,"context_lines":[{"line_number":567,"context_line":""},{"line_number":568,"context_line":"This means that nobody (including the swift_owner) can write unless they"},{"line_number":569,"context_line":"have the \"supervisor\" role. The ACL allows \"mary\" and \"joe\" to write, but"},{"line_number":570,"context_line":"again, they need the \"supervisor\" role."}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_d1918d9b","line":570,"updated":"2014-11-05 13:31:29.000000000","message":"I\u0027m not sure.  Can we get by without it for now?  Split it to separate discussion?","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"39721cf0e8e884031c909124d4cf82af23cb2524","unresolved":false,"context_lines":[{"line_number":567,"context_line":""},{"line_number":568,"context_line":"This means that nobody (including the swift_owner) can write unless they"},{"line_number":569,"context_line":"have the \"supervisor\" role. The ACL allows \"mary\" and \"joe\" to write, but"},{"line_number":570,"context_line":"again, they need the \"supervisor\" role."}],"source_content_type":"text/x-rst","patch_set":10,"id":"7a8c0949_941b651a","line":570,"in_reply_to":"7a8c0949_d1918d9b","updated":"2014-11-06 11:49:46.000000000","message":"\u003e  Can we get by without it for now? \nYes.\n\n\u003e Split it to separate discussion?\nAt *this* stage, in *this* spec, I\u0027m not attempting to nail everything down, but set a general direction for future work. I\u0027m not sure if this means future versions of this spec, or separate specs. The swift-specs repo does not have much precedence ... it looks like the EC spec went for the \"versions\" approach.","commit_id":"55c289b61a83b8a1e62743ae0afea3691356bf05"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"5528928fa9036b0543e73b4d0f6b202e8250b3f4","unresolved":false,"context_lines":[{"line_number":251,"context_line":"The authorization logic is as follows::"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"         /v1/SERVICE_1234/container/object"},{"line_number":254,"context_line":"             ------- "},{"line_number":255,"context_line":"                |   "},{"line_number":256,"context_line":"               in?"},{"line_number":257,"context_line":"                |"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5a890539_1cedeeef","line":254,"updated":"2014-11-12 17:22:15.000000000","message":"\"pep8 \u003cfile\u003e |grep trailing\" only seems to work sometimes. Not sure I understand why. Have attempted to fix all trailing white space in next draft.","commit_id":"d779f6811242c2b40a9747e8afb9a3494a1f8e2f"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"6dcbdf552a497b019a7e9b8443fa4c93e45f623d","unresolved":false,"context_lines":[{"line_number":275,"context_line":"                           \\"},{"line_number":276,"context_line":"                           Yes"},{"line_number":277,"context_line":"                             \\"},{"line_number":278,"context_line":"                           service_roles: admin"},{"line_number":279,"context_line":"                             |"},{"line_number":280,"context_line":"                            in? SERVICE_SERVICE_ROLES \u003d service"},{"line_number":281,"context_line":"                             \\"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5a890539_4836d153","line":278,"updated":"2014-11-12 17:10:12.000000000","message":"? should this be \u0027service_roles: service\u0027","commit_id":"d779f6811242c2b40a9747e8afb9a3494a1f8e2f"},{"author":{"_account_id":860,"name":"Donagh McCabe","email":"donagh.mccabe@gmail.com","username":"donagh-mccabe"},"change_message_id":"5528928fa9036b0543e73b4d0f6b202e8250b3f4","unresolved":false,"context_lines":[{"line_number":275,"context_line":"                           \\"},{"line_number":276,"context_line":"                           Yes"},{"line_number":277,"context_line":"                             \\"},{"line_number":278,"context_line":"                           service_roles: admin"},{"line_number":279,"context_line":"                             |"},{"line_number":280,"context_line":"                            in? SERVICE_SERVICE_ROLES \u003d service"},{"line_number":281,"context_line":"                             \\"}],"source_content_type":"text/x-rst","patch_set":11,"id":"5a890539_3cd46a1f","line":278,"in_reply_to":"5a890539_4836d153","updated":"2014-11-12 17:22:15.000000000","message":"Correct. Fixed in draft.Thanks","commit_id":"d779f6811242c2b40a9747e8afb9a3494a1f8e2f"}]}
