<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Madhuri,
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 14, 2015, at 10:30 PM, Madhuri Rai <<a href="mailto:madhuri.rai07@gmail.com" class="">madhuri.rai07@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class=""><font size="2" color="003366" class="">Hi All,<br class="">
<br class="">
<font color="003366" class="">This is to bring the blueprint  </font><a href="https://blueprints.launchpad.net/magnum/+spec/secure-kubernetes" target="_blank" class="">secure-kubernetes</a><font color="003366" class=""> in di<font color="003366" class="">scussion.
 I have <font color="003366" class="">been trying to figure out <font color="003366" class="">
what could be the possible change <font color="003366" class="">area to support this feature in Magnum.</font></font></font></font></font></font> Below is just a rough idea on ho<font color="003366" class="">w to proceed further on it.</font><br class="">
<br class="">
<font color="003366" class="">Th<font color="003366" class="">is task can be further broken in smaller
<font color="003366" class="">pieces.</font></font></font><br class="">
<br class="">
<b class="">1. Add support for TLS in python-k8sclient.</b><br class="">
<div style="margin-left:40px" class=""><font size="2" color="003366" class="">The current auto-generated code doesn't support TLS. So this work will be to add TLS support in kubernetes python APIs.</font><br class="">
</div>
<font size="2" color="003366" class=""><br class="">
<b class="">2. Add support for Barbican in Magnum.</b><br class="">
</font>
<div style="margin-left:40px" class=""><font size="2" color="003366" class="">Barbican will be used to store all the keys and certificates.</font><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Keep in mind that not all clouds will support Barbican yet, so this approach could impair adoption of Magnum until Barbican is universally supported. It might be worth considering a solution that would generate all keys on the client, and copy them to the Bay
 master for communication with other Bay nodes. This is less secure than using Barbican, but would allow for use of Magnum before Barbican is adopted.</div>
<div><br class="">
</div>
<div>If both methods were supported, the Barbican method should be the default, and we should put warning messages in the config file so that when the administrator relaxes the setting to use the non-Barbican configuration he/she is made aware that it requires
 a less secure mode of operation.</div>
<div><br class="">
</div>
<div>My suggestion is to completely implement the Barbican support first, and follow up that implementation with a non-Barbican option as a second iteration for the feature.</div>
<div><br class="">
</div>
<div>Another possibility would be for Magnum to use its own private installation of Barbican in cases where it is not available in the service catalog. I dislike this option because it creates an operational burden for maintaining the private Barbican service,
 and additional complexities with securing it.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class=""><font size="2" color="003366" class=""><b class="">3. Add support of TLS in Magnum.</b><br class="">
</font>
<div style="margin-left:40px" class=""><font size="2" color="003366" class="">This work mainly involves supporting the use of key and certificates in magnum to support TLS.</font><br class="">
<font size="2" color="003366" class=""></font><br class="">
<font size="2" color="003366" class="">The user generates the keys, certificates and store them in Barbican. Now there is two way to access these keys while creating a bay.</font><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Rather than "the user generates the keys…", perhaps it might be better to word that as "the magnum client library code generates the keys for the user…”.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div style="margin-left:40px" class=""><font size="2" color="003366" class=""></font><font size="2" color="003366" class="">1. Heat will access Barbican directly.</font><br class="">
<font size="2" color="003366" class="">While creating bay, the user will provide this key and heat templates will fetch this key from Barbican.</font><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
I think you mean that Heat will use the Barbican key to fetch the TLS key for accessing the native API service running on the Bay.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div style="margin-left:40px" class=""><font size="2" color="003366" class="">2. Magnum-conductor access Barbican.</font><br class="">
<font size="2" color="003366" class="">While creating bay, the user will provide this key and then Magnum-conductor will fetch this key from Barbican and provide this key to heat.</font><br class="">
<font size="2" color="003366" class=""></font><br class="">
<font size="2" color="003366" class="">Then heat will copy this files on kubernetes master node. Then bay will use this key to start a Kubernetes services signed with these keys.</font><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Make sure that the Barbican keys used by Heat and magnum-conductor to store the various TLS certificates/keys are unique per tenant and per bay, and are not shared among multiple tenants. We don’t want it to ever be possible to trick Magnum into revealing secrets
 belonging to other tenants.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class=""><font size="2" color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""></font></font></font></font></div>
<font size="2" color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class="">After
<font color="003366" class="">discussion when we all come to same point, I will create
<font color="003366" class="">separate</font> blueprint<font color="003366" class="">s for each task.
<br class="">
</font></font>I am currently working on configuring Kubernetes <font color="003366" class="">
services with TLS <font color="003366" class="">keys.<br class="">
<br class="">
</font></font></font></font></font></font></font></font></div>
<font size="2" color="003366" class=""><font color="003366" class="">Please provide your suggest<font color="003366" class="">ions if any.</font></font><br class="">
</font></div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
Thanks for kicking off this discussion.</div>
<div><br class="">
</div>
<div>Regards,</div>
<div><br class="">
</div>
<div>Adrian</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class=""><font size="2" color="003366" class=""><br class="">
<br class="">
</font></div>
<font size="2" color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class=""><font color="003366" class="">Reg<font color="003366" class="">ar<font color="003366" class="">ds,<br class="">
</font></font></font></font></font></font></font></font></font></font></font></div>
<font size="2" color="003366" class=""><font color="003366" class="">Madhuri</font><br class="">
</font></div>
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>