)]}'
{"barbican/api/controllers/versions.py":[{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"d595701841a7d412b07c40f124a7cba187520611","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            \u0027links\u0027: ["},{"line_number":60,"context_line":"                {"},{"line_number":61,"context_line":"                    \u0027rel\u0027: \u0027self\u0027,"},{"line_number":62,"context_line":"                    \u0027href\u0027: _get_versioned_url(CONF.host_href,"},{"line_number":63,"context_line":"                                               cls.version_string),"},{"line_number":64,"context_line":"                }, {"},{"line_number":65,"context_line":"                    \u0027rel\u0027: \u0027describedby\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_3632f6a7","line":62,"updated":"2016-02-02 01:25:21.000000000","message":"How this CONF.host_href will work in case if barbican has public and internal endpoints similar to other openstack services.\n\nIf there is always one hard-coded (predefined) endpoint, then it would not work if client is accessing barbican via public interface or via internal interface (different from load-balanced/VIP host_href setting).\n\nCurrent code derives this from request url so does not have this issue in version call.\n\nI believe same concern is there when constructing href (https://github.com/openstack/barbican/blob/master/barbican/common/utils.py#L58)","commit_id":"176afed8e17d54dc10d34c13be08347da69c4165"},{"author":{"_account_id":7973,"name":"Douglas Mendizábal","email":"dmendiza@redhat.com","username":"dougmendizabal"},"change_message_id":"e7e8521b99e54a8d1a8782cdc3c75977795ff992","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            \u0027links\u0027: ["},{"line_number":60,"context_line":"                {"},{"line_number":61,"context_line":"                    \u0027rel\u0027: \u0027self\u0027,"},{"line_number":62,"context_line":"                    \u0027href\u0027: _get_versioned_url(CONF.host_href,"},{"line_number":63,"context_line":"                                               cls.version_string),"},{"line_number":64,"context_line":"                }, {"},{"line_number":65,"context_line":"                    \u0027rel\u0027: \u0027describedby\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_a4cf8c54","line":62,"in_reply_to":"7a5de9d1_3632f6a7","updated":"2016-02-02 02:36:57.000000000","message":"I\u0027m not sure I understand why Barbican would have two different endpoints for the same deployment?\n\nWhy would you have two different interfaces to the same system?  Why have two sets of load balancers with different dns entries that point to the same api nodes running this controller, for example?\n\nIf you\u0027re talking about a separate admin endpoint, like Keystone v2 had where they ran on different ports, or potentially different hosts, then you should see Bug #1450277 where the separate Barbican endpoint was removed for the Liberty release.\n\nIn any case, as you pointed out in your github link, currently ll references generated by barbican use the href configured in the conf file.  This patch fixes the version controller so that it behaves consistently with the rest of the api.\n\nWithout this fix, the version resource shows an incorrect reference when using a single load balancer.\n\n[1] https://bugs.launchpad.net/barbican/+bug/1450277","commit_id":"176afed8e17d54dc10d34c13be08347da69c4165"},{"author":{"_account_id":1091,"name":"Arun Kant","email":"arukant@cisco.com","username":"arunkant-uws"},"change_message_id":"146bbe827903cc99d1ee1728fff433e34700395e","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            \u0027links\u0027: ["},{"line_number":60,"context_line":"                {"},{"line_number":61,"context_line":"                    \u0027rel\u0027: \u0027self\u0027,"},{"line_number":62,"context_line":"                    \u0027href\u0027: _get_versioned_url(CONF.host_href,"},{"line_number":63,"context_line":"                                               cls.version_string),"},{"line_number":64,"context_line":"                }, {"},{"line_number":65,"context_line":"                    \u0027rel\u0027: \u0027describedby\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_ca92aa9f","line":62,"in_reply_to":"7a5de9d1_a4cf8c54","updated":"2016-02-02 17:03:27.000000000","message":"I am not talking about admin endpoint at all (that has been removed for a while). \n\nIts only about public and internal endpoint. Public and internal endpoint are used by client depending from which network they are accessing the service. In a deployment, these different URL provides capability of having different network capabilities e.g. one can have TLS for public endpoint communication and for internal communication TLS may not be mandatory.\n\nPlease see keystone docs about this (link: http://docs.openstack.org/liberty/install-guide-ubuntu/keystone-services.html section Create the service entity and API endpoints¶  ) This highlight the same network capabilities. Here public network is not actual public internet, its more like intranet when deployed in an enterprise environment (external to cloud deployment and its management network).\n\nThe concern is that with this change, we are expanding the scope of this issue. We already have issues in hrefs construction as mentioned in earlier comment which we should look into addressing. Deployment do have different endpoints for barbican public and internal interfaces, so we need to have mechanism to support it.","commit_id":"176afed8e17d54dc10d34c13be08347da69c4165"}]}
