← engineering notebook

Hosting in Europe, with rootless containers

24 January 2026 · updated 28 November 2026 · 5 min read · hosting · containers · mqtt
The Cube, royal blue with black edges and two round eyes, looks at a server on its left; on its right, a globe.

A connected device needs somewhere to send its messages. Where should that server sit, under which law, and with what privileges should the software on it run? We answered these three questions in a single January afternoon, and some of the answers have aged better than others.

Update of 28 November 2026.

The broker is once again carrying traffic from a real Cube. Since 20 November 2026, the connected Cube has been reaching it over 4G, on port 8883, using mutual TLS (Transport Layer Security): the server presents its certificate, and the Cube presents its own too, unique to that Cube (see “One identity per Cube”). Its messages are also signed and encrypted end to end, so the broker merely relays them and cannot read them.

A security audit on 23 November 2026 also tightened the privileges around the containers. The service that builds and deploys our code now runs under an account with no administrator rights, which can launch only a single deployment command whose targets are fixed in advance, and can run its jobs in its own rootless Podman (see the article on the forge). Remote access to the server over SSH (Secure Shell) no longer accepts the root account, and the server’s encrypted backups are copied off the machine every day (see the article on monitoring the server).

On 24 January 2026, five days after the first Cube, we installed the platform’s services on our server. The objective written down that day fitted on one line: deploy the whole infrastructure on a virtual server, with Podman. It took about five hours, with six problems solved along the way.

The problem, and what is usually done

The shortest route, for a connected-device project, is to rent the ready-made services of a large cloud provider: a managed broker, storage, identity management. It is quick, and it works very well. But two things made us take another path.

The first is legal. In March 2018 the United States adopted the CLOUD Act, a law that governs the authorities’ access to data held by American providers. We are not lawyers and we do not claim to gauge its exact reach, but in a review of our dependencies dated 19 January we had written a simple rule that saves having to ask the question: open-source software, no American cloud service, hosting in the European Union.

The second is technical. In the most common set-up, containers, those boxes that isolate a piece of software and its dependencies from the rest of the system, are managed by a central daemon. The Docker documentation says so itself: this daemon requires root privileges, unless you explicitly choose its rootless mode, and only trusted users should be allowed to control it. A flaw in the daemon, or a container escape, therefore leads straight to the most powerful account on the machine.

What we chose

We rent our virtual server, which had already been running the forge for a few days, from OVHcloud, a French hosting provider. We wrote down the reason a few weeks later in an internal review: a data centre in France, data under the EU General Data Protection Regulation, and a provider that we consider beyond the reach of the CLOUD Act.

For the containers, we chose Podman, an open-source engine that works without a central daemon. We use it in its “rootless” mode, that is, without privileges: an ordinary account launches the containers, and they can never have more rights than that account. If one of them is compromised, the attacker ends up in the shoes of a user with no special powers, not in those of root.

For the devices’ messages, we installed Eclipse Mosquitto, an open-source MQTT broker, that is, the central server to which devices subscribe and publish. From that first day it accepted TLS-encrypted connections on port 8883, the one the MQTT standard recommends for the purpose. The certificates came from Let’s Encrypt (in French), a free, automated certificate authority. By the end of the day, seven containers were running: the broker, the forge that hosts our code, an identity service, file storage and their databases, behind a web front end and a firewall.

What we gain

  • A perimeter we can describe. Everything fits on one machine whose country, hosting provider and contents we know. So when we are asked where a Cube’s data goes, the answer fits in one sentence. What would become of it if the service stopped is another question, dealt with in the article on networks and services shutting down.
  • Contained damage. Rootless mode does not make software more secure, but it limits what a mistake can cost.
  • Encryption planned from the start. Retrofitting TLS to devices already in service means going back to every one of them. We learned this the hard way, as you will read below.

What it costs

Rootless mode has a price, and we paid it the same day. Container networking is emulated there in user space, under an ordinary account, and two containers started separately cannot see each other as easily as with a conventional engine. We spent time working out why a service could not find its database, even though it sat a few millimetres away on the same disk. We also learned that the broker refuses to start if the permissions on the certificate files are not to its liking, and that one certificate per subdomain is easier to manage than you might fear.

There is also what we do ourselves instead of buying it: updates, backups, monitoring. That day, monitoring was just a line on the to-do list, and it took us a while to take it seriously, as told in the article on monitoring the server.

What the title does not say

“Rootless” and “encrypted from the first day” are two phrases we have used, and they need three qualifications if we are to stay honest.

  • Rootless mode is about the account that launches the containers. Inside its box, the software went on running for a long time under its image’s default account. Our own images were given a dedicated user only in November 2026.
  • The broker was listening with TLS on 24 January, but that did not last. Our audit of 8 March found the TLS configuration disabled and the Cubes’ traffic in the clear. Encryption was restored on 25 April, which meant reflashing the alert Cubes, and clear-text access was restricted to the machine itself on 1 May.

A Docker engine alongside Podman

  • Since November 2026, a Docker engine has sat alongside Podman, for a single piece of software. This tool ships in a form designed for Docker, and porting it to our version of Podman would have meant re-applying every update by hand. That engine runs as root. It also has a quirk that its documentation points out: its network rules take precedence over those of the ufw firewall. We took this into account, and the tool can be reached only through the web front end. We tell the story in the article on our self-hosted social media.

Where we stand.

As of November 2026, the server, Podman in rootless mode, the Mosquitto broker and the forge are still in service. The identity service and the storage installed that day served no purpose, and we replaced them in April, as told in the article on our single sign-on. The current rule is simple: rootless Podman for our own services, Docker only for third-party software shipped that way. All of this supports a demonstrator, not a production service for third parties.

Sources

A question, an objection? contact@ops-devices.eu, or on Bluesky.