When you host ten or so tools yourself, each one comes with its own login page, its own accounts and its own password. Single sign-on promises one desk for all of them. We had had one since January, and it took an audit to show us that nobody was turning up at it.
Update of 28 November 2026.
The desk’s accounts are now stored in a PostgreSQL database, each with its email address. So since 27 November, “forgotten password” has sent a reset email, in French. The security audit of 23 November hardened the portal: a session cookie restricted to encrypted connections, throttling of repeated password attempts, logout after four hours of inactivity, and a second factor offered to every account, in the form of a one-time code generated by an app.
The desk also opens the Cube’s console. Since 24 November, a view-only account has been able to see a Cube without being able to touch it, and since 28 November a demonstration account has seen it the same way, read-only. In the console’s new “Activity” tab, these accounts find the Cube’s log hour by hour, the entries and exits, and the energy curves (see the article on the proof log). The forge and the monitoring tools remain behind the same desk (see the article on the forge and the one on watching over the server).
The problem, and what is available
Single sign-on, or SSO, means entrusting identity verification to a single service that the applications trust. You log in there once, then each tool asks the desk “who is this?” instead of asking the question itself. The exchange between application and desk usually follows a standard protocol, the most widely used today being OpenID Connect.
The open-source benchmark in this field is Keycloak, and that is what we had installed in January, together with MinIO for object storage, that is, a service that stores files behind the S3 API that Amazon popularised. The article on hosting describes that first installation. The choice was easy to defend: Keycloak is comprehensive, well documented, and just about any software can talk to it.
The audit that led to the removal
On 26 April 2026, in the middle of a day spent installing things, we looked at what the older services were actually doing. The thirty-day figures fit in two lines, copied here from our log: for Keycloak, zero successful logins, “no internal app uses it”; for MinIO, “0 bytes, 0 objects”. We therefore had, in production, an identity server with no identities and a warehouse with nothing in it, which is a kind of frugality we had not been aiming for.
Yet both services were running day and night, each with its database, its certificates and its updates to keep up with. An unused component is not free: it takes up memory and still has to be maintained. We stopped them the same day, after backing up the Keycloak database and checking that no application referenced them.
What we chose, and why
The need for a single desk was real, though: monitoring tools were arriving that same day, and leaving them behind a mere password per page was out of the question. LemonLDAP::NG, an open-source SSO written in Perl, had been planned that very morning to run alongside Keycloak, and the audit left it the field to itself. It consists of three parts: a portal where you log in, a manager to administer it and a “handler” that protects the applications. For storage, Garage, an S3-compatible store designed to run on modest hardware and hosted by Deuxfleurs (in French), took the place of MinIO.
The three reasons for the choice
The reasons written down at the time are of three kinds; we give them in order of the weight they carried.
- Usage. This is the primary reason: you do not keep what is not used. The replacement had to meet an observed need, protecting administration pages, not an assumed one.
- Weight. On our server LemonLDAP::NG fits in a single service, which our notes put at about 25 MB, whereas the previous set-up needed an application server and its database.
- Provenance. Our rule, set in January, is to prefer open-source software of European origin when it exists. Our dependency review placed Keycloak and MinIO among the components from American vendors, and their replacements among the French projects. We have to be fair to Keycloak: born at Red Hat, in April 2023 it found a home at the Cloud Native Computing Foundation (CNCF), so it is not a single vendor’s software.
The licence, by contrast, played no part in this choice.
| Before 26 April | After | |
|---|---|---|
| Identity | Keycloak and its database, in containers | LemonLDAP::NG, installed on the host |
| Object storage | MinIO | Garage |
| Usage recorded over 30 days | 0 logins, 0 objects | The monitoring tools go through the portal |
A failed first attempt
Not everything worked first time. Out of habit, we initially installed the portal in a container, like the rest, while the handler ran on the host, next to nginx, our front-end web server. But the two halves did not share their sessions: the portal issued a pass that the handler did not recognise, and the browser went back to the portal, which sent it back to the application, and so on. A very regular merry-go-round, but with no way off.
The second version, written within the hour, is installed entirely on the host, from the distribution’s
packages. A single service serves the portal, the manager and the handler, so the sessions are shared by
construction. In front of each protected tool, nginx uses its
auth_request module:
before passing a request on, it asks the SSO whether the visitor is known, and lets it through only on a
positive answer. The protected tool needs to know nothing about authentication, so software
that has never heard of SSO can be put behind the desk.
What we gain, and what it costs
The most visible gain is a single login for all the internal tools. The second can be read in the day’s figures: the memory used by the server went from 2.4 to 2.1 GiB, even though we had added half a dozen services in the meantime. Our notes put the memory freed by these removals at about 650 MB, including 344 for Keycloak and 147 for MinIO. In early May, we extended the desk to the network map, the inventory and the forge, with three distinct roles.
The cost is real too. In leaving Keycloak, we left the beaten track: the integration guides published by third-party software almost always mention it first, and more often we have to work out the equivalent ourselves. Installing from packages ties us to the server’s distribution, and we had to make a tweak to it that has to be reapplied after certain updates. Finally, the configuration carries version numbers, and we lost some time working out why an old version was still being served. None of this is a fault in the software: it is the usual price of a less widely used tool.
Where we stand.
LemonLDAP::NG is in service and protects our internal tools. Since mid-November 2026, it has also served as the OpenID Connect provider for our social media publishing tool, as described in the article devoted to it: this is its first use beyond protecting tools through nginx. Garage is running, but we entrust little to it, and our backups ended up taking another route. This installation has not been through any external assessment.
Sources
- LemonLDAP::NG, project website, and its overview (portal, manager, handler).
- Keycloak, project website, and its CNCF project page, which dates its entry into incubation to April 2023.
- Garage, an S3-compatible object store, and Deuxfleurs (in French), which hosts it.
- MinIO, the object storage we used previously.
- nginx, the ngx_http_auth_request_module module: authorising a request by means of a subrequest.
- OpenID Foundation, OpenID Connect Core 1.0, the protocol specification.
A question, an objection? contact@ops-devices.eu, or on Bluesky.