<div dir="ltr">Hi, I believe that Barbican keystore for signing keys was discussed earlier.<div>I'm not sure if that's best idea since Barbican relies on Keystone authN/authZ.</div><div>That's why this mechanism should be considered rather as "out of band" to Keystone/OS API and is rather devops task.</div><div><br></div><div>regards,</div><div><br></div><div>Adam</div><div><br></div><div><br></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 8:11 AM, joehuang <span dir="ltr"><<a href="mailto:joehuang@huawei.com" target="_blank">joehuang@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="ZH-CN" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi, Lance,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">May we store the keys in Barbican, can the  key rotation be done upon Barbican? And if we use Barican as the repository, then it’s easier for Key
 distribution and rotation in multiple KeyStone deployment scenario, the database replication (sync. or async.) capability could be leveraged.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Best Regards<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Chaoyi Huang ( Joe Huang )</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Lance Bragstad [mailto:<a href="mailto:lbragstad@gmail.com" target="_blank">lbragstad@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, August 04, 2015 10:56 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<span class=""><br>
<b>Subject:</b> Re: [openstack-dev] [Keystone][Fernet] HA SQL backend for Fernet keys<u></u><u></u></span></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Aug 4, 2015 at 9:28 AM, Boris Bobrov <<a href="mailto:bbobrov@mirantis.com" target="_blank">bbobrov@mirantis.com</a>> wrote:<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><span lang="EN-US">On Tuesday 04 August 2015 08:06:21 Lance Bragstad wrote:<br>
> On Tue, Aug 4, 2015 at 1:37 AM, Boris Bobrov <<a href="mailto:bbobrov@mirantis.com" target="_blank">bbobrov@mirantis.com</a>> wrote:<br>
> > On Monday 03 August 2015 21:05:00 David Stanek wrote:<br>
> > > On Sat, Aug 1, 2015 at 8:03 PM, Boris Bobrov <<a href="mailto:bbobrov@mirantis.com" target="_blank">bbobrov@mirantis.com</a>><br>
> ><br>
> > wrote:<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">> > > > Also, come on, does
<a href="http://paste.openstack.org/show/406674/" target="_blank">http://paste.openstack.org/show/406674/</a> look<br>
> > > > overly<br>
> > > > complex? (it should be launched from Fuel master node).<br>
> > ><br>
> > > I'm reading this on a small phone, so I may have it wrong, but the<br>
> > > script<br>
> > ><br>
> > > appears to be broken.<br>
> > ><br>
> > ><br>
> > ><br>
> > > It will ssh to node-1 and rotate. In the simplest case this takes key<br>
> > > 0<br>
> ><br>
> > and<br>
> ><br>
> > > moves it to the next highest key number. Then a new key 0 is<br>
> > > generated.<br>
> > ><br>
> > ><br>
> > ><br>
> > > Later there is a loop that will again ssh into node-1 and run the<br>
> ><br>
> > rotation<br>
> ><br>
> > > script. If there is a limit set on the number of keys and you are at<br>
> > > that<br>
> > ><br>
> > > limit a key will be deleted. This extra rotation on node-1 means that<br>
> ><br>
> > it's<br>
> ><br>
> > > possible that it has a different set of keys than are on node-2 and<br>
> ><br>
> > node-3.<br>
> ><br>
> ><br>
> ><br>
> > You are absolutely right. Node-1 should be excluded from the loop.<br>
> ><br>
> ><br>
> ><br>
> > pinc also lacks "-c 1".<br>
> ><br>
> ><br>
> ><br>
> > I am sure that other issues can be found.<br>
> ><br>
> ><br>
> ><br>
> > In my excuse I want to say that I never ran the script and wrote it just<br>
> > to show how simple it should be. Thank for review though!<br>
> ><br>
> ><br>
> ><br>
> > I also hope that no one is going to use a script from a mailing list.<br>
> ><br>
> > > What's the issue with just a simple rsync of the directory?<br>
> ><br>
> > None I think. I just want to reuse the interface provided by<br>
> > keystone-manage.<br>
><br>
> You wanted to use the interface from keystone-manage to handle the actual<br>
> promotion of the staged key, right? This is why there were two<br>
> fernet_rotate commands issued?<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US">Right. Here is the fixed version (please don't use it anyway):<br>
<a href="http://paste.openstack.org/show/406862/" target="_blank">http://paste.openstack.org/show/406862/</a><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Note, this doesn't take into account the initial key repository creation, does it? <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Here is a similar version that relies on rsync for the distribution after the initial key rotation [0].<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">[0] <a href="http://cdn.pasteraw.com/d6odnvtt1u9zsw5mg4xetzgufy1mjua" target="_blank">
http://cdn.pasteraw.com/d6odnvtt1u9zsw5mg4xetzgufy1mjua</a> <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span lang="EN-US"><br>
<span style="color:#888888"><br>
--<br>
Best regards,<br>
Boris Bobrov</span><u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><u></u><u></u></span></p>
</div>
</div>
</blockquote>
</div></div></div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div>
</div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="color:rgb(136,136,136);font-size:12.8000001907349px">Adam Heczko</div><div style="color:rgb(136,136,136);font-size:12.8000001907349px">Security Engineer @ Mirantis Inc.</div></div></div>
</div>