<div><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt">Hi Lance:</span></p><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt">We may try cache or other setting to test fernet token in future.</span></p><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt"> </span></p><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt">Mentioned the uuid as default token, it must remind there have a big reason to solve uuid performance issue, with the implement of <span class="term-highlighted" style="background-color:rgba(251,246,167,0.498039)">pki</span>token.</span></p><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt"> </span></p><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt">Openstack API using restful protocol, which built on top of Http, but these API can be re-encapsulated by the Web Console to protect the Token from internet. The deployment of the environment is higher security than the Web application which exposed on internet.</span></p><p class="MsoNormal gmail_msg" style="color:rgb(49,49,49);word-spacing:1px"><span lang="EN-US" class="gmail_msg" style="font-size:10pt">Therefore, the risk of leakage of Token is lower than Web Application, and the risk of Token leakage due to <span class="term-highlighted" style="background-color:rgba(251,246,167,0.498039)">PKI</span> Token revocation delay can be reduced by corresponding security measures.</span></p><div class="gmail_quote"><div>Lance Bragstad <<a href="mailto:lbragstad@gmail.com">lbragstad@gmail.com</a>>于2017年2月15日 周三下午11:08写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">In addition to what David said, have you played around with caching in keystone [0]? After the initial implementation of fernet landed, we attempted to make it the default token provider. We ended up reverting the default back to uuid because we hit several issues. Around the Liberty and Mitaka timeframe, we reworked the caching implementation to fix those issues and improve overall performance of all token formats, especially fernet.<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">We have a few different performance perspectives available, too. Some were run nearly 2 years ago [1] and some are run today [2]. Since the Newton release, we've made drastic improvements to the overall structure of the token provider [3] [4] [5]. At the very least, it should make understanding keystone's approach to tokens easier. Maintaining out-of-tree token providers should also be easier since we cleaned up a lot of the interfaces that affect developers maintaining their own providers.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">We can try and set something up at the PTG. We are getting pretty tight for time slots, but I'm sure we can find some time to work through the issues you're seeing (also, feel free to hop into #openstack-keystone on freenode if you want to visit prior to the PTG).<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">[0] <a href="https://docs.openstack.org/developer/keystone/configuration.html#caching-layer" class="gmail_msg" target="_blank">https://docs.openstack.org/developer/keystone/configuration.html#caching-layer</a></div></div><div class="gmail_msg">[1] <a href="http://dolphm.com/benchmarking-openstack-keystone-token-formats/" class="gmail_msg" target="_blank">http://dolphm.com/benchmarking-openstack-keystone-token-formats/</a></div><div class="gmail_msg">[2] <a href="https://github.com/lbragstad/keystone-performance" class="gmail_msg" target="_blank">https://github.com/lbragstad/keystone-performance</a></div><div class="gmail_msg">[3] <a href="https://review.openstack.org/#/q/status:merged+project:openstack/keystone+branch:master+topic:make-fernet-default" class="gmail_msg" target="_blank">https://review.openstack.org/#/q/status:merged+project:openstack/keystone+branch:master+topic:make-fernet-default</a></div><div class="gmail_msg">[4] <a href="https://review.openstack.org/#/q/status:merged+project:openstack/keystone+branch:master+topic:cleanup-token-provider" class="gmail_msg" target="_blank">https://review.openstack.org/#/q/status:merged+project:openstack/keystone+branch:master+topic:cleanup-token-provider</a></div><div class="gmail_msg">[5] <a href="http://specs.openstack.org/openstack/keystone-specs/specs/keystone/ocata/token-provider-cleanup.html" class="gmail_msg" target="_blank">http://specs.openstack.org/openstack/keystone-specs/specs/keystone/ocata/token-provider-cleanup.html</a></div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Feb 15, 2017 at 8:44 AM, David Stanek <span class="gmail_msg"><<a href="mailto:dstanek@dstanek.com" class="gmail_msg" target="_blank">dstanek@dstanek.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="gmail_msg">On 15-Feb 18:16, 王玺源 wrote:<br class="gmail_msg">
> Hello everyone,<br class="gmail_msg">
>   PKI/PKIZ token has been removed from keystone in Ocata. But recently our<br class="gmail_msg">
> production team did some test about PKI and Fernet token (With Keystone<br class="gmail_msg">
> Mitaka). They found that in large-scale production environment, Fernet<br class="gmail_msg">
> token's performance is not as good as PKI. Here is the test data:<br class="gmail_msg">
><br class="gmail_msg">
> <a href="https://docs.google.com/document/d/12cL9bq9EARjZw9IS3YxVmYsGfdauM25NzZcdzPE0fvY/edit?usp=sharing" rel="noreferrer" class="gmail_msg" target="_blank">https://docs.google.com/document/d/12cL9bq9EARjZw9IS3YxVmYsGfdauM25NzZcdzPE0fvY/edit?usp=sharing</a><br class="gmail_msg">
<br class="gmail_msg">
</span>This is nice to see. Thanks.<br class="gmail_msg">
<span class="gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
><br class="gmail_msg">
> From the data, we can see that:<br class="gmail_msg">
> 1. In large-scale concurrency test, PKI is much faster than Fernet.<br class="gmail_msg">
> 2. PKI token revoke can't immediately make the token invalid. So it has the<br class="gmail_msg">
> revoke issue.  <a href="https://wiki.openstack.org/wiki/OSSN/OSSN-0062" rel="noreferrer" class="gmail_msg" target="_blank">https://wiki.openstack.org/wiki/OSSN/OSSN-0062</a><br class="gmail_msg">
><br class="gmail_msg">
> But in our production team's opinion, the revoke issue is a small problem,<br class="gmail_msg">
> and can be avoided by some periphery ways. (More detail solution could be<br class="gmail_msg">
> explained by them in the follow email).<br class="gmail_msg">
> They think that the performance issue is the most important thing. Maybe<br class="gmail_msg">
> you can see that in some production environment, performance is the first<br class="gmail_msg">
> thing to be considered.<br class="gmail_msg">
<br class="gmail_msg">
</span>I'd like to hear solutions to this if you have already come up with<br class="gmail_msg">
them. This issue, however, isn't the only one that led us to remove PKI<br class="gmail_msg">
tokens.<br class="gmail_msg">
<span class="gmail_msg"><br class="gmail_msg">
><br class="gmail_msg">
> So here I'd like to ask you, especially the keystone experts:<br class="gmail_msg">
> 1. Is there any chance to bring PKI/PKIZ back to Keystone?<br class="gmail_msg">
<br class="gmail_msg">
</span>I would guess that, at least in the immediate future, we would not want<br class="gmail_msg">
to put it back into keystone until someone can fix the issues. Also<br class="gmail_msg">
ideally running the token provider in production.<br class="gmail_msg">
<span class="gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
> 2. Has Fernet token improved the performance during these releases? Or any<br class="gmail_msg">
> road map so that we can make sure Fernet is better than PKI in all side.<br class="gmail_msg">
> Otherwise, I don't think that remove PKI in Ocata is the right way. Or<br class="gmail_msg">
> even, we can keep the PKI token in Keystone for more one or two cycles,<br class="gmail_msg">
> then remove it once Fernet is stable enough.<br class="gmail_msg">
> 3. Since I'll be in Atalanta next week, if it is possible, I'd like to<br class="gmail_msg">
> bring this topic to Keystone PTG. can I?<br class="gmail_msg">
<br class="gmail_msg">
</span>Sure. We have a pretty packed calendar, but I'm sure you could steal a<br class="gmail_msg">
few minutes somewhere.<br class="gmail_msg">
<span class="gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
><br class="gmail_msg">
> It is a real production problem and I really need your feedback.<br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
</span>Have you tried playing with the crypt_strength[1]? If the slowness is<br class="gmail_msg">
the crypto (which it was in the past) then you can tune it a little bit.<br class="gmail_msg">
Another option might be to keep the same token flow and find a faster<br class="gmail_msg">
method for hashing a token.<br class="gmail_msg">
<br class="gmail_msg">
1. <a href="http://git.openstack.org/cgit/openstack/keystone/tree/etc/keystone.conf.sample#n67" rel="noreferrer" class="gmail_msg" target="_blank">http://git.openstack.org/cgit/openstack/keystone/tree/etc/keystone.conf.sample#n67</a><br class="gmail_msg">
<span class="m_588920257462773551HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
david stanek<br class="gmail_msg">
web: <a href="https://dstanek.com" rel="noreferrer" class="gmail_msg" target="_blank">https://dstanek.com</a><br class="gmail_msg">
twitter: <a href="https://twitter.com/dstanek" rel="noreferrer" class="gmail_msg" target="_blank">https://twitter.com/dstanek</a><br class="gmail_msg">
<br class="gmail_msg">
__________________________________________________________________________<br class="gmail_msg">
OpenStack Development Mailing List (not for usage questions)<br class="gmail_msg">
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" class="gmail_msg" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br class="gmail_msg">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="gmail_msg">
</font></span></blockquote></div><br class="gmail_msg"></div>
__________________________________________________________________________<br class="gmail_msg">
OpenStack Development Mailing List (not for usage questions)<br class="gmail_msg">
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" class="gmail_msg" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br class="gmail_msg">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="gmail_msg">
</blockquote></div></div>