<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Patch for memcached on public network</title>
	<atom:link href="http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/feed/" rel="self" type="application/rss+xml" />
	<link>http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/</link>
	<description>For those who care about technical details</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:21:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Adrian Otto</title>
		<link>http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/comment-page-1/#comment-278</link>
		<dc:creator>Adrian Otto</dc:creator>
		<pubDate>Thu, 10 Feb 2011 19:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://adrianotto.com/?p=104#comment-278</guid>
		<description>oobx,

Yes, it can be modified that way. In fact this article pre-dates the sasl auth feature in memcached. For a key prefix, you will need something that&#039;s guaranteed to be unique, so be careful taking an approach like using a hash of the username. Also, you don&#039;t want your key prefix to be too long, and at the same time you don&#039;t want it to be too short, or it could be vulnerable to brute force attacks. The happy medium is probably in the 10 character range.

Keep in mind that having a little bit of cache is generally a LOT better than having no cache at all. I suggest having a separate memcached instance per application/developer, each running on a separate port on whatever server(s) you plan to run memcached on, and control each with sasl auth. Most web applications can see a significant benefit from having a cache in the 64 MB or smaller size range.

Keep in mind that if you use SASL on memcached, you are limited to using clients that support SASL (which means they must only use the binary protocol). The last time I looked there were only a small number of clients that implemented this support, so you will need to be sure that whatever client you plan to use supports these features.</description>
		<content:encoded><![CDATA[<p>oobx,</p>
<p>Yes, it can be modified that way. In fact this article pre-dates the sasl auth feature in memcached. For a key prefix, you will need something that&#8217;s guaranteed to be unique, so be careful taking an approach like using a hash of the username. Also, you don&#8217;t want your key prefix to be too long, and at the same time you don&#8217;t want it to be too short, or it could be vulnerable to brute force attacks. The happy medium is probably in the 10 character range.</p>
<p>Keep in mind that having a little bit of cache is generally a LOT better than having no cache at all. I suggest having a separate memcached instance per application/developer, each running on a separate port on whatever server(s) you plan to run memcached on, and control each with sasl auth. Most web applications can see a significant benefit from having a cache in the 64 MB or smaller size range.</p>
<p>Keep in mind that if you use SASL on memcached, you are limited to using clients that support SASL (which means they must only use the binary protocol). The last time I looked there were only a small number of clients that implemented this support, so you will need to be sure that whatever client you plan to use supports these features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oobx</title>
		<link>http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/comment-page-1/#comment-277</link>
		<dc:creator>oobx</dc:creator>
		<pubDate>Thu, 10 Feb 2011 18:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://adrianotto.com/?p=104#comment-277</guid>
		<description>Warning: I&#039;m new to memcached

I have hundreds of sites in a shared hosting configuration at a university.  It&#039;s a pretty decent setup, with several application front-ends.  Most developers here are trustworthy.  But, exploited code could endanger the memcache or expose the data it holds.  I&#039;d love to offer memcache to these developers.  It&#039;s just the security that holds me back.

Couldn&#039;t the server be modified to append some string to each key (store and retrieve request) in order to isolate user data, while allowing all of campus to access a vast bucket of memory?  It would be nice if memcached be provided with this identification prefix at startup.  Here are a few values that might be offered as prefix options:

sasl user name
first octect of the client&#039;s IP
first two octets, and so on

Of course, the flush and stats commands could be modified accordingly, also prepending these prefixes.</description>
		<content:encoded><![CDATA[<p>Warning: I&#8217;m new to memcached</p>
<p>I have hundreds of sites in a shared hosting configuration at a university.  It&#8217;s a pretty decent setup, with several application front-ends.  Most developers here are trustworthy.  But, exploited code could endanger the memcache or expose the data it holds.  I&#8217;d love to offer memcache to these developers.  It&#8217;s just the security that holds me back.</p>
<p>Couldn&#8217;t the server be modified to append some string to each key (store and retrieve request) in order to isolate user data, while allowing all of campus to access a vast bucket of memory?  It would be nice if memcached be provided with this identification prefix at startup.  Here are a few values that might be offered as prefix options:</p>
<p>sasl user name<br />
first octect of the client&#8217;s IP<br />
first two octets, and so on</p>
<p>Of course, the flush and stats commands could be modified accordingly, also prepending these prefixes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriele</title>
		<link>http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/comment-page-1/#comment-91</link>
		<dc:creator>gabriele</dc:creator>
		<pubDate>Wed, 31 Mar 2010 14:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://adrianotto.com/?p=104#comment-91</guid>
		<description>Thanks, I submitted a feature request on PECL
http://pecl.php.net/bugs/bug.php?id=17149</description>
		<content:encoded><![CDATA[<p>Thanks, I submitted a feature request on PECL<br />
<a href="http://pecl.php.net/bugs/bug.php?id=17149" rel="nofollow">http://pecl.php.net/bugs/bug.php?id=17149</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Otto</title>
		<link>http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/comment-page-1/#comment-90</link>
		<dc:creator>Adrian Otto</dc:creator>
		<pubDate>Wed, 31 Mar 2010 14:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://adrianotto.com/?p=104#comment-90</guid>
		<description>Gabriele,

Thanks for your great question/request. You&#039;re right that using the SASL support is the ideal way to solve the problem I had initially found when I produced this patch. There is more than one client library for PHP. The &lt;a href=&quot;http://pecl.php.net/package/memcache&quot; rel=&quot;nofollow&quot;&gt;Memcache&lt;/a&gt; library is not based on libmemcached but the &lt;a href=&quot;http://pecl.php.net/package/memcached&quot; rel=&quot;nofollow&quot;&gt;Memcached&lt;/a&gt; library is. As you noticed, neither implements the SASL features yet according to the &lt;a href=&quot;http://pecl.php.net/package-changelog.php?package=memcached&amp;release=1.0.1&quot; rel=&quot;nofollow&quot;&gt;v1.0.1 change log&lt;/a&gt;. It might be worth asking the &lt;a href=&quot;mailto:andrei@php.net&quot; rel=&quot;nofollow&quot;&gt;author&lt;/a&gt; if he has plans to add that.

Cheers,

Adrian</description>
		<content:encoded><![CDATA[<p>Gabriele,</p>
<p>Thanks for your great question/request. You&#8217;re right that using the SASL support is the ideal way to solve the problem I had initially found when I produced this patch. There is more than one client library for PHP. The <a href="http://pecl.php.net/package/memcache" rel="nofollow">Memcache</a> library is not based on libmemcached but the <a href="http://pecl.php.net/package/memcached" rel="nofollow">Memcached</a> library is. As you noticed, neither implements the SASL features yet according to the <a href="http://pecl.php.net/package-changelog.php?package=memcached&#038;release=1.0.1" rel="nofollow">v1.0.1 change log</a>. It might be worth asking the <a href="mailto:andrei@php.net" rel="nofollow">author</a> if he has plans to add that.</p>
<p>Cheers,</p>
<p>Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriele</title>
		<link>http://adrianotto.com/2009/08/patch-for-memcached-on-public-network/comment-page-1/#comment-89</link>
		<dc:creator>gabriele</dc:creator>
		<pubDate>Wed, 31 Mar 2010 09:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://adrianotto.com/?p=104#comment-89</guid>
		<description>Adrian, I&#039;m a Rackspace Cloud Sites customer. I read your posts on using memcached in the cloud. As you might be aware of, fairly recently memcached added support for SASL (Simple Authentication and Security Layer). That seems like a big of a deal for cloud environments like Rackspace Cloud, Amazon EC2 and the likes. Unfortunately, although the libmemcache C library was updated to support SASL, it doesn&#039;t seems that support has been extended to higher level languages wrappers such as PHP  PECL memcache. It would be greatly appreciated if you could provide more details on using memcached with SASL inside the Rackspace Cloud environment either on the blog or by email.

SASL Authentication for Memcached: http://bit.ly/btQZef</description>
		<content:encoded><![CDATA[<p>Adrian, I&#8217;m a Rackspace Cloud Sites customer. I read your posts on using memcached in the cloud. As you might be aware of, fairly recently memcached added support for SASL (Simple Authentication and Security Layer). That seems like a big of a deal for cloud environments like Rackspace Cloud, Amazon EC2 and the likes. Unfortunately, although the libmemcache C library was updated to support SASL, it doesn&#8217;t seems that support has been extended to higher level languages wrappers such as PHP  PECL memcache. It would be greatly appreciated if you could provide more details on using memcached with SASL inside the Rackspace Cloud environment either on the blog or by email.</p>
<p>SASL Authentication for Memcached: <a href="http://bit.ly/btQZef" rel="nofollow">http://bit.ly/btQZef</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 305/316 objects using disk: basic
Content Delivery Network via cdn.adrianotto.com

Served from: adrianotto.com @ 2012-02-05 12:49:32 -->
