<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Sourcery &#187; mysql</title>
	<atom:link href="http://www.opensourcery.co.za/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opensourcery.co.za</link>
	<description>Wizardry through open source</description>
	<lastBuildDate>Sat, 07 May 2011 18:41:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>MySQL Replication Client with SSL, gotcha</title>
		<link>http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/</link>
		<comments>http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 11:50:36 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[Bind DLZ on Rails]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PowerDNS on Rails]]></category>
		<category><![CDATA[powerdns]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.opensourcery.co.za/?p=80</guid>
		<description><![CDATA[As part of the PowerDNS on Rails project, and improving our own DNS infrastructure, I sat out today to configure 4 new DNS servers around the world. This will move a lot of our DNS traffic out of South Africa, (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>As part of the PowerDNS on Rails project, and improving our own DNS infrastructure, I sat out today to configure 4 new DNS servers around the world. This will move a lot of our DNS traffic out of South Africa, while keeping some servers locally on the main networks (Internet Solutions &amp; SAIX).</p>
<p>I rolled out MySQL replication with SSL enabled, you can Google for some good howto&#8217;s on the topic and I&#8217;ll give some posts below. Basically we have secure replication, and each DNS server is isolated in case of a disaster.</p>
<p><strong>The gotcha then?</strong></p>
<p>The MySQL docs, and some other howto&#8217;s indicate you should set the SSL client certificate details in your <em>my.cnf</em> file, under the <em>[client]</em> section. It makes sense, the slave is a client of the master. Appears not so with Gentoo&#8217;s mysql-5.0.60-r1 ebuild. It appears even less so with PowerDNS, who rightfully reads the <em>my.cnf</em> file as client.</p>
<p><strong>Cause and effect</strong></p>
<p>PowerDNS now tries to connect to the slave using the SSL details specified in the <em>[client]</em> section of the <em>my.cnf</em> file. This breaks, since you probably never configured your MySQL slave to have PowerDNS connect via SSL.</p>
<p>Secondly, it appears MySQL blatantly ignores the settings when used with replication, and you actually need to specify the client certificates in the <em>CHANGE MASTER TO</em> statement.</p>
<p><strong>Aftermath</strong></p>
<p>Nothing serious, was quick to piece together what was going on. Now I&#8217;ll have double digit DNS servers scattered around the globe near pearing point, with SSL encryption for the replication data. Brilliant, that really is resillient DNS!</p>
<p><strong>More reading</strong></p>
<ul>
<li>MySQL Manual &#8211; <a href="http://dev.mysql.com/doc/refman/5.0/en/secure-connections.html" target="_blank">Using SSL for secure connections</a></li>
<li>MySQL Manual &#8211; <a href="http://dev.mysql.com/doc/refman/5.0/en/replication-solutions-ssl.html" target="_blank">Setting up replication using SSL</a></li>
<li><a href="http://www.g-loaded.eu/2005/11/10/be-your-own-ca/" target="_blank">Be your own CA</a> &#8211; Not MySQL specific</li>
<li><a href="http://boilinglinux.blogspot.com/2008/05/mysql-replication-with-ssl.html" target="_self">MySQL Replication with SSL<br />
</a></li>
<li><a href="http://www.option-c.com/xwiki/MySQL_Replication_with_SSL" target="_blank">MySQL Replication with SSL</a></li>
</ul>
<p>Hope this prevents any future missery for someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2008/09/08/mysql-replication-client-with-ssl-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The real power of open-source</title>
		<link>http://www.opensourcery.co.za/2006/02/01/the-real-power-of-open-source/</link>
		<comments>http://www.opensourcery.co.za/2006/02/01/the-real-power-of-open-source/#comments</comments>
		<pubDate>Wed, 01 Feb 2006 12:27:00 +0000</pubDate>
		<dc:creator>Kenneth Kalmer</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[policyd]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://wordpress/2006/02/01/the-real-power-of-open-source/</guid>
		<description><![CDATA[My first post in a while, I have seriously neglected the whole blog&#8230; Back to business, this blog was conceptualized to focus on some of the real benefits of using open-source software in business. Not the kind of business that (&#8230;)</p><p><a href="http://www.opensourcery.co.za/2006/02/01/the-real-power-of-open-source/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>My first post in a while, I have seriously  neglected the whole blog&#8230;</p>
<p>Back to business, this blog was conceptualized to  focus on some of the real benefits of using open-source software in business. Not the kind of business that Novell and IBM try to make of open-source, but small businesses seeking to gain an advantage in a very competitive market space.</p>
<p>Today this power shined through dramatically again, through a little piece of software called <a href="http://policyd.sourceforge.net">policyd</a>. Policyd is a greylisting service built for <a href="http://www.postfix.org">Postfix</a> (the ever so popular MTA) and allows anyone with a mail server to implement greylisting, blacklisting, whitelisting and a host of other features in the fight against spam.</p>
<p>I needed to change the way policyd used the <a href="http://www.mysql.com">MySQL</a> backend, and in doing so it meant editing C code that I know nothing about. It turn out to be relatively easy when you apply common sense and all the knowledge you&#8217;ve gained from coding in interpreted languages all your life. So I need to be able to prefix the tables in the MySQL database used by policyd in order to prevent clashes with other mail-related software sharing the same database. It is scheduled for the next major release version, but I needed this feature today. So after skimming through some of the .c files I realized that this wouldn&#8217;t be a too big feat&#8230;</p>
<p>It took me an hour, more or less, to complete modify every single SQL statement in the code, add new configuration directives and create a patch that I submitted to the policyd-users list for testing. Currently I&#8217;m still testing as well, and everything looks 100%.</p>
<p>This allows me to actually adapt software in an hour to fit my needs. This is the real power of open source. Imagine the time and effort it would take to consult with the developers of proprietary software to get such a minor change done. Even if I push my rates per hour up 10 fold, it would not compare to the cost of getting proprietary software adapted quickly and easily.</p>
<p>And in the true spirit of open-source (blatantly ignoring any licenses) the patch is available on the list archive pages of the policyd-users mailing list at SourceForge. If you need it, grab it here: <a href="http://sourceforge.net/mailarchive/forum.php?thread_id=9613438&#038;forum_id=46105">http://sourceforge.net/mailarchive/forum.php?thread_id=9613438&amp;forum_id=46105</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opensourcery.co.za/2006/02/01/the-real-power-of-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 3/18 queries in 0.006 seconds using disk

Served from: www.opensourcery.co.za @ 2012-02-04 19:02:02 -->
