Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Why we moved our servers to Iceland (outstanding!)
simple analytics ^ | Adriaan van Rossum | 30mar19

Posted on 03/30/2019 4:18:15 AM PDT by vannrox

This is an amazing post of how an American company needed to move their operations outside of the USA in order to prove fourth amendment protections to their American clients. Read, learn and cry at what is left of our once great republic.

Why we moved our servers to Iceland

30 Mar 2019 - Adriaan van Rossum - Help improve this post

As the founder of Simple Analytics, I have always been mindful for the need of trust and transparency for our customers. We would like to be held accountable for our customers needs, so they can sleep in peace. The choices we make has to be optimal, in terms of privacy, for the visitors and our customers. One of the crucial choices to consider was, choosing the location of our servers.

Join the discussion on Hacker News

In the last few months, we moved our servers gradually to Iceland. In this blog post, I’d like to explain how we’ve achieved that, and most importantly, why. It wasn’t an easy process and I would like to share our learnings. There are some technical parts in this article which I’ve tried to write in an understandable way, but forgive me if it’s too technical.

Why moving our servers?

It all started with our website being added to EasyList. It’s a list with domain names which are used by popular ad-blockers. I asked why Simple Analytics was added because we don’t track visitors of our customers’ websites. We even respect the “Do Not Track” settings in the browser.

So I replied the following to the Pull Request on GitHub:

[…] So if we keep blocking the companies that do good, and respect the privacy of the users, what kind of sign is it to just block those companies? I think it’s wrong and we shouldn’t put every company on the list just because they are sending a request. […]

I got a reply to my comment from @cassowary714:

Everyone says what you are saying, but I don’t want to see my requests sent to a US company (in your case, Digital Ocean […]

I didn’t like this reply at first, but after sharing it with my community, people pointed it out to me that he indeed was correct about the fact the US government is able to access the data of our users. At that time, our servers were indeed running on Digital Ocean and they could pull out our drive and read our data.

The solution is somewhat technical so bear with me. You can make a stolen drive (or detached for whatever reason) unusable for others. This can be solved by encrypting the data on the drive which makes it very difficult to read the data for people without the encryption key (Note: only Simple Analytics has this key). It would still be possible to get little parts of the data by physically reading out the memory of the server. Memory is easy explained as a type of a drive, which is small but super fast which allows the processor of the server to run efficiently. A server does not function without memory so we kind of need to trust the hosting provider.

This challenged me to think where to move our servers.

Our next location

I started with some basic searches and I found a Wikipedia page on Internet censorship and surveillance by country. It contains a list of “Enemies of the Internet” by the Reporters without Borders, a Paris-based international non-governmental organization that advocates freedom of the press, which classifies a country as an enemy of the internet when “all of these countries mark themselves out not just for their capacity to censor news and information online but also for their almost systematic repression of Internet users.”

Apart from this list, there is an alliance called Five Eyes a.k.a. FVEY. It’s an alliance of Australia, Canada, New Zealand, the United Kingdom, and the United States. In recent years, documents have shown that they are intentionally spying on one another’s citizens and sharing the collected information with each other in order to circumvent restrictive domestic regulations on spying (sources). The former NSA contractor Edward Snowden, described the FVEY as a “supra-national intelligence organization that doesn’t answer to the laws of its own countries.” There are other countries working together with the FVEY in other international cooperatives including Denmark, France, the Netherlands, Norway, Belgium, Germany, Italy, Spain, and Sweden (so-called 14 Eyes). I couldn’t find evidence of the 14 Eyes alliance abusing their combined intelligence.

At this point, we were pretty sure not to use any of the listed countries from the “Enemies of the Internet” list and just to be sure to skip the countries on the 14 Eyes alliance list. For Simple Analytics, this gave enough reason to avoid those countries for storing the data of our customers.

The Wikipedia page earlier mentioned reads the following for Iceland:

Censorship is prohibited by the Icelandic Constitution and there is a strong tradition of protecting freedom of expression that extends to the use of the Internet. […]

Iceland

While researching the best country, privacy-wise, Iceland kept popping up. So I did some thorough research on Iceland. Please keep in mind that I don’t speak Icelandic which may have resulted in missing important information. Let us know if you have any feedback.

According to the Freedom on the Net 2018 report (from the Freedom House), Iceland together with Estonia scored a 6/100 (lower is better) on the Internet Freedom Score. This makes them the best privacy-friendly countries. Be aware that not every country has been rated.

Iceland is not a member of the European Union, although the country is part of the European Economic Area and has agreed to follow legislation regarding consumer protection and business law similar to other member states. This includes the Electronic Communications Act 81/2003 which implemented data retention requirements.

The law applies to telecommunication providers and mandates the retention of records for six months. It also states that companies may only deliver information on telecommunications in criminal cases or on matters of public safety and that such information may not be given to anyone other than the police or the public prosecution.

Although, Iceland is somewhat following the laws of the European Economic Area, it has its own approach to privacy. For example, the Icelandic Data Protection Act encourages anonymity of user data. ISPs and content hosts are not held legally liable for the content that they host or transmit. According to Icelandic law, its not the domain name provider, but the registrant of an .is domain name that is responsible for ensuring the use of the domain is within the limits of the law (ISNIC). The government does not place any restrictions on anonymous communication and no registration is required when purchasing a SIM card.

Another advantage from moving to Iceland is the climate and location of the country. Servers produce a lot of heat and while Reykjavík (Icelands capital where most data centers are located) is on average 40.41°F (4.67°C) it’s a great location to cool down the servers. Meaning that for each watt used to run servers, storage and network equipment, proportionally very little is used for cooling, lighting and other overhead. On top of that Iceland is the world’s largest green energy producer per capita and largest electricity producer per capita, with approximately 55,000 kWh per person per year. In comparison, the EU average is less than 6,000 kWh. Most hosting providers in Iceland get 100% of their electricity from renewable energy sources.

If you draw a straight line from San Francisco to Amsterdam you will cross Iceland. Simple Analytics has most customers from the US and Europe, so it makes sense to pick this geographical location. The privacy-friendly laws and the environmental friendly approach of Iceland made it even more easy for us to choose them as the new location for our servers.

Moving our servers

First, we needed to find a hosting provider in Iceland. There are quite a few and it’s really hard to know if you have the best. We didn’t have the resources to try them all, so instead, we set up some automatic scripts (Ansible) while setting up the server so we could easily move to another provider if we needed to. We choose 1984, a company with the slogan “Safeguarding privacy and civil rights since 2006”. We liked that slogan and asked them a few questions about how they would handle our data. They reassured us and we proceeded installing our main server and they only use electricity from renewable energy sources.

However, we hit a few roadblocks during this process. This section of the article is quite technical. Feel free to skip to the next. When you have an encrypted server you’ll need to unlock it with a private key. This key can’t be stored on the server as it defeats the purpose of encrypting. So if the key isn’t on the server you need to enter it remotely. That’s right, we need to enter the key when the server boots. Wait, but what happens with a power failure? Are all requests with page views to your server failing after a reboot?

That’s why we added an extra server in front of the main server. This server is kind of stupid. It just receives the requests with page views and sends it directly to our main server. When the main server is failing it will store the requests in its own database and re-attemps those requests to the main server until it succeeds. So after a power failure, there is no data loss anymore.

Back to booting up the server. When the encrypted main server boots we need to enter a password. But we don’t want to travel to Iceland or ask somebody there to enter it, for obvious reasons. To access a server remotely you usually use SSH. SSH - is a secure communication protocol, that most people use to communicate with their servers. SSH is a program which is accessible when a server or computer is running. But we needed it to connect before the server was completely started.

Then we found Dropbear, a very small SSH program, that you can run via the initial ramdisk (initramfs). This means we are able to allow external connections via SSH. We don’t have to fly to Iceland to boot our server, yeah!

After moving our data from our old server to our new server in Iceland we were finally done. It took us a couple of weeks from start to end, but we are glad we did it.

Only storing the data you need

At Simple Analytics we live by the saying: “Only store data you need.” We only collect the minimal.

It’s common practice to soft delete data in applications. This means that the data is not really deleted but it’s made inaccessible by the end user. We don’t do this, if you delete your data, it’s gone from our database. We use hard delete. Note: it will be in our encrypted backups for a maximum of 90 days. In case of a bug we can retrieve this data.

We don’t have delete_at fields ;-)

For customers, it’s important to know what data is kept and what is deleted. When somebody deletes their data we show them a page with exactly that. We delete the user and their analytics from our database. We also delete the credit card and email from Stripe (our payment provider). We keep the payment history, which is needed for taxes and keep our log files and database backups for 90 days.

Question: If you only store little sensitive data, what’s the need for all this protection and extra security?

Well, we want to be the best privacy focused analytics company in the world. We will do everything within our power to deliver the best analytics tools without invading the privacy of your visitors. By even protecting our massive amounts of unidentifiable information about visitors we want to show we take privacy super seriously.

What is next?

While we improved the privacy of our platform we noticed a slight increase in loading time for our embed scripts. This makes perfect sense, because they were hosted via the CDN of CloudFlare. A CDN is a set of servers around the world to decrease loading times for everybody. We are thinking of setting up a very simple CDN with encrypted servers, which only serve our JavaScript and store the page views temporarily before sending it to our main server in Iceland.

Are you willing to move your business analytics to a privacy-friendly company? Learn what we can do for you.

Written by Adriaan van Rossum (follow on Twitter)


TOPICS:
KEYWORDS: 4thamendment; americahater; bloggers; chinatroll; computer; ibtz; iceland; internet; iot; notnews; nsa; privacy; redchinatroll; server; spam; tech; zot
Navigation: use the links below to view more comments.
first 1-2021-39 next last
This is an amazing post of how an American company needed to move their operations outside of the USA in order to prove fourth amendment protections to their American clients. Read, learn and cry at what is left of our once great republic.
1 posted on 03/30/2019 4:18:15 AM PDT by vannrox
[ Post Reply | Private Reply | View Replies]

To: vannrox

Remember Bush’s New World Order? It is the International Deep State and it is even worse than Trump paints the American version to be.


2 posted on 03/30/2019 4:26:12 AM PDT by Oshkalaboomboom
[ Post Reply | Private Reply | To 1 | View Replies]

To: vannrox

I wonder how much, if anything, the EU’s Articles 11 and 13 had to do with this...


3 posted on 03/30/2019 4:28:18 AM PDT by mewzilla (Break out the mustard seeds.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Oshkalaboomboom

Though the author loses me when part of his rationale for moving his servers to Iceland is “...on top of that Iceland is the world’s largest green energy producer per capita...” In other words, he feels the need to virtue signal (and simultaneously adhere to a nonsensical business decision) in the midst of a (for the most part) reasonable course of action for his business.


4 posted on 03/30/2019 4:29:35 AM PDT by BlueStateRightist (Government is best which governs least.)
[ Post Reply | Private Reply | To 2 | View Replies]

To: vannrox; Oshkalaboomboom

Iceland-Murdering innocent babies with Down Syndrome since 2017. Ya, real green country.


5 posted on 03/30/2019 4:47:50 AM PDT by New Perspective (Proud father of a son with Down Syndrome and fighting to keep him off Obama's death panels.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: vannrox

Think of how much money they save by not needing a “cold room” to house the servers. They just open a window.


6 posted on 03/30/2019 5:05:42 AM PDT by OrangeHoof (Trump is Making the Media Grate Again)
[ Post Reply | Private Reply | To 1 | View Replies]

To: hoosiermama; NIKK

Ping.


7 posted on 03/30/2019 5:11:24 AM PDT by Jane Long (Praise God, from whom ALL blessings flow.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: BlueStateRightist

“Though the author loses me when part of his rationale for moving his servers to Iceland is “...on top of that Iceland is the world’s largest green energy producer per capita...” In other words, he feels the need to virtue signal (and simultaneously adhere to a nonsensical business decision) in the midst of a (for the most part) reasonable course of action for his business.”

The brainwashed masses like Green anything.

Some Dove dish soap bottles have a picture of a cute baby duck with the caption, “Dove Saves Wildlife”. I wonder how many times a mother shopping with her child has bought Dove over another brand because their little kid said, “Mommy, Dove saves wildlife”!


8 posted on 03/30/2019 5:22:00 AM PDT by Rebelbase
[ Post Reply | Private Reply | To 4 | View Replies]

To: New Perspective
Iceland-Murdering innocent babies with Down Syndrome since 2017. Ya, real green country.

Has nothing to do with anything here. Not every thread needs to be about abortion.

9 posted on 03/30/2019 5:39:23 AM PDT by Drew68
[ Post Reply | Private Reply | To 5 | View Replies]

To: BlueStateRightist

I believe the “Green” energy produced there is geothermal.

Iceland has been using very hot underground water, heated by volcanos and MAG-MA, to spin turbines to generate electricity for a very long time.

Long before there was a “green”, socialist movement.


10 posted on 03/30/2019 5:50:10 AM PDT by Alas Babylon! (The media is after us. Trump's just in the way.)
[ Post Reply | Private Reply | To 4 | View Replies]

To: vannrox

As I read this I kept thinking that he needed to hire a competent Network Admin rather than trying to sort this out himself. He also needs a competent and qualified CISO.

Remember kids, cheap IT isn’t good, and good IT isn’t cheap.


11 posted on 03/30/2019 5:54:54 AM PDT by AlbertWang
[ Post Reply | Private Reply | To 1 | View Replies]

To: Drew68
Has nothing to do with anything here. Not every thread needs to be about abortion.

Simply pointing out the facts. I think the taking of innocent human life is just at important as the 4th amendment.

12 posted on 03/30/2019 5:58:50 AM PDT by New Perspective (Proud father of a son with Down Syndrome and fighting to keep him off Obama's death panels.)
[ Post Reply | Private Reply | To 9 | View Replies]

To: vannrox

I’m not sure there is really privacy any longer.

Not if you store digital data on anybody else’s systems.

Traffic still routes through whatever routers are less busy; packets can be stored for analysis later by any routing device along the way. Algorithms to generate encryption keys are often full of government back doors or directly hacked by governments, but the weakest link is data in transit.

Their storage sounds very secure, but the data has to get there from wherever you are, and that’s when it’s most vulnerable.

And CloudFlare and its content delivery network is housed out of San Francisco, easily access by the US Government.

Again, we really don’t know what’s going on in US government cyber warfare centers, but I can tell you, every military, intel, and now even agencies not associated with law enforcement or defense has them.

If the FBI can be corrupted by the likes of James Comey, or the CIA by John Brennan (both working for Obama), who’s to say other agencies haven’t gone completely rogue also?


13 posted on 03/30/2019 6:00:02 AM PDT by Alas Babylon! (The media is after us. Trump's just in the way.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Alas Babylon!

Also—that form of geothermal electricity is about as reliable as it gets.


14 posted on 03/30/2019 6:03:57 AM PDT by Flintlock ("FIRST the Saturday people, THEN the Sunday people"--gee whatever do they mean by that?)
[ Post Reply | Private Reply | To 10 | View Replies]

To: vannrox

Geothermal, if you have it use it.


15 posted on 03/30/2019 6:10:03 AM PDT by Vinnie
[ Post Reply | Private Reply | To 1 | View Replies]

To: vannrox
Memory is easy explained as a type of a drive

This is incorrect and the author is confusing two concepts. One type of memory, ROM (read only memory) can be stored on physical media such as a hard drive.

The entire post seems a bit “off.” For example, many cloud providers allow customers to create, own, manage their own encryption keys. This is not unique to Iceland. Another issue is “stolen” hard drives — he should be focused on data center physical security ingress/egress, authorization, rack access, etc.

16 posted on 03/30/2019 6:16:08 AM PDT by HonkyTonkMan
[ Post Reply | Private Reply | To 1 | View Replies]

To: OrangeHoof
"Think of how much money they save by not needing a “cold room” to house the servers. They just open a window."

Yup.

And, dig into the ground and get steam hot enough to run a steam engine and generate electricity or take a hot bath.

There are 320,000 Icelanders and they're closely related...many companies use that population to do genetics research.

Also, the Vikings stopped at Ireland on the way to Iceland and kidnapped the prettiest girls and took them to Iceland as wives....some say the Iceland girls are the prettiest because the Viking took on the prettiest Irish girls to Iceland. (DNA supports this claim)

17 posted on 03/30/2019 7:30:28 AM PDT by blam
[ Post Reply | Private Reply | To 6 | View Replies]

To: New Perspective
I think the taking of innocent human life is just at important as the 4th amendment.

Good for you. Take it to an abortion thread.

18 posted on 03/30/2019 7:33:26 AM PDT by Drew68
[ Post Reply | Private Reply | To 12 | View Replies]

To: Drew68

Nope:)


19 posted on 03/30/2019 7:37:51 AM PDT by New Perspective (Proud father of a son with Down Syndrome and fighting to keep him off Obama's death panels.)
[ Post Reply | Private Reply | To 18 | View Replies]

To: vannrox

Plus having a server farm in Iceland makes sense. To cool the equipment, just open the window.


20 posted on 03/30/2019 7:39:45 AM PDT by lurk
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-39 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson