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 previous 1-2021-39 last
Comment #21 Removed by Moderator

To: vannrox

My one big objection is the author’s virtue signalling, multiple times, about Iceland’s renewable energy.

It is not virtuous on Iceland’s part as much as it is realistic and practical. If the whole of the U.S. was sitting, on a per capita basis, on as much natural and accessible geothermal energy as is Iceland, the U.S. too could have 100% renewable electricity. Iceland has that natural resource and it is simply most practical to use it. That is not by virtue they make that choice, it is just realistic. Praise Iceland for being practical about their energy, not virtuous.


22 posted on 03/30/2019 7:55:58 AM PDT by Wuli
[ Post Reply | Private Reply | To 1 | View Replies]

To: Flintlock
"Also—that form of geothermal electricity is about as reliable as it gets."

Unless it's the Puna Geothermal station downhill of a Kīlauea lava flow.


23 posted on 03/30/2019 8:22:36 AM PDT by Rebelbase
[ Post Reply | Private Reply | To 14 | View Replies]

To: vannrox

This (below) is what protects Mr. Rossum’s servers from the bad guys in the world.

************************************************************

From Wikipedia, the free encyclopedia

Military of Iceland

Service branches
Icelandic Coast Guard
Iceland Crisis Response Unit
Headquarters
Reykjavík, Iceland
Leadership
Prime Minister
Katrín Jakobsdóttir

Manpower
Military age
18
Available for
military service
73,557 males, age 18–49 (2015),
71,172 females, age 18–49 (2015)
Reaching military
age annually
2,349 males (2015),
2,217 females (2015)
Reserve personnel
230 (ICG)
Deployed personnel
200 (ICRU)
Expenditures
Budget
US$45,529,700
Percent of GDP
0.26% (2015)
Icelandic Coast Guard, which patrols Icelandic waters and airspace, and other services such as the National Commissioner’s National Security and Special Forces Units.

[1][2][3][4] Iceland is however the only NATO member which maintains no standing army.

The Coast Guard consists of three ships and four aircraft and armed with small arms, naval artillery, and Air Defence weaponry.[5] The Coast Guard also maintains the Iceland Air Defence System, formerly part of the disestablished Defence Agency, which conducts ground surveillance of Iceland’s air space.[5][6]


24 posted on 03/30/2019 8:26:48 AM PDT by Cen-Tejas
[ Post Reply | Private Reply | To 1 | View Replies]

To: Balding_Eagle

No, not at all. I was simply sharing my opinion about the government of Iceland and their endorsing the murdering of Down Syndrome babies in relation to the positive attributes the article thought was so important. Nothing wrong with showing their priorities. Maybe someone read this thread did not know what Iceland does regarding this situation. They were happy to virtue signal so I added an active life and death situation.


25 posted on 03/30/2019 10:04:27 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 21 | View Replies]

To: OrangeHoof

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

cuts their energy consumption by more than half ...


26 posted on 03/30/2019 10:15:09 AM PDT by catnipman (Cat Nipman: Vote Republican in 2012 and only be called racist one more time!)
[ Post Reply | Private Reply | To 6 | View Replies]

To: catnipman

cuts their energy consumption by more than half ...

Are you sure of this?

Yes, it cuts the cost of the physical plant, no chillers, associated piping, pumps...

The same air handling equipment, filters, ductwork...are still used.

Max operating temperature of ~80 F, somewhat above the usual residential temperature.

On the heating and cooling map of the U.S. with 5 zones, the Chicago area lies in cooling zone 2 and heating zone 1. These require approximately 935 cooling hours and 4626 heating degree-days per year. As a general and relative guide, the average Chicago home would need 4.9 times more heating than air conditioning over a calendar year. Keep in mind that Chicago is located near the border of two zones. Differences in elevation, large bodies of water, or other topographical or climatic influences can cause microclimates, so be sure to rely on actual measurements and calculations from your heating and air conditioning contractor.
http://www.airconditioning-and-heating.com/cities/chicago/

Guessing the big numbers are on the upfront installation costs?

Do you have any hard numbers for operating costs?


27 posted on 03/30/2019 10:57:03 AM PDT by DUMBGRUNT ("The enemy has overrun us. We are blowing up everything. Vive la France!")
[ Post Reply | Private Reply | To 26 | View Replies]

To: Balding_Eagle; New Perspective; Drew68

SJW’s have to virtue signal, and we have our own version of these people. They’re the ones who have to ride and show their ONE TRICK PONY on every thread they visit.

Obsessive behaviour is more common than we care to believe.


28 posted on 03/30/2019 11:31:54 AM PDT by Don W (When blacks riot, neighbourhoods and cities burn. When whites riot, nations and continents burn.)
[ Post Reply | Private Reply | To 21 | View Replies]

Comment #29 Removed by Moderator

Comment #30 Removed by Moderator

To: Don W

And what is the one trick pony for this thread?


31 posted on 03/30/2019 11:57:20 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 28 | View Replies]

Comment #32 Removed by Moderator

Comment #33 Removed by Moderator

To: vannrox

Anericans have Fourth Amendment protections- in the USA, where our Constitution applies.

They lose them when the businesses take thir data OUT of the USA.
Because it’s more profitable for the business.

Surprised the businesses get away with blaming this on the government, when they’re the ones at fault.
But people are stupid.


34 posted on 03/30/2019 1:53:09 PM PDT by mrsmith (Dumb sluts: Lifeblood of the Media, Backbone of the Democrat/RINO Party!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Balding_Eagle

Please explain why I am being an a$$hole.


35 posted on 03/30/2019 4:55:37 PM 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 33 | View Replies]

To: New Perspective

You can’t be that thick-headed.


36 posted on 03/30/2019 5:15:09 PM PDT by Balding_Eagle ( The Great Wall of Trump ---- 100% sealing of the border. Coming soon.)
[ Post Reply | Private Reply | To 35 | View Replies]

To: Balding_Eagle

Sorry bud, don’t know what is going on in your mind. If you are finding it too difficult to articulate then maybe you can just let it go.


37 posted on 03/30/2019 5:24:36 PM 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 36 | View Replies]

To: New Perspective

Seriou, you couldn’t even understand that you were hijacking someone’s thread and subject matter?

You are thick-headed I guess.


38 posted on 03/30/2019 5:42:14 PM PDT by Balding_Eagle ( The Great Wall of Trump ---- 100% sealing of the border. Coming soon.)
[ Post Reply | Private Reply | To 37 | View Replies]

To: Balding_Eagle

You may want to check post #32 where I explained this already:)


39 posted on 03/30/2019 5:51:41 PM 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 38 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-39 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