)]}'
{"specs/queens/policy-deprecation.rst":[{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"1ab149a492e626bd8c8c2ee99ec8ee0aea5fcb52","unresolved":false,"context_lines":[{"line_number":26,"context_line":"consume. This is consistent with how we deprecate other things in OpenStack,"},{"line_number":27,"context_line":"like configuration options."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Use Cases"},{"line_number":30,"context_line":"---------"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"As a Deployer, I need be able to see logged deprecation warnings for policies I"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f2577a7_2b6071a5","line":29,"updated":"2017-09-11 16:52:21.000000000","message":"This needs to be updated to include the following:\n\n - adjusting semantics of a policy in a backwards incompatible way\n  - this includes emitting a warning that operators needs to add a new role in order to things to keep working, if they continue to use the defaults\n - renaming a policy\n - removal of a policy in a backwards incompatible way but with a transition plan","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2c386b7e0b2d61901198e2997e493dbddca0ccea","unresolved":false,"context_lines":[{"line_number":26,"context_line":"consume. This is consistent with how we deprecate other things in OpenStack,"},{"line_number":27,"context_line":"like configuration options."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Use Cases"},{"line_number":30,"context_line":"---------"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"As a Deployer, I need be able to see logged deprecation warnings for policies I"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f515b1d_40db3d1a","line":29,"in_reply_to":"5f2577a7_22e50fa9","updated":"2017-09-26 21:32:40.000000000","message":"Yes - I think you\u0027re right. I gravitated to the \u0027role\u0027 case because I think it\u0027s easier to understand.\n\nThese would benefit from rewording so they are more clear.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"03e1ecaf16fbb1e2553d35db509ab3e638d8ebda","unresolved":false,"context_lines":[{"line_number":26,"context_line":"consume. This is consistent with how we deprecate other things in OpenStack,"},{"line_number":27,"context_line":"like configuration options."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Use Cases"},{"line_number":30,"context_line":"---------"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"As a Deployer, I need be able to see logged deprecation warnings for policies I"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f2577a7_22e50fa9","line":29,"in_reply_to":"5f2577a7_2b6071a5","updated":"2017-09-14 14:35:56.000000000","message":"I assume you meant s/role/rule/ in that second bullet.\n\nchanging the value \u003d adjusting semantics?\n\na specialized case was removing a policy while replacing it with a set of policies... e.g. replacing foo with foo:get, foo:create, etc.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"c8b6c17359710a29aba68d3b28315e08745fec67","unresolved":false,"context_lines":[{"line_number":45,"context_line":"policies are registered as. We can extend this object to support an optional"},{"line_number":46,"context_line":"``deprecated`` attribute, or set of attributes that communicate information"},{"line_number":47,"context_line":"about the deprecation. This won\u0027t require projects to change their current"},{"line_number":48,"context_line":"policy definitions or implementations."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"This change will likely be limited to the oslo.policy library, specifically the"},{"line_number":51,"context_line":"``DocumentedRuleDefault`` object."}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f287b81_60d41d48","line":48,"updated":"2017-09-05 17:45:13.000000000","message":"We should look at what sorts of values oslo.config and debtcollector use and try to provide the same features. In particular, giving a reason for deprecation, but potentially also deprecated_since (from oslo.config) and removal_version (from debtcollector).\n\nIf we could define a class within debtcollector to represent a deprecation event then eventually use that class to replace the separate parameters in oslo.config and here that would be ideal, but that\u0027s probably a separate spec.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2c386b7e0b2d61901198e2997e493dbddca0ccea","unresolved":false,"context_lines":[{"line_number":45,"context_line":"policies are registered as. We can extend this object to support an optional"},{"line_number":46,"context_line":"``deprecated`` attribute, or set of attributes that communicate information"},{"line_number":47,"context_line":"about the deprecation. This won\u0027t require projects to change their current"},{"line_number":48,"context_line":"policy definitions or implementations."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"This change will likely be limited to the oslo.policy library, specifically the"},{"line_number":51,"context_line":"``DocumentedRuleDefault`` object."}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f515b1d_6079992d","line":48,"in_reply_to":"7f287b81_60d41d48","updated":"2017-09-26 21:32:40.000000000","message":"Done. I\u0027ve added a section here with attributes and descriptions of how they\u0027d be used.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"6a63875dda63926447721e9a430c405a7b6f92f7","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"This change will likely be limited to the oslo.policy library, specifically the"},{"line_number":51,"context_line":"``DocumentedRuleDefault`` object."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f2577a7_330a3526","line":52,"updated":"2017-09-11 04:42:06.000000000","message":"Let\u0027s mention that there will be some impact on the code to generate a sample policy file, which should clearly indicate deprecations.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2c386b7e0b2d61901198e2997e493dbddca0ccea","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"This change will likely be limited to the oslo.policy library, specifically the"},{"line_number":51,"context_line":"``DocumentedRuleDefault`` object."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f515b1d_002f853f","line":52,"in_reply_to":"5f2577a7_330a3526","updated":"2017-09-26 21:32:40.000000000","message":"Done","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"6a63875dda63926447721e9a430c405a7b6f92f7","unresolved":false,"context_lines":[{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Developers can continue to rely on release notes and mailing lists to"},{"line_number":57,"context_line":"communicate policy changes to operators. This is considered suboptimal since it"},{"line_number":58,"context_line":"is prone to human error and lacks consistency across projects."},{"line_number":59,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f2577a7_d330910a","line":56,"updated":"2017-09-11 04:42:06.000000000","message":"I would not say this is an alternative. I believe the current general consensus is that we have no way to deprecate/remove policy rules. Release notes are used when new rules are added, but we simply avoid ever removing/renaming something once it\u0027s been defined... which is obviously problematic, hence the great need for this spec.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2c386b7e0b2d61901198e2997e493dbddca0ccea","unresolved":false,"context_lines":[{"line_number":53,"context_line":"Alternatives"},{"line_number":54,"context_line":"------------"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Developers can continue to rely on release notes and mailing lists to"},{"line_number":57,"context_line":"communicate policy changes to operators. This is considered suboptimal since it"},{"line_number":58,"context_line":"is prone to human error and lacks consistency across projects."},{"line_number":59,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f515b1d_a044311c","line":56,"in_reply_to":"5f2577a7_d330910a","updated":"2017-09-26 21:32:40.000000000","message":"Done","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"6a63875dda63926447721e9a430c405a7b6f92f7","unresolved":false,"context_lines":[{"line_number":66,"context_line":"Security impact"},{"line_number":67,"context_line":"---------------"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"None."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"Performance Impact"},{"line_number":72,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5f2577a7_733f9dd6","line":69,"updated":"2017-09-11 04:42:06.000000000","message":"Will allow us to replace poorly defined policy rules, improving RBAC","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2c386b7e0b2d61901198e2997e493dbddca0ccea","unresolved":false,"context_lines":[{"line_number":66,"context_line":"Security impact"},{"line_number":67,"context_line":"---------------"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"None."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"Performance Impact"},{"line_number":72,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7f515b1d_603cf9be","line":69,"in_reply_to":"5f2577a7_733f9dd6","updated":"2017-09-26 21:32:40.000000000","message":"Done","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":12404,"name":"Rico Lin","email":"ricolin@ricolky.com","username":"rico.lin"},"change_message_id":"38737904817b3334a4328eefad06bd7fb5d16518","unresolved":false,"context_lines":[{"line_number":120,"context_line":"Work Items"},{"line_number":121,"context_line":"----------"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"* Implement deprecated functionality in ``DocumentedRuleDefault`` object"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"Documentation Impact"},{"line_number":126,"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":3,"id":"5f2577a7_22550fc7","line":123,"range":{"start_line":123,"start_character":42,"end_line":123,"end_character":63},"updated":"2017-09-12 20:59:06.000000000","message":"maybe we should also do RuleDefault to cover other policy deprecation cases","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"03e1ecaf16fbb1e2553d35db509ab3e638d8ebda","unresolved":false,"context_lines":[{"line_number":120,"context_line":"Work Items"},{"line_number":121,"context_line":"----------"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"* Implement deprecated functionality in ``DocumentedRuleDefault`` object"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"Documentation Impact"},{"line_number":126,"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":3,"id":"5f2577a7_22ad0f88","line":123,"range":{"start_line":123,"start_character":42,"end_line":123,"end_character":63},"in_reply_to":"5f2577a7_22550fc7","updated":"2017-09-14 14:35:56.000000000","message":"no, everyone should be moving to DocumentedRuleDefault under the policy-and-docs-in-code goal for queens. If they\u0027re not, they\u0027ll miss a lot of benefits, including this.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"2c386b7e0b2d61901198e2997e493dbddca0ccea","unresolved":false,"context_lines":[{"line_number":120,"context_line":"Work Items"},{"line_number":121,"context_line":"----------"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"* Implement deprecated functionality in ``DocumentedRuleDefault`` object"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"Documentation Impact"},{"line_number":126,"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":3,"id":"7f515b1d_27317bed","line":123,"range":{"start_line":123,"start_character":42,"end_line":123,"end_character":63},"in_reply_to":"5f2577a7_22ad0f88","updated":"2017-09-26 21:32:40.000000000","message":"Either way it should be accessible but not required (which is possible since DocumentedRuleDefault subclasses RuleDefault). I\u0027ll broaden the wording here and propose the implementation.","commit_id":"99c1066b9fd20a42b9e6e4c69c060827743b1f35"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"97ac27d8e6285c27ccaecdfde74ccaef0cdd0398","unresolved":false,"context_lines":[{"line_number":97,"context_line":"* ``deprecate_in_favor_of``: The policy to use instead of the deprecated one"},{"line_number":98,"context_line":"* ``deprecated_since``: The release in which the policy was officially"},{"line_number":99,"context_line":"  deprecated"},{"line_number":100,"context_line":"* ``removal_in``: The release in which the policy will be removed"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"This change will likely be limited to the oslo.policy library, specifically the"},{"line_number":103,"context_line":"``DocumentedRuleDefault`` object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_06e5cf0a","line":100,"range":{"start_line":100,"start_character":4,"end_line":100,"end_character":14},"updated":"2017-10-03 21:25:13.000000000","message":"I wonder if we should really have this, or if having deprecated_since is good enough. The problem being I\u0027ve often seen deprecation notes saying things like \"will be removed in Kilo\" still in our Queens cycle code.\n\nWhatever we end up with, I\u0027d like it to be as close to the oslo.config values as possible so things stay familiar and intuitive to developers.","commit_id":"c31fdb1df6580e62a491d20ec58ed1064a8c04b7"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"b9b103e73672e6d612cd602f4776509d62f96381","unresolved":false,"context_lines":[{"line_number":97,"context_line":"* ``deprecate_in_favor_of``: The policy to use instead of the deprecated one"},{"line_number":98,"context_line":"* ``deprecated_since``: The release in which the policy was officially"},{"line_number":99,"context_line":"  deprecated"},{"line_number":100,"context_line":"* ``removal_in``: The release in which the policy will be removed"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"This change will likely be limited to the oslo.policy library, specifically the"},{"line_number":103,"context_line":"``DocumentedRuleDefault`` object."}],"source_content_type":"text/x-rst","patch_set":4,"id":"7f515b1d_e554d723","line":100,"range":{"start_line":100,"start_character":4,"end_line":100,"end_character":14},"in_reply_to":"7f515b1d_06e5cf0a","updated":"2017-10-04 13:23:58.000000000","message":"Yeah - we run into the same problem unfortunately. It\u0027d be nice if there were a way to make deprecated things trip harder if being run in the cycle they are supposed to be removed in.\n\nI think the big thing this communicates to operators is when they can expect to see something different by default. That is essentially the timeline they have more making a decision. They either have to ensure they have specific roles in their deployment so the new default is useful, or copy/paste the old policy into their policy file and maintain if by hand.","commit_id":"c31fdb1df6580e62a491d20ec58ed1064a8c04b7"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"3ebd2d2d32b9f9dc763f85455e60a2c492e713ae","unresolved":false,"context_lines":[{"line_number":105,"context_line":"policy definitions or implementations. The following are the attributes that"},{"line_number":106,"context_line":"would be useful to expose to projects so they can improve policy:"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"* ``deprecated_for_removal``: This is a boolean values that denotes if the"},{"line_number":109,"context_line":"  policy is deprecated or not"},{"line_number":110,"context_line":"* ``deprecated_reason``: This is a string containing justification for the"},{"line_number":111,"context_line":"  removal or deprecation of the policy"},{"line_number":112,"context_line":"* ``deprecate_in_favor_of``: The policy to use instead of the deprecated one"},{"line_number":113,"context_line":"* ``deprecated_since``: The release in which the policy was officially"},{"line_number":114,"context_line":"  deprecated"},{"line_number":115,"context_line":"* ``removal_in``: The release in which the policy will be removed"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"These additional attributes should be very similar, if not the same as the"},{"line_number":118,"context_line":"deprecated functionality of oslo.config. This change will likely be limited to"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f515b1d_a77b1226","line":115,"range":{"start_line":108,"start_character":0,"end_line":115,"end_character":65},"updated":"2017-10-09 04:02:04.000000000","message":"can we just use three parameters to handle all the case like we did in the oslo.config  https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L941","commit_id":"b48bc77760f0e9d79aeb45818792f888faacab40"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"485d28cd0b049cf2d903560d76c7b8c7ee935d1c","unresolved":false,"context_lines":[{"line_number":105,"context_line":"policy definitions or implementations. The following are the attributes that"},{"line_number":106,"context_line":"would be useful to expose to projects so they can improve policy:"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"* ``deprecated_for_removal``: This is a boolean values that denotes if the"},{"line_number":109,"context_line":"  policy is deprecated or not"},{"line_number":110,"context_line":"* ``deprecated_reason``: This is a string containing justification for the"},{"line_number":111,"context_line":"  removal or deprecation of the policy"},{"line_number":112,"context_line":"* ``deprecate_in_favor_of``: The policy to use instead of the deprecated one"},{"line_number":113,"context_line":"* ``deprecated_since``: The release in which the policy was officially"},{"line_number":114,"context_line":"  deprecated"},{"line_number":115,"context_line":"* ``removal_in``: The release in which the policy will be removed"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"These additional attributes should be very similar, if not the same as the"},{"line_number":118,"context_line":"deprecated functionality of oslo.config. This change will likely be limited to"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f515b1d_64a61fc4","line":115,"range":{"start_line":108,"start_character":0,"end_line":115,"end_character":65},"in_reply_to":"7f515b1d_a77b1226","updated":"2017-10-09 18:39:48.000000000","message":"Done","commit_id":"b48bc77760f0e9d79aeb45818792f888faacab40"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"3ebd2d2d32b9f9dc763f85455e60a2c492e713ae","unresolved":false,"context_lines":[{"line_number":119,"context_line":"the oslo.policy library, specifically the ``DocumentedRuleDefault`` object."},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"Policies that are flagged for deprecation will emit log warnings similar to"},{"line_number":122,"context_line":"using a deprecated configuration option. Likewise, deprecated policies will be"},{"line_number":123,"context_line":"marked as such in generated sample policy files."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"Alternatives"},{"line_number":126,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7f515b1d_4790de43","line":123,"range":{"start_line":122,"start_character":42,"end_line":123,"end_character":48},"updated":"2017-10-09 04:02:04.000000000","message":"good point, this is useful for operator to know the deprecated stuff.","commit_id":"b48bc77760f0e9d79aeb45818792f888faacab40"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"600aeac7005ae04bce1227c3f061a4e6c585d8ff","unresolved":false,"context_lines":[{"line_number":52,"context_line":"   be renamed or removed so that APIs in my deployment aren\u0027t accidentally"},{"line_number":53,"context_line":"   unprotected or exposed in an insecure way"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Example 1"},{"line_number":56,"context_line":"^^^^^^^^^"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The policy, ``\"foo:create_bar\": \"role:fizz\"``, needs to change its policy value"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_a664a9ba","line":55,"updated":"2017-10-10 18:38:38.000000000","message":"great example, but I\u0027m not seeing anything in the proposal to address this. What\u0027s the plan here?\n\nWhat does a developer do to signal this change to an operator, as opposed to a deprecated_for_removal change? Does the operator have to do something before the change goes into effect, or is it immediate on upgrade (potentially breaking them if they didn\u0027t customize policy before the upgrade)?","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5933a18a6603e9048f5789d97ef280c1d9bb4e0a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"   be renamed or removed so that APIs in my deployment aren\u0027t accidentally"},{"line_number":53,"context_line":"   unprotected or exposed in an insecure way"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Example 1"},{"line_number":56,"context_line":"^^^^^^^^^"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The policy, ``\"foo:create_bar\": \"role:fizz\"``, needs to change its policy value"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_c2b888c9","line":55,"in_reply_to":"5f4e5783_49598558","updated":"2017-10-11 19:29:21.000000000","message":"I went back and looked at his comments, and they were based on the false assertion that oslo.config only has 3 kwargs for deprecation. It has many more than that. I\u0027m not suggesting we have all of those, but we will have to have more than 3 to make this work.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"63d560c155992ea122d587728e2ceedd43fc89c7","unresolved":false,"context_lines":[{"line_number":52,"context_line":"   be renamed or removed so that APIs in my deployment aren\u0027t accidentally"},{"line_number":53,"context_line":"   unprotected or exposed in an insecure way"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Example 1"},{"line_number":56,"context_line":"^^^^^^^^^"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The policy, ``\"foo:create_bar\": \"role:fizz\"``, needs to change its policy value"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_49598558","line":55,"in_reply_to":"5f4e5783_6924410e","updated":"2017-10-10 19:54:13.000000000","message":"This was in response to some comments gcb had (not having a super complex matrix of deprecated kwargs).","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ef0bbf90a90dbb49f0e825eb88a4dda923abbc4d","unresolved":false,"context_lines":[{"line_number":52,"context_line":"   be renamed or removed so that APIs in my deployment aren\u0027t accidentally"},{"line_number":53,"context_line":"   unprotected or exposed in an insecure way"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Example 1"},{"line_number":56,"context_line":"^^^^^^^^^"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The policy, ``\"foo:create_bar\": \"role:fizz\"``, needs to change its policy value"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_6924410e","line":55,"in_reply_to":"5f4e5783_8921bd50","updated":"2017-10-10 19:51:09.000000000","message":"deprecated_for_removal\u003dTrue isn\u0027t accurate. We\u0027re not removing anything.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"a5ed5d091c72c37ccfce7eb6fabd848984546c17","unresolved":false,"context_lines":[{"line_number":52,"context_line":"   be renamed or removed so that APIs in my deployment aren\u0027t accidentally"},{"line_number":53,"context_line":"   unprotected or exposed in an insecure way"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Example 1"},{"line_number":56,"context_line":"^^^^^^^^^"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"The policy, ``\"foo:create_bar\": \"role:fizz\"``, needs to change its policy value"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_8921bd50","line":55,"in_reply_to":"5f4e5783_a664a9ba","updated":"2017-10-10 19:36:36.000000000","message":"Good question. Let\u0027s say a developer wants to make this change over a release. So for queens they add:\n\n  policy.DocumentedRuleDefault(\n      name\u003d\u0027foo:create_bar\u0027,\n      check_str\u003d\u0027role:fizz\u0027,\n      description\u003d\u0027Create a bar.\u0027,\n      operations\u003d[{\u0027path\u0027: \u0027/v2/bars/\u0027, \u0027method\u0027: \u0027POST\u0027}],\n      deprecated_for_removal\u003dTrue,\n      deprecated_since\u003d\u0027Queens\u0027,\n      deprecated_reason\u003d(\n          \u0027The default value is changing to role:bang. \u0027\n          \u0027Either ensure role bang exists in your \u0027\n          \u0027deployment and is granted to necessary users \u0027\n          \u0027or copy/paste this policy into your policy file \u0027\n          \u0027and maintain it manually as an override. The \u0027\n          \u0027default value will change in Rocky.\u0027)\n  )\n\nThis should give the operator enough information in the logging output to know what to do (either copy/paste/maintain or ensure role bang exists in their deployment and is applied to the proper folks). Once Rocky opens for development, the developer can do:\n\n    policy.DocumentedRuleDefault(\n      name\u003d\u0027foo:create_bar\u0027,\n      check_str\u003d\u0027role:bang\u0027,\n      description\u003d\u0027Create a bar.\u0027,\n      operations\u003d[{\u0027path\u0027: \u0027/v2/bars/\u0027, \u0027method\u0027: \u0027POST\u0027}]\n  )","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"600aeac7005ae04bce1227c3f061a4e6c585d8ff","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Example 3"},{"line_number":84,"context_line":"^^^^^^^^^"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The policy, ``\"foo:bar\": \"role:bazz\"``, should be broken into:"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* ``\"foo:get_bar\": \"role:bazz\"``"},{"line_number":89,"context_line":"* ``\"foo:list_bars\": \"role:bazz\"``"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_46a2959c","line":86,"updated":"2017-10-10 18:38:38.000000000","message":"Great example. So is the proposal that the definition of each of these new rules would indicate that they replaced \"foo:bar\", and any override of \"foo:bar\" would take effect for all of them? That sounds good. It may be a little different in implementation from oslo.config, which I doubt can handle multiple new options all saying they replace the same thing.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5933a18a6603e9048f5789d97ef280c1d9bb4e0a","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Example 3"},{"line_number":84,"context_line":"^^^^^^^^^"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The policy, ``\"foo:bar\": \"role:bazz\"``, should be broken into:"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* ``\"foo:get_bar\": \"role:bazz\"``"},{"line_number":89,"context_line":"* ``\"foo:list_bars\": \"role:bazz\"``"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_22c75c48","line":86,"in_reply_to":"5f4e5783_2956492b","updated":"2017-10-11 19:29:21.000000000","message":"added comments there, but no, that implementation doesn\u0027t handle this example at all. Or example 2, either. You\u0027ll need more kwargs to make this work.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"a5ed5d091c72c37ccfce7eb6fabd848984546c17","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Example 3"},{"line_number":84,"context_line":"^^^^^^^^^"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The policy, ``\"foo:bar\": \"role:bazz\"``, should be broken into:"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* ``\"foo:get_bar\": \"role:bazz\"``"},{"line_number":89,"context_line":"* ``\"foo:list_bars\": \"role:bazz\"``"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_697a0125","line":86,"in_reply_to":"5f4e5783_46a2959c","updated":"2017-10-10 19:36:36.000000000","message":"Yeah - I think it\u0027s going to be cases like this where documenting the deprecation_reason is going to be super important. Because that\u0027s essentially the opportunity we have to explain what we\u0027re doing, why we\u0027re doing it, and when things won\u0027t be recognized anymore.\n\nThe trick with this one is that the operator needs to understand that if they override foo:bar today, they might want to apply that same override to all the new foo:*_bar[s] policies in the next release.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ef0bbf90a90dbb49f0e825eb88a4dda923abbc4d","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Example 3"},{"line_number":84,"context_line":"^^^^^^^^^"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The policy, ``\"foo:bar\": \"role:bazz\"``, should be broken into:"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* ``\"foo:get_bar\": \"role:bazz\"``"},{"line_number":89,"context_line":"* ``\"foo:list_bars\": \"role:bazz\"``"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_e9cb911b","line":86,"in_reply_to":"5f4e5783_697a0125","updated":"2017-10-10 19:51:09.000000000","message":"You didn\u0027t say otherwise, so I will assume you\u0027re going to make it work the way I described. If so, great.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"63d560c155992ea122d587728e2ceedd43fc89c7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"Example 3"},{"line_number":84,"context_line":"^^^^^^^^^"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"The policy, ``\"foo:bar\": \"role:bazz\"``, should be broken into:"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* ``\"foo:get_bar\": \"role:bazz\"``"},{"line_number":89,"context_line":"* ``\"foo:list_bars\": \"role:bazz\"``"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_2956492b","line":86,"in_reply_to":"5f4e5783_e9cb911b","updated":"2017-10-10 19:54:13.000000000","message":"The implementation is up for review if you want to double check - https://review.openstack.org/#/c/509909/","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"600aeac7005ae04bce1227c3f061a4e6c585d8ff","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Impact on Existing APIs"},{"line_number":137,"context_line":"-----------------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"The API for ``DocumentedRuleDefault`` or ``RuleDefault`` will be improved to"},{"line_number":140,"context_line":"support communicating deprecated policies."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_6b3f9ad6","line":139,"updated":"2017-10-10 18:38:38.000000000","message":"these aren\u0027t APIs in the sense that the spec format intends (REST)","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ef0bbf90a90dbb49f0e825eb88a4dda923abbc4d","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Impact on Existing APIs"},{"line_number":137,"context_line":"-----------------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"The API for ``DocumentedRuleDefault`` or ``RuleDefault`` will be improved to"},{"line_number":140,"context_line":"support communicating deprecated policies."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_a9eeb985","line":139,"in_reply_to":"5f4e5783_4963c5dd","updated":"2017-10-10 19:51:09.000000000","message":"yeah, oslo doesn\u0027t have any APIs. :) I would have just said \"None\" here, and left this bit about RuleDefault to the \"Proposed change\" and \"Work items\" sections, both of which already touch on this. But it\u0027s merged, so... nit.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"a5ed5d091c72c37ccfce7eb6fabd848984546c17","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Impact on Existing APIs"},{"line_number":137,"context_line":"-----------------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"The API for ``DocumentedRuleDefault`` or ``RuleDefault`` will be improved to"},{"line_number":140,"context_line":"support communicating deprecated policies."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_4963c5dd","line":139,"in_reply_to":"5f4e5783_6b3f9ad6","updated":"2017-10-10 19:36:36.000000000","message":"Sure - I guess I filled this out so that it was at least documented (by I\u0027m not sure oslo has many REST APIs, most of what they expose are objects for other projects to use as libraries). I figured it would be helpful to at least document it here. I\u0027m open to suggestions though.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"eeab10675c16fd537ee1619bba65a091243d8e6d","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Impact on Existing APIs"},{"line_number":137,"context_line":"-----------------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"The API for ``DocumentedRuleDefault`` or ``RuleDefault`` will be improved to"},{"line_number":140,"context_line":"support communicating deprecated policies."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"Security impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_624bea58","line":139,"in_reply_to":"5f4e5783_a9eeb985","updated":"2017-10-13 02:19:24.000000000","message":"we can update the spec in follow up if we have any concern :-)","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"600aeac7005ae04bce1227c3f061a4e6c585d8ff","unresolved":false,"context_lines":[{"line_number":197,"context_line":"Work Items"},{"line_number":198,"context_line":"----------"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Implement deprecated functionality in ``RuleDefault`` or"},{"line_number":201,"context_line":"  ``DocumentedRuleDefault`` objects"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_86564d06","line":200,"updated":"2017-10-10 18:38:38.000000000","message":"We created DocumentedRuleDefault because we wanted to add mandatory arguments without breaking everyone who had already written code against RuleDefault. We may want to do the same thing here.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ef0bbf90a90dbb49f0e825eb88a4dda923abbc4d","unresolved":false,"context_lines":[{"line_number":197,"context_line":"Work Items"},{"line_number":198,"context_line":"----------"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Implement deprecated functionality in ``RuleDefault`` or"},{"line_number":201,"context_line":"  ``DocumentedRuleDefault`` objects"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_4992a5f8","line":200,"in_reply_to":"5f4e5783_2947694e","updated":"2017-10-10 19:51:09.000000000","message":"oh, silly me, you\u0027re right of course... I was mixing this with other discussions about entirely different oslo.policy changes.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"63d560c155992ea122d587728e2ceedd43fc89c7","unresolved":false,"context_lines":[{"line_number":197,"context_line":"Work Items"},{"line_number":198,"context_line":"----------"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Implement deprecated functionality in ``RuleDefault`` or"},{"line_number":201,"context_line":"  ``DocumentedRuleDefault`` objects"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_89241dc8","line":200,"in_reply_to":"5f4e5783_4992a5f8","updated":"2017-10-10 19:54:13.000000000","message":"Yeah - I\u0027ve had a couple of those moments, too. Keeping all this straight is a chore!","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"a5ed5d091c72c37ccfce7eb6fabd848984546c17","unresolved":false,"context_lines":[{"line_number":197,"context_line":"Work Items"},{"line_number":198,"context_line":"----------"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Implement deprecated functionality in ``RuleDefault`` or"},{"line_number":201,"context_line":"  ``DocumentedRuleDefault`` objects"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Documentation Impact"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5f4e5783_2947694e","line":200,"in_reply_to":"5f4e5783_86564d06","updated":"2017-10-10 19:36:36.000000000","message":"I\u0027m not sure the deprecated kwargs should be mandatory. They should be available for both RuleDefault and DocumentedRuleDefault to use if needed, but so far I can\u0027t think of a case where it would be required by either of those objects.","commit_id":"4fffcfd4bcc3c1f7959c302eb87fc2d69a8aedc6"}]}
