)]}'
{"specs/juno/api-intercept-plugin.rst":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"fef7e9b2c5458c8eab0f258ecadee6eda4a19f8a","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Neutron without modifying the core and service plugins to be policy aware. This"},{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it before"},{"line_number":17,"context_line":"being sent to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_405870fa","line":17,"updated":"2014-07-09 15:54:36.000000000","message":"We should have both options (1) requests are passed along to the next plugin in the pipeline, (2) a plugin in the pipeline decides to terminate the pipeline for that particular request (so the framework does not forward the request to the core/service plugins as in this case).","commit_id":"69efd09c0e4ffee2ae169eb14d98b38f0fbfd346"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"fbe814accb04d77412ed1edba35994797a3da864","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Neutron without modifying the core and service plugins to be policy aware. This"},{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it before"},{"line_number":17,"context_line":"being sent to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_a3d14ccf","line":17,"in_reply_to":"baada198_405870fa","updated":"2014-07-09 20:44:36.000000000","message":"Sorry. I should have clarified a little better. It will only support option 2 for now. I will rewrite this portion.","commit_id":"69efd09c0e4ffee2ae169eb14d98b38f0fbfd346"},{"author":{"_account_id":3217,"name":"Ian Wells","username":"ijw-ubuntu"},"change_message_id":"d829d559a66cd604fdacdfcc300f6aea7f3420f9","unresolved":false,"context_lines":[{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it instead of"},{"line_number":17,"context_line":"being sent directly to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"},{"line_number":21,"context_line":"\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":"baada198_26f2aa9a","line":18,"updated":"2014-07-09 21:11:15.000000000","message":"You need to make a case for why you wouldn\u0027t just use WSGI middleware rather than adapting the actual Neutron code.  That\u0027s how policies, security etc. usually get implemented on web services, not by changing the application.","commit_id":"cc99964a3c13f351ce536023c385f95874710fa6"},{"author":{"_account_id":3217,"name":"Ian Wells","username":"ijw-ubuntu"},"change_message_id":"fb0d8bdbc2057b11080efcab2ec47beea9c8f4db","unresolved":false,"context_lines":[{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it instead of"},{"line_number":17,"context_line":"being sent directly to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"},{"line_number":21,"context_line":"\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":"baada198_7dffc801","line":18,"in_reply_to":"baada198_091bf91c","updated":"2014-07-10 01:27:21.000000000","message":"I quote from above:\n\n\u0027with an API intercept plugin that (if configured) will have all of the API requests routed through it\u0027\n\nNot to mention that the title is \u0027api-intercept-plugin\u0027.  Neutron API requests come in solely via the web interface from end users, surely?  If you\u0027re using a different definition of \u0027Neutron API\u0027 you might want to clarify what you\u0027re thinking of.\n\nAlso, it\u0027s not clear to me what RPC messages you can legitimately reject, or how rejected non-REST communication denials (which can be asynchronous with a request) can meaningfully be reflected back to a user.  \n\nFinally, have you got use cases?","commit_id":"cc99964a3c13f351ce536023c385f95874710fa6"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"562476896f191bfb52e431bc1a421c435849bffe","unresolved":false,"context_lines":[{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it instead of"},{"line_number":17,"context_line":"being sent directly to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"},{"line_number":21,"context_line":"\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":"baada198_091bf91c","line":18,"in_reply_to":"baada198_26f2aa9a","updated":"2014-07-09 21:27:19.000000000","message":"This wouldn\u0027t capture requests between the service and core plugins or requests from RPC messages.","commit_id":"cc99964a3c13f351ce536023c385f95874710fa6"},{"author":{"_account_id":3217,"name":"Ian Wells","username":"ijw-ubuntu"},"change_message_id":"eeb320ae6862387417af82a9ab3c230b47e88e0a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it instead of"},{"line_number":17,"context_line":"being sent directly to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"},{"line_number":21,"context_line":"\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":"baada198_e07faf64","line":18,"in_reply_to":"baada198_7d0508c1","updated":"2014-07-10 02:14:20.000000000","message":"Well, you didn\u0027t define it at all ;)  If you want it to be the lower level API then could you maybe make that clear?","commit_id":"cc99964a3c13f351ce536023c385f95874710fa6"},{"author":{"_account_id":3217,"name":"Ian Wells","username":"ijw-ubuntu"},"change_message_id":"cc3891a6745d59274704414730e644ec66d8d7c7","unresolved":false,"context_lines":[{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it instead of"},{"line_number":17,"context_line":"being sent directly to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"},{"line_number":21,"context_line":"\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":"baada198_7d4d0872","line":18,"in_reply_to":"baada198_7dffc801","updated":"2014-07-10 01:28:41.000000000","message":"(noting that your specific use case is very much an external API only one)","commit_id":"cc99964a3c13f351ce536023c385f95874710fa6"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"9d6ca35ddb776720e659529c8289995ff7838914","unresolved":false,"context_lines":[{"line_number":15,"context_line":"spec is to add an option to configure neutron with an API intercept plugin that"},{"line_number":16,"context_line":"(if configured) will have all of the API requests routed through it instead of"},{"line_number":17,"context_line":"being sent directly to the core and service plugins."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Problem description"},{"line_number":21,"context_line":"\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":"baada198_7d0508c1","line":18,"in_reply_to":"baada198_7dffc801","updated":"2014-07-10 01:40:54.000000000","message":"Sure, if your definition of API is restricted to the REST API. However, I would say anything that calls the core plugin methods via the neutron manager is using an API defined by the abstract base class. \n\nAs for RPC messages, it doesn\u0027t have to reject them to be useful.  It may convert the request into two requests (e.g. the original + an audit message).","commit_id":"cc99964a3c13f351ce536023c385f95874710fa6"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"e45346f468111c430628557b425f1092478bc5ac","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_1b92bb56","line":33,"updated":"2014-07-15 03:52:31.000000000","message":"can you explain with more details that why modifications is needed in this case? source address itself can be part of acl rules.\n\ninterception is not a good idea for it destroy the basic hierarchy structure. Today, we introduce a interception because of policy, tomorrow we may need another kind of interception because of other features. how can these interception layer co-exist and co-work?\n\nif we need some capability of debugging and logging, then we should consider a common framework across all project in openstack, including nova, neutron, cinder...But such kind of invasion into existing code for just introducing a optional addon feature(policy) is not acceptable.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"1c9e5247834e763ad6ae4b784d103a825dcff17c","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_ca24ba62","line":33,"in_reply_to":"baada198_14aed72f","updated":"2014-07-16 08:16:36.000000000","message":"\u003e The way for it to work the way you want is to make Neutron a private API\n\nNo. What I mean is that, if you \"really\" need some kind of high level policy enforcement, then atomic api should be carefully used/populated, but not to hook policy checking logic into low level api flow.\n\nAgain for the example Fwaas you gave: the problem is that it\u0027s obj model is not so good yet. Like SG, It will be better if Fwaas has defined \"who\" these ACL rules can be applied on. Also with progressing of DVR, in the future we may need to combine Fwaas with SG. Anyway, neutron core/service plugin itself need to be improved for these security api models, but not by relying on an external hook to do these things.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c75ddc10b36c3d3bd3e51505a492aafd380622c3","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_e69ace60","line":33,"in_reply_to":"baada198_1b92bb56","updated":"2014-07-15 04:53:16.000000000","message":"Source address is part of an ACL. However, a user may provide an ACL that violates this policy so the ACL needs to be rejected or modified automatically. \n\nThis is not just debugging and logging arbitrary data. This intercept plugin needs to actually understand the relationships between objects to know how combined objects might violate a connectivity policy. See the group policy work to see examples of this networking specific policy.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"29639baabd71f3753f9afd66fd02acf84955103b","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_74b47335","line":33,"in_reply_to":"baada198_1f043517","updated":"2014-07-16 07:02:49.000000000","message":"If the prerequisite is that: GBP is enabled and policy may conflict with atomic neutron api, indeed there is no need for original Neutron API exposed as user facing, this can be easily configured with Keystone by end user themselves.\n\nThe downside doesn\u0027t exist in fact: \n\n1) Horizon must be adapted when GBP is used, the goal of GBP is to provide to tenant a new abstract facing API instead low level object; \n\n2) policy is just high level notion, all GBP request can be mapped to existing neutron API itself(if not then neutron itself should be enhanced). If you think any combination of existing atomic neutron api can\u0027t meet the policy requirement, then original neutron modules needs built-in enhancement from ground up, but not just hook and hack it.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c72a78cbec2cd2b75c4b56fb62d712ac49e5eb04","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_e6b72e83","line":33,"in_reply_to":"baada198_2623e605","updated":"2014-07-15 05:19:17.000000000","message":"This interception layer is the upper layer that keeps it loosely coupled. It allows GBP to enforce policy on requests without being tied to a specific core plugin.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"d3eb79513d8707f46c0a0c509ce0a10c5317f05a","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_14aed72f","line":33,"in_reply_to":"baada198_74b47335","updated":"2014-07-16 07:27:08.000000000","message":"\u003e1) Horizon must be adapted when GBP is used, the goal of GBP is to provide to tenant a new abstract facing API instead low level object;\n\nThis is only partially correct. One of the other goals is to make sure the old API can be used with policy enforced. Again, if it were the way you suggest, there were be no reason for GBP to be in neutron at all.\n\n\u003eIf you think any combination of existing atomic neutron api can\u0027t meet the policy requirement, then original neutron modules needs built-in enhancement from ground up,\n\nThey can\u0027t. See my previous example regarding the restriction on the firewall rule. There is nothing to \u0027enhance from the ground up\u0027 in that case without making the plugins policy aware.\n\nThe way for it to work the way you want is to make Neutron a private API. Then we hope that nobody ever wants to do anything with RPC requests or requests between the core and service plugins and that users never want to use any existing tools for the Neutron API (unless we reimplement the entire neutron API in the policy software).","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7afa986e7f39cd3e5e456377596bea1f5c9c147c","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_1f043517","line":33,"in_reply_to":"baada198_7fbff160","updated":"2014-07-16 06:17:42.000000000","message":"So the fundamental difference is that you want Neutron to become an internal API only if policy is required rather than allowing a plugin in the neutron manager to enforce it.\n\nThere are two downsides to that approach. The first is that none of the user-facing Neutron clients can be used anymore (e.g. Horizon\u0027s neutron components) without completely replicating the Neutron API wherever the user-facing policy component is implemented. The second is that interactions between the Neutron core plugin, service plugins, and RPC agents cannot have any policy enforced on them.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"adaf3b92ddf7ea21e9f5f29644168a43a952b5e8","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_7fbff160","line":33,"in_reply_to":"baada198_849e3cb7","updated":"2014-07-16 06:09:43.000000000","message":"Ok, just focus on this simple example:\n\nIf we don\u0027t want a Fwaas rule take effect on a certain subnet, just insert a permit rule for this subnet, or doing silimar setting to let this FW rule bypass CIDR sip matching. Fwaas don\u0027t understand policy, it\u0027s the caller\u0027s responsibility. If we worry about destroying GBP policy, then low level Fwaas API should be hidden from normal tenants when GBP is enabled.\n\nCertainly Neutron plugin can\u0027t, neither should do any policy restriction check through hooks understanding semantic of upper layer: it\u0027s the business of upper layer itself, just leave neutron core as it be.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"380e4cef0f9eefcdca93de0cc79558cea39f3ac4","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_fec4e742","line":33,"in_reply_to":"baada198_90d67a26","updated":"2014-07-16 02:48:24.000000000","message":"The meta plugin was at a different layer. It was only the core plugin. ML2 mostly solved the replacement, except for all of the service plugins including L3 requests. ML2 didn\u0027t really solve the problem as nicely as you imply. Most of the drivers make no sense to combine together unless they handle completely orthogonal things (e.g. Vswitch vs ToR vs agent info).  \n\nPolicy absolutely must insert hooks into the core to prevent internal requests between the plugins from violating policy. This may imply denying calls, rewriting calls, making extra calls, or just logging. If an abstraction on top of neutron were adequate, there would be no need to do any GBP policy work in neutron to begin with. \n\nML2 will still exist and will be used so we will not be \"years before ML2\". We can start out here with a single plugin and then once someone has a good use case for attempting to service multiple intercept plugins we can address composition then.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"d7f9e04dca48dbe8a2bf19c959241bedbb374b70","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_efade5eb","line":33,"in_reply_to":"baada198_958488b2","updated":"2014-07-17 01:47:20.000000000","message":"question merged with line 94 comment, pls see below","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"914158e1a971a1254b91bcdfad6e617edb1831a0","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_849e3cb7","line":33,"in_reply_to":"baada198_b99c495f","updated":"2014-07-16 04:52:19.000000000","message":"The neutron plugin itself can\u0027t do the check because it doesn\u0027t understand policy restrictions. The neutron plugin\u0027s responsibility is taking port/network requests and configuring the data plane appropriately for connectivity. The same thing applies to the service plugins. They can\u0027t see the larger policy picture to do any enforcement themselves.\n\n\u003eHere is the core argument: it should happen in different layer.\n\nWhere? If done at the plugin level, we force every plugin (core and service) to become policy aware.\n\n\u003eIn this case, hooking patch can only make things more complex and out of control.\n\nExplain what you mean by \u0027out of control\u0027. Statements like that don\u0027t mean anything useful here. I could just as easily argue that the current object management request handling is \u0027out of control\u0027 and this patch is designed to provide a location to address that.\n\nThis is not making neutron any less distributed so I don\u0027t understand your distributed system designs arguments. This would just be a part of the existing neutron manager.\n\nRead the example we are commenting on. In order to restrict the source CIDR of a FwaaS rule being placed on a specific subnet, either the FwaaS plugin has to become policy aware or the neutron API has to be completely blocked and all requests for firewalls have to be delivered to a policy aware  API that will check it and then relay it to Neutron. The former violates separation of concerns and the latter requires a reimplementation of the entire neutron API in some policy service or the complete abandonment of a user-facing neutron API.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"ab0e12f2337845f1fad5619822a8defead4cebcd","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_f8ec11be","line":33,"in_reply_to":"baada198_c1e5b4dc","updated":"2014-07-15 15:59:16.000000000","message":"\u003ealthough the code is loosely coupled, but the api call flow is twisted.\n\nYou will have to explain what you mean by \u0027twisted\u0027 here.\n\n\u003ethe neutron manager is reconfigured to insert the intercept plugin \"AS THE HUB\" between REST layer/core plugin/service plugin.\n\nYes, that\u0027s correct. That\u0027s precisely what we are trying to do so it \u0027intercepts\u0027 all calls.\n\n\u003eIf, in the future someone want to implement a new feature which also need some kind of validation, he will also want to insert an intercept plugin as the hub. Then, how we coordinate these hubs?\n\nThere is only one loaded at a time just like the core plugin. If what the person wants to do can\u0027t be expressed via the group policy constructs, he/she could propose it as a patch to the group policy plugin or make a new plugin.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"931c0a1c179a921712b5b9ede093c5322b6d72a5","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_958488b2","line":33,"in_reply_to":"baada198_ca24ba62","updated":"2014-07-16 17:45:55.000000000","message":"\u003eLike SG, It will be better if Fwaas has defined \"who\" these ACL rules can be applied on.\n\nYou\u0027re missing the point. The problem is not that FWaaS is missing a field for who the ACL applies to. The problem is that there is no way to enforce constraints on what users put into these fields. The same issue applies to security groups.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"d562f50fcac3970651e4fa83dad721cabb714aae","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_2623e605","line":33,"in_reply_to":"baada198_e69ace60","updated":"2014-07-15 05:12:30.000000000","message":"I remember there is a long discussion list in May, about how BGP should interact with the neutron core. It seems that finally everyone agree these two should be loose coupled, with GBP as the upper layer on neutron core. I think that \"interception\" will destroy this principle, and this kind of invasive solution has not been reviewed since then. If any upper layer module can incur interception of bottom layer, the system will be out of control. \n\nIf we care about inconsistency, normal app admin should be prohibited to manipulate low level neutron obj when GBP service is enabled. However, customers has the freedom to determine the role assignment and right management, and it is their responsibility to maintain the consistency. We should not put any validation enforcement on the system.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"3ec47451874f334eebb6bdb2c1b2c0b612e79c00","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_c1e5b4dc","line":33,"in_reply_to":"baada198_e6b72e83","updated":"2014-07-15 05:59:31.000000000","message":"although the code is loosely coupled, but the api call flow is twisted. the neutron manager is reconfigured to insert the intercept plugin \"AS THE HUB\" between REST layer/core plugin/service plugin. \n\nIf, in the future someone want to implement a new feature which also need some kind of validation, he will also want to insert an intercept plugin as the hub. Then, how we coordinate these hubs?","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"db8f3f86ff951fb3c7346b6f06cd0f15de037778","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_90d67a26","line":33,"in_reply_to":"baada198_f8ec11be","updated":"2014-07-16 01:18:25.000000000","message":"\u003e There is only one loaded at a time just like the core plugin. If what the person wants to do can\u0027t be expressed via the group policy constructs, he/she could propose it as a patch to the group policy plugin or make a new plugin.\n\nThis is the problem: traditionally neutron is full of all kinds of core plugins based on certain backend, and they can\u0027t co-exist. Then meta-plugin came, it\u0027s just the same concept as \"interception\". However, ML2 depreciated it eventually. Now are we going to make GBP as another form of \"meta-plugin hub\"? \n\nNetworking policy is not part of neutron core baisc, but feature extension, and it should be totally on the top as the abstraction layer. It should not insert any \"hook\" back into  underlying infrastructure, acting as the new neutron core hub, which is what I meant \"twist\". Architecturally we should keep strict hierarchy structure, else if other feature extensions besides GBP insist that they also want to insert a hooking hub into neutron core, things will go back to years before ML2.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"da05eb8719b48b6aae1c81de7064bfa01fffd1b8","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"For example, there currently is no central place to enforce a policy that states"},{"line_number":32,"context_line":"that a firewall rule or security group rule permitting DB traffic cannot be"},{"line_number":33,"context_line":"installed unless the source address is restricted to a specific set of"},{"line_number":34,"context_line":"CIDRs. This would require modifications to the core plugin as well as the FWaaS"},{"line_number":35,"context_line":"service plugin. Even then, once the policy changes, there is nothing to trigger"},{"line_number":36,"context_line":"a cleanup or creation of resources without making the core plugin policy aware."}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_b99c495f","line":33,"in_reply_to":"baada198_fec4e742","updated":"2014-07-16 04:26:34.000000000","message":"\u003e Policy absolutely must insert hooks into the core to prevent internal requests between the plugins from violating policy.\n\nHere is the core argument: it should happen in different layer.\nGBP is just an option. So even without GBP, all neutron modules should do their own service consistency check, which is mandatory in a typical SOA system. If we found something is lost, just correct and complement it, but not avoid and detour  to other ways.\n\nNeutron core/service plugin provider atomic service, and GBP as the composition layer. Take the example of security, neutron can receive request of SG/Fwaas, which may be activated directly by end user, or by a GBP abstraction, or both. Without GBP we can also simulate a GBP use case by doing multiple service request manually one by one. So it\u0027s the responsibility of neutron plugin itself to do the check.\n\nIf we say that some conflicts resolving can\u0027t be done at the low level,  it must have been the trade-off for large distributed system design. In this case, hooking patch can only make things more complex and out of control. It\u0027s beyond the scope of pure technology solution: for normal end user a higher level entry point like GBP/Heat/Congress/UI portal is enforced, low level atomic is only open to professional administrator.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"d776571eb95f94e286f7fbd20c25fc76b9c3d5fc","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Additionally, modifications to place policy in front of the external API have"},{"line_number":39,"context_line":"no effect on calls between the core and service plugins, which may be necessary"},{"line_number":40,"context_line":"to audit actions for certain objects (e.g. creating ports) regardless of where"},{"line_number":41,"context_line":"are started from."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Proposed change"},{"line_number":44,"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":"baada198_d8c0377e","line":41,"updated":"2014-07-15 13:05:46.000000000","message":"are -\u003e they are","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"ab0e12f2337845f1fad5619822a8defead4cebcd","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Additionally, modifications to place policy in front of the external API have"},{"line_number":39,"context_line":"no effect on calls between the core and service plugins, which may be necessary"},{"line_number":40,"context_line":"to audit actions for certain objects (e.g. creating ports) regardless of where"},{"line_number":41,"context_line":"are started from."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"Proposed change"},{"line_number":44,"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":"baada198_b839b941","line":41,"in_reply_to":"baada198_d8c0377e","updated":"2014-07-15 15:59:16.000000000","message":"Thanks, I\u0027ll get this in the next revision.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"ab333661a7d94af09da16ff0dd4f00eef32f22ca","unresolved":false,"context_lines":[{"line_number":48,"context_line":"configured intercept plugin will receive any API requests to the core and"},{"line_number":49,"context_line":"service plugins via the neutron manager. It will then be able to enforce"},{"line_number":50,"context_line":"policies on those requests before delegating them to the core and service"},{"line_number":51,"context_line":"plugins. It may drop certain calls or make additional calls to other components"},{"line_number":52,"context_line":"of Neutron as required."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"This approach allows a separation of concerns by making the core and service"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_5e8e212f","line":51,"updated":"2014-07-12 07:44:12.000000000","message":"So, in order to do that, such generic plugin should be extensible with some service or policy-specific logic.\n\nWhat would it be? Drivers? Generic policy template?","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c75ddc10b36c3d3bd3e51505a492aafd380622c3","unresolved":false,"context_lines":[{"line_number":48,"context_line":"configured intercept plugin will receive any API requests to the core and"},{"line_number":49,"context_line":"service plugins via the neutron manager. It will then be able to enforce"},{"line_number":50,"context_line":"policies on those requests before delegating them to the core and service"},{"line_number":51,"context_line":"plugins. It may drop certain calls or make additional calls to other components"},{"line_number":52,"context_line":"of Neutron as required."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"This approach allows a separation of concerns by making the core and service"}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_c6806af9","line":51,"in_reply_to":"baada198_5e8e212f","updated":"2014-07-15 04:53:16.000000000","message":"I think a driver to start out. This is targeted towards the group policy plugin so it would be loaded here without having to replace the core plugin.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"ab333661a7d94af09da16ff0dd4f00eef32f22ca","unresolved":false,"context_lines":[{"line_number":91,"context_line":"be added to provide an example and something to use for unit testing."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Overall, this should require a relatively minor change to the neutron manager"},{"line_number":94,"context_line":"to reconfigure the core/service plugin references to point to the API"},{"line_number":95,"context_line":"intercept plugin and pass the original references to the API intercept plugin."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_be957d41","line":94,"updated":"2014-07-12 07:44:12.000000000","message":"Should not be such plugin embedded at REST layer (api/v2/base.py) along with policy check?\nOr even as an extension of policy check?","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":12051,"name":"loy","email":"loywolfe@gmail.com"},"change_message_id":"d7f9e04dca48dbe8a2bf19c959241bedbb374b70","unresolved":false,"context_lines":[{"line_number":91,"context_line":"be added to provide an example and something to use for unit testing."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Overall, this should require a relatively minor change to the neutron manager"},{"line_number":94,"context_line":"to reconfigure the core/service plugin references to point to the API"},{"line_number":95,"context_line":"intercept plugin and pass the original references to the API intercept plugin."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_ef496533","line":94,"in_reply_to":"baada198_a6945637","updated":"2014-07-17 01:47:20.000000000","message":"Can you give an example in today\u0027s openstack deployment, about policy constrains not invoked by user facing request, but between neutron core and service plugins, in such a granularity that some fields need to be free from acl rule?","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8510cd2313c7f85634243e480d6e6b0da431b369","unresolved":false,"context_lines":[{"line_number":91,"context_line":"be added to provide an example and something to use for unit testing."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Overall, this should require a relatively minor change to the neutron manager"},{"line_number":94,"context_line":"to reconfigure the core/service plugin references to point to the API"},{"line_number":95,"context_line":"intercept plugin and pass the original references to the API intercept plugin."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_fb7040a6","line":94,"in_reply_to":"baada198_a6945637","updated":"2014-07-17 06:52:18.000000000","message":"Why inter-plugin calls should be a subject for policy check?","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c75ddc10b36c3d3bd3e51505a492aafd380622c3","unresolved":false,"context_lines":[{"line_number":91,"context_line":"be added to provide an example and something to use for unit testing."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Overall, this should require a relatively minor change to the neutron manager"},{"line_number":94,"context_line":"to reconfigure the core/service plugin references to point to the API"},{"line_number":95,"context_line":"intercept plugin and pass the original references to the API intercept plugin."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"baada198_a6945637","line":94,"in_reply_to":"baada198_be957d41","updated":"2014-07-15 04:53:16.000000000","message":"The problem putting it here is that it can\u0027t intervene in requests between core and service plugins if required. In this first iteration, it will probably be implemented as a modification to the neutron manager.","commit_id":"7c0615a2a98f42644453fce1c4e14458eae02b2e"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e1daf58e98f4af6261efe956c553d4b014d40b76","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Overall, this should require a relatively minor change to the neutron manager"},{"line_number":105,"context_line":"to reconfigure the core/service plugin references to point to the API intercept"},{"line_number":106,"context_line":"plugin and pass the original references to the API intercept plugin."},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_5aac6688","line":106,"updated":"2014-07-19 23:12:34.000000000","message":"Is the intercept plugin required to have functions implementing all operations of all APIs that get intercepted (similar to existing core and service plugin classes)? Or would it have a dynamic interface that can handle any operation signature? I think the dynamic interface would make more sense for this.\n\nAlso, a bit more detail on what exactly intercept plugins can do would be helpful. Presumably, they can allow requests through as-is, or reject them with an exception. Are there other options? Can they modify input or output data? Can they implement the operation themselves without letting it through to the core or service plugin?\n\nCan multiple intercept plugins be configured in a chain? If so, would it make sense to eventually use these for things like notifications, quota enforcement, API access control, etc. that are currently hard-wired into the WSGI controller class?\n\nFinally, how does this relate to the WSGI refactoring/replacement work that Mark McClain is doing? It seems to me that a well defined interface between the new WSGI front-end and the core and service plugins might provide this intercept facility directly. Basically, requests arriving via WSGI would be dispatched to a configured chain of interceptors, the last of which would be/call the core/service plugin.","commit_id":"3d9c551b1a48b4535db04cc80bd2e7bb75b66ed3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"123475284e49e8644f5501e52132d18062df3b1a","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Overall, this should require a relatively minor change to the neutron manager"},{"line_number":105,"context_line":"to reconfigure the core/service plugin references to point to the API intercept"},{"line_number":106,"context_line":"plugin and pass the original references to the API intercept plugin."},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_30e271d5","line":106,"in_reply_to":"baada198_5aac6688","updated":"2014-07-20 06:03:56.000000000","message":"I will add a little more detail of how the intercept will work for this implementation. \n\nFor this first iteration chaining won\u0027t be allowed. Especially since some of the API refactoring work that Mark is working on will probably include that functionality.","commit_id":"3d9c551b1a48b4535db04cc80bd2e7bb75b66ed3"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e1daf58e98f4af6261efe956c553d4b014d40b76","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"* Modify neutron manager to make API intercept plugin get all API calls"},{"line_number":189,"context_line":"* Add dummy and logging plugin for unit tests and example"},{"line_number":190,"context_line":"* Modify group policy plugin to work as an API intercept plugin"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"Dependencies"},{"line_number":193,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_dac31656","line":190,"updated":"2014-07-19 23:12:34.000000000","message":"I\u0027m not sure the group policy plugin itself would become an intercept plugin, but it would need to provide an intercept plugin that works in conjunction with it. I\u0027d think GP API requests still need to be implemented in an actual service plugin, and these requests would be subject to interception themselves. Am I off track?","commit_id":"3d9c551b1a48b4535db04cc80bd2e7bb75b66ed3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"123475284e49e8644f5501e52132d18062df3b1a","unresolved":false,"context_lines":[{"line_number":187,"context_line":""},{"line_number":188,"context_line":"* Modify neutron manager to make API intercept plugin get all API calls"},{"line_number":189,"context_line":"* Add dummy and logging plugin for unit tests and example"},{"line_number":190,"context_line":"* Modify group policy plugin to work as an API intercept plugin"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"Dependencies"},{"line_number":193,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"baada198_70dea93f","line":190,"in_reply_to":"baada198_dac31656","updated":"2014-07-20 06:03:56.000000000","message":"That might be the case. I wasn\u0027t sure of the exact integration yet with the GP work so I will make this work item more generic.","commit_id":"3d9c551b1a48b4535db04cc80bd2e7bb75b66ed3"}]}
