)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Spec for trusts redelegation"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Initial draft of a spec for allowing chained delegation via trusts"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ibbc06b4dad78330e137259d5edfc61c448ff3cf3"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1ae5cdf2_e55a9329","line":9,"updated":"2014-06-16 14:49:17.000000000","message":"add \n\n    bp trusts-redelegation","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"d7aeb7ad109820953d76d5c481786d07fb49636d","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Spec for trusts redelegation"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Spec for allowing chained delegation via trusts"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"blueprint: trusts-redelegation"},{"line_number":12,"context_line":"Change-Id: Ibbc06b4dad78330e137259d5edfc61c448ff3cf3"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1ae5cdf2_fda49109","line":10,"updated":"2014-06-18 05:47:57.000000000","message":"SecurityImpact\n\nWe may need the blessing of OSS.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Spec for trusts redelegation"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Spec for allowing chained delegation via trusts"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"blueprint: trusts-redelegation"},{"line_number":12,"context_line":"Change-Id: Ibbc06b4dad78330e137259d5edfc61c448ff3cf3"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1ae5cdf2_22b70cf7","line":10,"in_reply_to":"1ae5cdf2_fda49109","updated":"2014-06-24 13:24:42.000000000","message":"OSSG","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"}],"specs/juno/trusts-redelegation.rst":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Allow redelegation via trusts"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp trusts-redelegation"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_25aabbd2","line":8,"updated":"2014-06-16 14:49:17.000000000","message":"NIT: Allow Redelegation via Trusts","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp trusts-redelegation"},{"line_number":12,"context_line":"\u003chttps://blueprints.launchpad.net/keystone/+spec/trusts-redelegation\u003e`_"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Add support to trusts such that redelegation between consumers of trusts"},{"line_number":15,"context_line":"(trustees, which are services for the currently expected use-cases) is"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_652f6389","line":12,"updated":"2014-06-16 14:49:17.000000000","message":"Is this created yet?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"be11add1529aae4786eae085a2ba952b7c06dfbe","unresolved":false,"context_lines":[{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp trusts-redelegation"},{"line_number":12,"context_line":"\u003chttps://blueprints.launchpad.net/keystone/+spec/trusts-redelegation\u003e`_"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Add support to trusts such that redelegation between consumers of trusts"},{"line_number":15,"context_line":"(trustees, which are services for the currently expected use-cases) is"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_6d1bb873","line":12,"in_reply_to":"1ae5cdf2_60f7515a","updated":"2014-06-16 22:04:44.000000000","message":"There is no mechanism to automatically create the spec. We initially discuessed creating the BP once the spec was merged. Dunno what the status is on that otherwise.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"721a9bd0ce5f50e0e8b4e04c444a7dd0eab5d280","unresolved":false,"context_lines":[{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp trusts-redelegation"},{"line_number":12,"context_line":"\u003chttps://blueprints.launchpad.net/keystone/+spec/trusts-redelegation\u003e`_"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Add support to trusts such that redelegation between consumers of trusts"},{"line_number":15,"context_line":"(trustees, which are services for the currently expected use-cases) is"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_60f7515a","line":12,"in_reply_to":"1ae5cdf2_652f6389","updated":"2014-06-16 15:09:04.000000000","message":"Not yet, I\u0027m still getting familiar with the specs workflow (we\u0027ve only just adopted it in Heat), and I thought you raise the spec then the BP is created automatically on commit of the spec?\n\nIf I\u0027m completely wrong then I\u0027ll create the BP of course :)","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"c43f4330063882aa817e58e45e3cc90807d989b5","unresolved":false,"context_lines":[{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"`bp trusts-redelegation"},{"line_number":12,"context_line":"\u003chttps://blueprints.launchpad.net/keystone/+spec/trusts-redelegation\u003e`_"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Add support to trusts such that redelegation between consumers of trusts"},{"line_number":15,"context_line":"(trustees, which are services for the currently expected use-cases) is"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_4413290d","line":12,"in_reply_to":"1ae5cdf2_6d1bb873","updated":"2014-06-17 09:28:23.000000000","message":"Now created","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":19,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Heat uses trusts to enable the service to act on behalf of a user when"},{"line_number":22,"context_line":"performing deferred operations during the lifecycle of a heat stack, for"},{"line_number":23,"context_line":"example creating new instances in response to an autoscaling event."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The usage is as follows:"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_a5ec0b2b","line":22,"updated":"2014-06-16 14:49:17.000000000","message":"Heat*","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":23,"context_line":"example creating new instances in response to an autoscaling event."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The usage is as follows:"},{"line_number":26,"context_line":"1. User (trustor) creates a heat stack"},{"line_number":27,"context_line":"2. Heat creates a trust between the trustor and the heat service user (trustee)"},{"line_number":28,"context_line":"3. At some point after the stack is completed, heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_85ce2fb6","line":26,"updated":"2014-06-16 14:49:17.000000000","message":"Heat*","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":23,"context_line":"example creating new instances in response to an autoscaling event."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The usage is as follows:"},{"line_number":26,"context_line":"1. User (trustor) creates a heat stack"},{"line_number":27,"context_line":"2. Heat creates a trust between the trustor and the heat service user (trustee)"},{"line_number":28,"context_line":"3. At some point after the stack is completed, heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_154984b7","line":26,"updated":"2014-06-16 05:17:28.000000000","message":"i think you want new lines between the numbers here, or it will just render as a long sentence.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"0f398b48251634babb57db67ac947b4287bc4170","unresolved":false,"context_lines":[{"line_number":23,"context_line":"example creating new instances in response to an autoscaling event."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The usage is as follows:"},{"line_number":26,"context_line":"1. User (trustor) creates a heat stack"},{"line_number":27,"context_line":"2. Heat creates a trust between the trustor and the heat service user (trustee)"},{"line_number":28,"context_line":"3. At some point after the stack is completed, heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":29,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_cadbe44d","line":26,"in_reply_to":"1ae5cdf2_154984b7","updated":"2014-06-16 15:20:34.000000000","message":"Yes. New lines between the : and the 1. and between each item in the list.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"The usage is as follows:"},{"line_number":26,"context_line":"1. User (trustor) creates a heat stack"},{"line_number":27,"context_line":"2. Heat creates a trust between the trustor and the heat service user (trustee)"},{"line_number":28,"context_line":"3. At some point after the stack is completed, heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"This poses a problem if the request creating the heat stack comes from another"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_a5d32b5e","line":27,"updated":"2014-06-16 14:49:17.000000000","message":"Heat*\n\napplies to all instances in this file.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"b9574cd7f2121f38793390fea39c0412a548c02f","unresolved":false,"context_lines":[{"line_number":25,"context_line":"The usage is as follows:"},{"line_number":26,"context_line":"1. User (trustor) creates a heat stack"},{"line_number":27,"context_line":"2. Heat creates a trust between the trustor and the heat service user (trustee)"},{"line_number":28,"context_line":"3. At some point after the stack is completed, heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"This poses a problem if the request creating the heat stack comes from another"},{"line_number":31,"context_line":"service which is also using trusts, as the token in the request will be scoped"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_79c39057","line":28,"updated":"2014-06-16 13:31:10.000000000","message":"Line is too long:  can\u0027t be read in the browser.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":37,"context_line":"from a trust-scoped token."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Another potential use-case is when Heat creates an alarm with Ceilometer, we"},{"line_number":40,"context_line":"would like ceilometer to create a trust, so it can impersonate the user owning"},{"line_number":41,"context_line":"the stack when sending asynchronous alarm signals to heat (which could trigger"},{"line_number":42,"context_line":"creation of stacks, thus creation of trusts)."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_c55677ce","line":40,"updated":"2014-06-16 14:49:17.000000000","message":"Ceilometer*","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":49,"context_line":"redelegation steps, e.g the chain of trusts which may be created."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"On creation of a trust a new \"redelegation_count\" argument may be specified,"},{"line_number":52,"context_line":"which if ommitted will default to zero, meaning the current default behavior"},{"line_number":53,"context_line":"remains where no redelegation is allowed."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"If redelegation_count is a positive integer, then explicit redelegation of some"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_e5853308","line":52,"updated":"2014-06-16 14:49:17.000000000","message":"omitted*","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":61,"context_line":"trust specified by the token scope."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_75e648b2","line":64,"updated":"2014-06-16 05:17:28.000000000","message":"same comment as above, this will render as a long paragraph, add new lines between the numbers.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"0f398b48251634babb57db67ac947b4287bc4170","unresolved":false,"context_lines":[{"line_number":61,"context_line":"trust specified by the token scope."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_6ac3b057","line":64,"in_reply_to":"1ae5cdf2_75e648b2","updated":"2014-06-16 15:20:34.000000000","message":"++","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"9dcdf7a8c888affbd67f9a83dac0be8c50324bed","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_576a5d1a","line":66,"updated":"2014-06-13 11:37:28.000000000","message":"So trusts inherit the redelegation parameter? Is it so then that the whole chain of trusts share this redelegation integer? or is it so that each trust has its own redelegation?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_157c24b5","line":66,"in_reply_to":"1ae5cdf2_0a79872e","updated":"2014-06-16 05:17:28.000000000","message":"As I\u0027m understanding it so far...\n\nThe parent trust\u0027s redelegation_count should only be decremented when: a trustee has *successfully* authed with the trust, and then creates another trust?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"a05f134ca5ac9cb48855cfd33e6a0d3875f6c8c8","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_1fe0d524","line":66,"in_reply_to":"1ae5cdf2_0a79872e","updated":"2014-06-14 01:27:42.000000000","message":"Redelegation and single use trusts are at odds.  If you redelegate a limited use trust, the parent trust should probably not be executable, and the child get all of the count.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"f9e7d68af2d5b16376791d21d6459fe758d15ab7","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_6d9f5766","line":66,"in_reply_to":"1ae5cdf2_157c24b5","updated":"2014-06-16 10:00:16.000000000","message":"\u003e The parent trust\u0027s redelegation_count should only be decremented when: a trustee has *successfully* authed with the trust, and then creates another trust?\n\nYes, at the point where we create a trust, we check if the token used to authenticate is trust-scoped, and we either deny (current behavior after fixing bug #1324592) if the redelegation_count is zero, or decrement by one if it\u0027s a positive number.  Then the child inherits the decremented number for redelegation_count","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"b9574cd7f2121f38793390fea39c0412a548c02f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_99c5bc0c","line":66,"in_reply_to":"1ae5cdf2_193fecb6","updated":"2014-06-16 13:31:10.000000000","message":"Juan, but that prevents the parent from being able to \"split\" the trust across several trustees.  Say Heat needs to talk to glance an nova.  Each has its own role.  Solumn cwuld  create two trusts from the parent trust, one for each service.  Far fetched today, but as these stacks get deeper, it makes more and more sense to keep things separated.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"3b5e17068c013a47009cb6a3132c9f7972f9065e","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_1a2a63e7","line":66,"in_reply_to":"1ae5cdf2_4d3c3cc0","updated":"2014-06-17 01:18:46.000000000","message":"Limited use xor re-delegation, works for me. Lets make sure it\u0027s clearly documented.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"85a64c39b0e67e92a5e2b7c696229ab69748369b","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_c3878f5f","line":66,"in_reply_to":"1ae5cdf2_576a5d1a","updated":"2014-06-13 13:33:39.000000000","message":"Each trust has it\u0027s own redelegation_count, but in the case where a trust is chained (e.g created via another trust) then the count will be calculated by decrementing the parent trust redelegation_count by one.  So they don\u0027t share the number, but it is sort-of inherited.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"c9c53f0aaa9b2a024c4897cca7ab9caaf3225965","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_193fecb6","line":66,"in_reply_to":"1ae5cdf2_6d9f5766","updated":"2014-06-16 13:14:42.000000000","message":"uhm... What about the redelegation_count being some sort of \"family\" attribute, which applies for the parent and all of its children? In that sense, the one asking for the trust should know exactly how many trusts will be needed.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"0f398b48251634babb57db67ac947b4287bc4170","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_8a5e3c78","line":66,"in_reply_to":"1ae5cdf2_6fe2e230","updated":"2014-06-16 15:20:34.000000000","message":"@Steve,\n\nCan a redelegated trust have a lower redelegated count than the simple decrement by 1?\n\nHow do we handle limited-use trusts?\n\n@Juan,\n\nI\u0027m not overly concerned by the volume of trusts that can be issued. Nothing stops someone from issuing 1000s of trusts now. if we are running into an issue here, we should solve that issue.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"b769ff133d8fca918901d2087fea931557f881c1","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_4d3c3cc0","line":66,"in_reply_to":"1ae5cdf2_8a5e3c78","updated":"2014-06-16 22:09:44.000000000","message":"@Morgan\n\n\u003e Can a redelegated trust have a lower redelegated count than the simple decrement by 1?\n\nYes, I guess it could - if a redelegated_count is specified when creating the new trust associated with the redelegation, then we can use that provided it\u0027s smaller than the decrement-by-one value inherited from the parent trust.  Obviously the parent trust redelegation count still decrements in this case.\n\n\u003e How do we handle limited-use trusts?\n\nMy initial response is that we don\u0027t, and say if you specify limited use trusts they can\u0027t be redelegated, as it\u0027s going to make the implementation much more complex and bug-prone IMO.  \n\nAlso, I can\u0027t think of any way you can know what a sane number of uses is when redelegating, as you don\u0027t know how many trust-scoped tokens the service will need to get (e.g Solum would have to somehow know how many autoscaling alarms are going to happen for the entire lifetime ot the trust)\n\nSo I\u0027d prefer to say remiaining_uses xor redelegation_count for now, and if solid use-cases for using both surface we can look at how to make them work together later.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"0876d13703e77ea8f3055690909d196e2b9f6bf7","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_6fe2e230","line":66,"in_reply_to":"1ae5cdf2_99c5bc0c","updated":"2014-06-16 13:57:26.000000000","message":"I still think that it is a big issue that the potential amount of trusts you can issue with this grows significantly.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"d7ad02924411496885dcbbb26b336f36cc32e1b7","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_c3bb0fc2","line":66,"in_reply_to":"1ae5cdf2_c3878f5f","updated":"2014-06-13 13:43:55.000000000","message":"So, lets see.\n\n* obj1 gets trust1 and has a redelegation_count\u003d2\n* obj1 creates obj2, which asks for a trust (be it trust2)\n\nAfter this, both trust1 and trust2 have a redelegation_count\u003d1\n\nSo, it could be the case that:\n\n* obj1 creates an obj3, which in turn gets trust3 (with redelegation_count\u003d0)\n* obj2 creates an obj4, which in turn gets trust4 (with redelegation_count\u003d0)\n\nIs this the desired behaviour? it seems to me that the number of trusts issued with this independent redelegation counts could be of exponential amount.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"88110380bab3f31f20c7bac89c23085fa19b4c40","unresolved":false,"context_lines":[{"line_number":63,"context_line":"Thus, the following would be possible:"},{"line_number":64,"context_line":"1. Solum creates trust1 with redelegation_count\u003d2"},{"line_number":65,"context_line":"2. Solum creates a heat stack with a trust-scoped token by consuming trust1"},{"line_number":66,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":67,"context_line":"4. Heat creates a ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":68,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_0a79872e","line":66,"in_reply_to":"1ae5cdf2_c3bb0fc2","updated":"2014-06-13 14:43:01.000000000","message":"Hmm, yes I see what you mean - so perhaps instead we need to decrement the count on the parent trust and apply that count to the new trust, which means that for a redelegation_count of 2, you can only ever have three trusts created.\n\nThanks for the feedback! :)","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":70,"context_line":"Proposed Change"},{"line_number":71,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"* Add a redelegation_count interface to the OS-TRUST API specification"},{"line_number":74,"context_line":"* Update the trusts implementation adding redelegation_count to the DB and"},{"line_number":75,"context_line":"  internal data model"},{"line_number":76,"context_line":"* Implement controller logic which handles the decrementing of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_f555f81e","line":73,"updated":"2014-06-16 05:17:28.000000000","message":"add a period at the end","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"0f398b48251634babb57db67ac947b4287bc4170","unresolved":false,"context_lines":[{"line_number":70,"context_line":"Proposed Change"},{"line_number":71,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"* Add a redelegation_count interface to the OS-TRUST API specification"},{"line_number":74,"context_line":"* Update the trusts implementation adding redelegation_count to the DB and"},{"line_number":75,"context_line":"  internal data model"},{"line_number":76,"context_line":"* Implement controller logic which handles the decrementing of"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_ea5d007b","line":73,"in_reply_to":"1ae5cdf2_f555f81e","updated":"2014-06-16 15:20:34.000000000","message":"Newlines between bullet points here as well.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"* Add a redelegation_count interface to the OS-TRUST API specification"},{"line_number":74,"context_line":"* Update the trusts implementation adding redelegation_count to the DB and"},{"line_number":75,"context_line":"  internal data model"},{"line_number":76,"context_line":"* Implement controller logic which handles the decrementing of"},{"line_number":77,"context_line":"  redelegation_count when a trust is created via a trust-scoped token"},{"line_number":78,"context_line":"* Implement chaining such that trusts created via redelegation are invalidated or when the parent trust is deleted or expires."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_1553443a","line":75,"updated":"2014-06-16 05:17:28.000000000","message":"add a period at the end","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":74,"context_line":"* Update the trusts implementation adding redelegation_count to the DB and"},{"line_number":75,"context_line":"  internal data model"},{"line_number":76,"context_line":"* Implement controller logic which handles the decrementing of"},{"line_number":77,"context_line":"  redelegation_count when a trust is created via a trust-scoped token"},{"line_number":78,"context_line":"* Implement chaining such that trusts created via redelegation are invalidated or when the parent trust is deleted or expires."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_352f60a9","line":77,"updated":"2014-06-16 05:17:28.000000000","message":"add a period at the end","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"0f398b48251634babb57db67ac947b4287bc4170","unresolved":false,"context_lines":[{"line_number":80,"context_line":"Alternatives"},{"line_number":81,"context_line":"------------"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* Passing OAuth access/secret keys between services was considered, but have been discounted for now because there\u0027s no non-global way to disable accesskey expiry"},{"line_number":84,"context_line":"* Move to a model where one trust can have multiple trustee users (e.g more than one service can consume the same trust)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Data Model Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_0ad94cf4","line":83,"updated":"2014-06-16 15:20:34.000000000","message":"Same comment as above on newlines. (NIT) missing period","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":81,"context_line":"------------"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* Passing OAuth access/secret keys between services was considered, but have been discounted for now because there\u0027s no non-global way to disable accesskey expiry"},{"line_number":84,"context_line":"* Move to a model where one trust can have multiple trustee users (e.g more than one service can consume the same trust)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Data Model Impact"},{"line_number":87,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_7510085a","line":84,"updated":"2014-06-16 05:17:28.000000000","message":"I rather like the sound of this, what is the downside of having multiple trustee users?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"f9e7d68af2d5b16376791d21d6459fe758d15ab7","unresolved":false,"context_lines":[{"line_number":81,"context_line":"------------"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* Passing OAuth access/secret keys between services was considered, but have been discounted for now because there\u0027s no non-global way to disable accesskey expiry"},{"line_number":84,"context_line":"* Move to a model where one trust can have multiple trustee users (e.g more than one service can consume the same trust)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Data Model Impact"},{"line_number":87,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_6d775709","line":84,"in_reply_to":"1ae5cdf2_7510085a","updated":"2014-06-16 10:00:16.000000000","message":"My assumption is that the implementation would be more complex, but I\u0027ve not had time to investigate in detail, perhaps ayoung can provide feedback.\n\nWe\u0027d still need some sort of count to limit distribution of the trust, or force definition of all trustee users at the point of creation.\n\nThe problem with forcing definition at the point of creating the trust is that you then need to know all trustee\u0027s, e.g Solum would need to know the user ID for heat and ceilometer and add them as trustees when creating the trust.  \n\nSo far I\u0027ve viewed such leakage of information (user ID\u0027s) between services as undesirable, hence preferring a model where redelegation can happen within each service, as the token is passed between them.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":87,"context_line":"-----------------"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"One new DB column and item in the data structure representing a trust, similar"},{"line_number":90,"context_line":"to \"remaining_uses\" which was added during Icehouse."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"REST API Impact"},{"line_number":93,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_a5988b1c","line":90,"updated":"2014-06-16 14:49:17.000000000","message":"I feel like the concept of remaining_uses and redelegation_count are similar. It would be cool to find a solution that\u0027s general enough for both. \n\nFrom an end-user perspective, these two features sound similar and it might be difficult to distinguish the difference?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"721a9bd0ce5f50e0e8b4e04c444a7dd0eab5d280","unresolved":false,"context_lines":[{"line_number":87,"context_line":"-----------------"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"One new DB column and item in the data structure representing a trust, similar"},{"line_number":90,"context_line":"to \"remaining_uses\" which was added during Icehouse."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"REST API Impact"},{"line_number":93,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_bb1ee85d","line":90,"in_reply_to":"1ae5cdf2_a5988b1c","updated":"2014-06-16 15:09:04.000000000","message":"Well evidently there is some confusion, because I raised a BP for redelegation/chaining and remaining_uses got implemented: \n\nhttps://blueprints.launchpad.net/keystone/+spec/trusts-chained-delegation\n\nThe problem is that IMO they are *not* similar.  One is about limiting the lifetime of the trust, by ensuring authentication (issuing a token) is only possible for a certain count, the other is about expanding the scope of a trust to redelegate to additional trustees.\n\nSo IMO it\u0027s important to keep the concepts and interfaces separate, although I\u0027d be happy to discuss better naming if you think redelegation_count is not clear enough.\n\nUltimately, we probably just need good enough documentation to allow users to not be confused and distinguish the difference, and have defaults which disable both features, such that users can ignore them if they don\u0027t understand them.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6482,"name":"Steve Martinelli","email":"s.martinelli@gmail.com","username":"stevemar"},"change_message_id":"fd24ee16f865e7338a8337da4a1a450a15adb73d","unresolved":false,"context_lines":[{"line_number":92,"context_line":"REST API Impact"},{"line_number":93,"context_line":"---------------"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"One new optional item in the dict representing the trust, \"redelegation_count\""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"Backwards compatibility will be maintained by simply defaulting it to zero"},{"line_number":98,"context_line":"inside the controller if it\u0027s not passed by the user."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_9515944b","line":95,"updated":"2014-06-16 05:17:28.000000000","message":"s/dict/dictionary.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"9dcdf7a8c888affbd67f9a83dac0be8c50324bed","unresolved":false,"context_lines":[{"line_number":101,"context_line":"---------------"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"None, other than allowing for explicit redelegation where none is currently"},{"line_number":104,"context_line":"allowed."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Notifications Impact"},{"line_number":107,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_b77ba1f3","line":104,"updated":"2014-06-13 11:37:28.000000000","message":"What if someone tries to create a trust with a very big redelegation count? Wouldn\u0027t this be an issue?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"0f398b48251634babb57db67ac947b4287bc4170","unresolved":false,"context_lines":[{"line_number":101,"context_line":"---------------"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"None, other than allowing for explicit redelegation where none is currently"},{"line_number":104,"context_line":"allowed."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Notifications Impact"},{"line_number":107,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_9b2e8cf9","line":104,"in_reply_to":"1ae5cdf2_43da9f78","updated":"2014-06-16 15:20:34.000000000","message":"++ This is a good idea. A hard limit (lets default to 5 or even 3 not 10) on redelegation. Don\u0027t forget to comment on what will occur with the redelegation limit option is changed after the redelegation is set on the trust.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"85a64c39b0e67e92a5e2b7c696229ab69748369b","unresolved":false,"context_lines":[{"line_number":101,"context_line":"---------------"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"None, other than allowing for explicit redelegation where none is currently"},{"line_number":104,"context_line":"allowed."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"Notifications Impact"},{"line_number":107,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_43da9f78","line":104,"in_reply_to":"1ae5cdf2_b77ba1f3","updated":"2014-06-13 13:33:39.000000000","message":"Probably we need a config file option max_redelegation_count or something, with a sensible default of a fairly small number, say less than 10.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":121,"context_line":"Performance Impact"},{"line_number":122,"context_line":"------------------"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"The performance penalty for the additional logic to decrement the conter on"},{"line_number":125,"context_line":"trust create should be negligible."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"Other Deployer Impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_658e83d2","line":124,"updated":"2014-06-16 14:49:17.000000000","message":"counter*","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":132,"context_line":"Developer Impact"},{"line_number":133,"context_line":"----------------"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"None, other than allowing full resolution of bug #1317293"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"Implementation"},{"line_number":138,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_852f0fa7","line":135,"updated":"2014-06-16 14:49:17.000000000","message":"allow \u0027bug #1317293\u0027 to be a hyperlink","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":141,"context_line":"-----------"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"Primary assignee:"},{"line_number":144,"context_line":"  shardy"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"Work Items"},{"line_number":147,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_602f5189","line":144,"updated":"2014-06-16 14:49:17.000000000","message":"NIT: add full name here along with IRC nick","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":155,"context_line":"Dependencies"},{"line_number":156,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"None, but related to fixing Solum/Heat bug #1317293"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"Testing"},{"line_number":161,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_0523ffbe","line":158,"updated":"2014-06-16 14:49:17.000000000","message":"same comment as above","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"acb351d8cc51bad41df53d75770f25863c8a1e74","unresolved":false,"context_lines":[{"line_number":160,"context_line":"Testing"},{"line_number":161,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Writing a new tempest test will be a good idea.  I\u0027ll do that as part of the"},{"line_number":164,"context_line":"implementation, exact items to be tested TBC, but will probably include:"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"* Test default (no redelegation)"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_00112d53","line":163,"updated":"2014-06-16 14:49:17.000000000","message":"tests* \n\nThe list below represents the tests that need to be added to tempest, right?","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"721a9bd0ce5f50e0e8b4e04c444a7dd0eab5d280","unresolved":false,"context_lines":[{"line_number":160,"context_line":"Testing"},{"line_number":161,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Writing a new tempest test will be a good idea.  I\u0027ll do that as part of the"},{"line_number":164,"context_line":"implementation, exact items to be tested TBC, but will probably include:"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"* Test default (no redelegation)"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1ae5cdf2_9b776c9f","line":163,"in_reply_to":"1ae5cdf2_00112d53","updated":"2014-06-16 15:09:04.000000000","message":"Yes, it\u0027s just a brain-dump of tempest tests which may make sense to implement, probably with some overlap with unit tests developed as part of the implementation.","commit_id":"4ea6d95fb87b6263071380b27ae5497fbf783b15"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"2. Heat creates a trust between the trustor and the Heat service user (trustee)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"3. At some point after the stack is completed, Heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"This poses a problem if the request creating the Heat stack comes from another"},{"line_number":34,"context_line":"service which is also using trusts, as the token in the request will be scoped"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_c285880b","line":31,"updated":"2014-06-24 13:24:42.000000000","message":"wrap lines at 79 chars per the template.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"33c8b54f69c91aa6d660b96ac3d0c0c4abc305b3","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"2. Heat creates a trust between the trustor and the Heat service user (trustee)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"3. At some point after the stack is completed, Heat consumes the trust to impersonate the trustor, typically to perform some deferred task."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"This poses a problem if the request creating the Heat stack comes from another"},{"line_number":34,"context_line":"service which is also using trusts, as the token in the request will be scoped"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_49b183e0","line":31,"in_reply_to":"1ae5cdf2_c285880b","updated":"2014-07-02 14:50:25.000000000","message":"Done","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"This poses a problem if the request creating the Heat stack comes from another"},{"line_number":34,"context_line":"service which is also using trusts, as the token in the request will be scoped"},{"line_number":35,"context_line":"to a trust, thus will be denied from creating the trust in step (1) above."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"The main use-case for this is Solum, which wishes to use trusts in a similar"},{"line_number":38,"context_line":"way to Heat, to perform deferred operations via trusts, which may include"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_8273804d","line":35,"updated":"2014-06-24 13:24:42.000000000","message":"a trust is created in step 2.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"The proposal is that Keystone trusts will add optional support for chained"},{"line_number":51,"context_line":"delegation, which would enable a trust to specify a count of permissible"},{"line_number":52,"context_line":"redelegation steps, e.g the chain of trusts which may be created."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"On creation of a trust a new \"redelegation_count\" argument may be specified,"},{"line_number":55,"context_line":"which if omitted will default to zero, meaning the current default behavior"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_a2a79ca6","line":52,"updated":"2014-06-24 13:24:42.000000000","message":"how does the client know how many redelegations are going to happen?","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"33c8b54f69c91aa6d660b96ac3d0c0c4abc305b3","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"The proposal is that Keystone trusts will add optional support for chained"},{"line_number":51,"context_line":"delegation, which would enable a trust to specify a count of permissible"},{"line_number":52,"context_line":"redelegation steps, e.g the chain of trusts which may be created."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"On creation of a trust a new \"redelegation_count\" argument may be specified,"},{"line_number":55,"context_line":"which if omitted will default to zero, meaning the current default behavior"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_49e8a3b4","line":52,"in_reply_to":"1ae5cdf2_a2a79ca6","updated":"2014-07-02 14:50:25.000000000","message":"++","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"d7aeb7ad109820953d76d5c481786d07fb49636d","unresolved":false,"context_lines":[{"line_number":62,"context_line":"token scope will be decremented by one, and the resulting trust will inherit"},{"line_number":63,"context_line":"this value."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Optionally, if redelegation_count is specified when creating the redelegated"},{"line_number":66,"context_line":"trust, this will take precedence over the decremented value inherited from the"},{"line_number":67,"context_line":"parent trust, provided the value specified is less than or equal to the"},{"line_number":68,"context_line":"inherited value.  The parent trust redelegation count still decrements in this"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_52af342b","line":65,"updated":"2014-06-18 05:47:57.000000000","message":"Why even allow specifying relegation_count when creating a relegated trust? Should it just inherit the decremented relegation_count from the parent?","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"b02882ee810569f93d99bc1fb5f32e957a8b01ac","unresolved":false,"context_lines":[{"line_number":62,"context_line":"token scope will be decremented by one, and the resulting trust will inherit"},{"line_number":63,"context_line":"this value."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Optionally, if redelegation_count is specified when creating the redelegated"},{"line_number":66,"context_line":"trust, this will take precedence over the decremented value inherited from the"},{"line_number":67,"context_line":"parent trust, provided the value specified is less than or equal to the"},{"line_number":68,"context_line":"inherited value.  The parent trust redelegation count still decrements in this"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_c4943046","line":65,"in_reply_to":"1ae5cdf2_38e60717","updated":"2014-06-19 06:20:55.000000000","message":"I don\u0027t think we should introduce this kind of complexity till we have a real use case for it. We can add it later if needed.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"b1379fbcf8986b0a7da3b8546cc714ce0ca34ad1","unresolved":false,"context_lines":[{"line_number":62,"context_line":"token scope will be decremented by one, and the resulting trust will inherit"},{"line_number":63,"context_line":"this value."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Optionally, if redelegation_count is specified when creating the redelegated"},{"line_number":66,"context_line":"trust, this will take precedence over the decremented value inherited from the"},{"line_number":67,"context_line":"parent trust, provided the value specified is less than or equal to the"},{"line_number":68,"context_line":"inherited value.  The parent trust redelegation count still decrements in this"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_38e60717","line":65,"in_reply_to":"1ae5cdf2_52af342b","updated":"2014-06-18 07:02:24.000000000","message":"That was what I originally proposed, but see the comments from Morgan Fainberg in patch #2.\n\nI can imagine when this could be useful, if you wanted to create a trust which prevents further redelegation for example, so if redelegation_count is null we decrement and inherit, if it\u0027s a number we respect it, limited by the decremented value.\n\nFor example:\n1. UserA creates trust1 with redelegation_count\u003d3\n2. UserB creates trust2 using trust scoped to trust1, specifies redelgation_count\u003d0 to disable further redelegation.\n\nI guess this could be useful if you want the redelegated trust to be used for accessing some service you don\u0027t trust enough to allow it to redelgate to anyone?","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"2616fd6880165900717fab5afc380a003c0d4028","unresolved":false,"context_lines":[{"line_number":62,"context_line":"token scope will be decremented by one, and the resulting trust will inherit"},{"line_number":63,"context_line":"this value."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Optionally, if redelegation_count is specified when creating the redelegated"},{"line_number":66,"context_line":"trust, this will take precedence over the decremented value inherited from the"},{"line_number":67,"context_line":"parent trust, provided the value specified is less than or equal to the"},{"line_number":68,"context_line":"inherited value.  The parent trust redelegation count still decrements in this"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_f1def568","line":65,"in_reply_to":"1ae5cdf2_c4943046","updated":"2014-06-23 01:18:15.000000000","message":"I would be fine with a flag that make a trust re-delgatable instead of an explicit count (keep it capped at the global maximum). We need the ability to prevent trusts from being re-delegated, regardless of if we can limit the generations independent of the global maximum","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"20e9fc8e92beb581136844c1e57456eccf010a11","unresolved":false,"context_lines":[{"line_number":62,"context_line":"token scope will be decremented by one, and the resulting trust will inherit"},{"line_number":63,"context_line":"this value."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Optionally, if redelegation_count is specified when creating the redelegated"},{"line_number":66,"context_line":"trust, this will take precedence over the decremented value inherited from the"},{"line_number":67,"context_line":"parent trust, provided the value specified is less than or equal to the"},{"line_number":68,"context_line":"inherited value.  The parent trust redelegation count still decrements in this"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_33004eab","line":65,"in_reply_to":"1ae5cdf2_f1def568","updated":"2014-06-23 14:22:10.000000000","message":"Ok, I agree a flag is simpler and addresses some of guang-yee\u0027s concerns re complexity, and \"who\" figures out what an appropriate count is.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":66,"context_line":"trust, this will take precedence over the decremented value inherited from the"},{"line_number":67,"context_line":"parent trust, provided the value specified is less than or equal to the"},{"line_number":68,"context_line":"inherited value.  The parent trust redelegation count still decrements in this"},{"line_number":69,"context_line":"case."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"Thus, the following becomes possible:"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_02421068","line":69,"updated":"2014-06-24 13:24:42.000000000","message":"Might want to also mention that if the original trust has no redelegation_count then it can be set when creating a new trust.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"2. Solum creates a Heat stack with a trust-scoped token by consuming trust1"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"3. Heat creates trust2 using the trust scoped token, redelegation_count becomes 1"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"4. Heat creates a Ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_02e690b0","line":77,"updated":"2014-06-24 13:24:42.000000000","message":"In this case I\u0027d expect Heat to specify the redelegation_count when it creates the trust.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":6486,"name":"Brant Knudson","email":"blk@acm.org","username":"blk-u"},"change_message_id":"4a9ad00409da9926fe2de15c76514db650b0870d","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"4. Heat creates a Ceilometer alarm with a trust-scoped token consuming trust2"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"*Question*: The above scheme effectively limits the number of generations of "}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_22b9cc79","line":81,"updated":"2014-06-24 13:24:42.000000000","message":"In this case I\u0027d expect Ceilometer to specify the redelegation_count when it creates the trust.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"d7aeb7ad109820953d76d5c481786d07fb49636d","unresolved":false,"context_lines":[{"line_number":81,"context_line":"5. Ceilometer creates a trust using the trust scoped token, redelegation_count becomes 0 and no further redelegation is possible."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"*Question*: The above scheme effectively limits the number of generations of "},{"line_number":85,"context_line":"redelegation, but not the actual number of redelegations, e.g"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"1. trust1 created with redelegation_count\u003d2"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_3270e8db","line":84,"updated":"2014-06-18 05:47:57.000000000","message":"extra space","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":2903,"name":"Morgan Fainberg","email":"morgan.fainberg@gmail.com","username":"mdrnstm"},"change_message_id":"5bf42a3599d572403f34fd0ecce7e062e34f7412","unresolved":false,"context_lines":[{"line_number":98,"context_line":"all the way \"up\" the tree to affect all previous generations in the chain, but"},{"line_number":99,"context_line":"that seems possibly undesirable as you probably don\u0027t expect to make a request"},{"line_number":100,"context_line":"then find the redelegation_count for the trust you\u0027re using has changed"},{"line_number":101,"context_line":"asynchronously at a later time due to a child trust doing redelegation?"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Proposed Change"},{"line_number":104,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_eabbee72","line":101,"updated":"2014-06-18 01:32:26.000000000","message":"In answer to the question: The re-delegation count being the generational scope is exactly what we were looking for. I don\u0027t think decrementing because a redelegation occurred was expected.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"b1379fbcf8986b0a7da3b8546cc714ce0ca34ad1","unresolved":false,"context_lines":[{"line_number":98,"context_line":"all the way \"up\" the tree to affect all previous generations in the chain, but"},{"line_number":99,"context_line":"that seems possibly undesirable as you probably don\u0027t expect to make a request"},{"line_number":100,"context_line":"then find the redelegation_count for the trust you\u0027re using has changed"},{"line_number":101,"context_line":"asynchronously at a later time due to a child trust doing redelegation?"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"Proposed Change"},{"line_number":104,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_f8b3bf07","line":101,"in_reply_to":"1ae5cdf2_eabbee72","updated":"2014-06-18 07:02:24.000000000","message":"Ok, thanks for the clarification, I\u0027ll remove this question section in the next revision.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"d7aeb7ad109820953d76d5c481786d07fb49636d","unresolved":false,"context_lines":[{"line_number":111,"context_line":"* Implement controller logic which handles the decrementing of"},{"line_number":112,"context_line":"  redelegation_count when a trust is created via a trust-scoped token."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"* Implement chaining such that trusts created via redelegation are invalidated or when the parent trust is deleted or expires."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Alternatives"},{"line_number":117,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_1d5a1d2a","line":114,"updated":"2014-06-18 05:47:57.000000000","message":"What does revocation event look like when invalidating the trust? Can we revoke partial trust chain? Say T1-\u003eT2-\u003eT3-\u003eT4, can we just revoke T3 without impacting T3 and T4? I would think this has to be all-or-nothing deal as the trust hierarchy tend to be complex.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"b1379fbcf8986b0a7da3b8546cc714ce0ca34ad1","unresolved":false,"context_lines":[{"line_number":111,"context_line":"* Implement controller logic which handles the decrementing of"},{"line_number":112,"context_line":"  redelegation_count when a trust is created via a trust-scoped token."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"* Implement chaining such that trusts created via redelegation are invalidated or when the parent trust is deleted or expires."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Alternatives"},{"line_number":117,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_78c7af64","line":114,"in_reply_to":"1ae5cdf2_1d5a1d2a","updated":"2014-06-18 07:02:24.000000000","message":"I\u0027d say revoking would have to recurse \"down\" the tree of delegation, so yes if you revoke T2 then T3 and T4 would be revoked, but not T1.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"65fe91b54b409e590a3b24c28bb7edf864c244d0","unresolved":false,"context_lines":[{"line_number":111,"context_line":"* Implement controller logic which handles the decrementing of"},{"line_number":112,"context_line":"  redelegation_count when a trust is created via a trust-scoped token."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"* Implement chaining such that trusts created via redelegation are invalidated or when the parent trust is deleted or expires."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Alternatives"},{"line_number":117,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_bb80e3bf","line":114,"in_reply_to":"1ae5cdf2_78c7af64","updated":"2014-06-20 17:17:56.000000000","message":"That is correct.","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"9d2e16f374f20a299e0c9fc26a7154e709614b8a","unresolved":false,"context_lines":[{"line_number":142,"context_line":"allowed."},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"To limit the maximum number of redelegations, there will be a new global config"},{"line_number":145,"context_line":"option max_redelegation_count, defaulted to a small number, 3 has been suggested."},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"Whenever redelegation happens, a trusts redelegation_count will be checked against"},{"line_number":148,"context_line":"max_redelegation_count, to handle the situation where max_redelegation_count is"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_71b7c021","line":145,"updated":"2014-06-18 12:29:54.000000000","message":"++","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"d7aeb7ad109820953d76d5c481786d07fb49636d","unresolved":false,"context_lines":[{"line_number":174,"context_line":"------------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The performance penalty for the additional logic to decrement the counter on"},{"line_number":177,"context_line":"trust create should be negligible."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Other Deployer Impact"},{"line_number":180,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_9d5c6d1b","line":177,"updated":"2014-06-18 05:47:57.000000000","message":"What about the performance impact of revoking the chain? This could be expensive if the chain is rather large. Can we have a global restriction which limit the max redelegation?","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"b1379fbcf8986b0a7da3b8546cc714ce0ca34ad1","unresolved":false,"context_lines":[{"line_number":174,"context_line":"------------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The performance penalty for the additional logic to decrement the counter on"},{"line_number":177,"context_line":"trust create should be negligible."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Other Deployer Impact"},{"line_number":180,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_c33618b4","line":177,"in_reply_to":"1ae5cdf2_9d5c6d1b","updated":"2014-06-18 07:02:24.000000000","message":"Yes, see the max_redelegation_count above ;)","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"b02882ee810569f93d99bc1fb5f32e957a8b01ac","unresolved":false,"context_lines":[{"line_number":174,"context_line":"------------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The performance penalty for the additional logic to decrement the counter on"},{"line_number":177,"context_line":"trust create should be negligible."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"Other Deployer Impact"},{"line_number":180,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1ae5cdf2_04ed38f0","line":177,"in_reply_to":"1ae5cdf2_c33618b4","updated":"2014-06-19 06:20:55.000000000","message":"ah, I see it now. That\u0027s good!","commit_id":"452ff1353670df7989a89be5b01d536ee469b351"}]}
