Skip to content
← Back to writing

June 27, 2026

The login screen did not know which edition it was

Making one Eight.ly binary look like three products, the first deploy that rendered the wrong one, and a login screen that could not read its own edition.

On June 1 I made Eight.ly OS into more than one product with a single environment variable. The backend learned which routes to register for each edition. The frontend did not learn anything, and on June 27 I found out what that means: a box set up as the entry edition happily rendered the entire OS interface, including Nova and the terminal, with virtual machines listed beside them, with nothing behind most of it.

A Standard edition box from the afternoon recapture on June 27: the header reads Eight.ly Standard and the Docker container list shows the consolidated edition image running next to media apps.

The deploy that proved the gap

My first move that morning was to deploy the consolidated binary as the Container edition on app-dev and look at it. It came up, the API answered, and the UI showed everything. I had a pull request open at the time that added the Docker command line client to the runtime image so the Container edition could manage Docker. I closed it with a note that the approach was wrong, because a Container edition with a frontend that is not gated is just the OS wearing a smaller name. The Docker client change came back later, in the stacked branch for the packaging work, once there was a real gated frontend for it to serve.

So the day became one epic, EOS-568, with seven stories under it. The backend half was a capability ladder in internal/edition and an unauthenticated GET /api/capabilities that lists what the running edition can do. The frontend half was an EditionContext and a hook with a has(cap) check, and it fails closed: if it cannot read the answer, it behaves as the lowest tier.

Then came the part that was just a lot of gating. The sidebar and route guards, the dashboard composition, the Settings tabs, the help modal, the calendar's empty state and its SnapRAID schedule option, and the first-run welcome cards all ask the same question before they draw. The product name changed too. The tiers run from Standard up through Professional to OS, and the display name for the entry tier is "Eight.ly Standard" while the internal key stays container. VPN stayed on for every edition, which I confirmed rather than assumed.

By 05:29 the Standard edition was running on app-dev and I checked it in a browser. It showed Backup and Environments and hid Storage, File Sharing and Infrastructure along with VMs, Nova and Terminal. By 06:03 Professional was deployed and its capabilities read as storage, file sharing, backup and remote agents on, and Nova off, along with the shell and virtualization.

The bug in the first thing a visitor sees

The Professional box was supposed to say "Eight.ly Professional" on its login screen. The branding comes from /api/capabilities, and the login screen is drawn before anyone has logged in.

That endpoint was not on the auth middleware's public list. On a box with authentication configured, the request got a 401 before login, the context could not read an answer, and it did what I had built it to do and fell back to Standard. A Professional box was introducing itself as the entry tier. The fail-closed default was the right call for gating features and a wrong one for the one screen that has no session to gate on.

The fix was a single line in pkg/api/auth/middleware.go, adding /api/capabilities to publicExact beside /api/edition. I also added TestEditionEndpointsArePublic, which asserts both paths are public, because the next person to tidy that list should get a red test and not a silent regression. EOS-578 merged as PR 237.

It was not the Cloudflare policy

Reaching the Professional dev box from outside gave me a 401 at pro-dev.eight.ly, and I wrote that up as a Cloudflare Access policy that needed an exception, which turned out to be a guess.

The hostname routes through the tunnel to a dedicated Professional dev VM, VM127, and I had been deploying to VM125. VM127 was running an older binary from before the edition work, and that binary answered 401 on /api/capabilities all by itself. I deployed the current binary and frontend there, EIGHTLY_EDITION=pro was already set in its systemd unit, and the login screen came up branded "Eight.ly Professional" through Cloudflare with no change to Cloudflare at all. The stray Professional container I had started on VM125 and its Traefik rule came out. The ticket for the Cloudflare exception closed with a note that it had never been needed.

Prod, and the one box that was off

At 10:04 I had the go-ahead to cut over to production. The OS edition at os.eight.ly went through the normal path, a merge from dev to main and the deploy workflow to VM129. Its capabilities endpoint answered publicly with every capability on, so the OS side needed nothing further.

The Standard edition at app.eight.ly was a swap. The old Node application on VM126 was stopped and kept for rollback. In its place runs a container called eightly-prod-consolidated, from an image tagged eightly:edition with EIGHTLY_EDITION=container, behind the same Traefik route repointed at it. Two details from the ticket are worth keeping. The container has to persist both /var/lib/eightly and /etc/eightly, because mounting only the first wipes the admin account on every redeploy. And I seeded the admin account from app-dev so the public address shows a login and not a first-run setup page that anyone could complete. That means app.eight.ly currently uses the documented default password, which I noted on the ticket to rotate.

Professional in production did not happen. VM128 was powered off and unreachable from the production network, and pro.eight.ly is deliberately off the tunnel under an earlier infrastructure decision about the missing auth gate. Finishing it needs the box powered on, an admin configured before it is exposed, and the tunnel entry added back. Both the power and the security call are mine, so it stayed open.

What else moved that day

The screenshots on the marketing sites needed three editions that looked different, which is why the afternoon went to the site side. I created imogenlabs/brand-assets as the public home for every product screenshot, with a manifest and a CI check that rejects non-image files. I built a Playwright capture script with a config per product, and merged it to the dev branch of the site repo only, since it is tooling and does not belong in the production image. I also added eightly-site-dev to the dev VM's compose file so it is managed like the other site containers, and published a fresh :dev image for the HomelabARR site so dev.homelabarr.com stopped running a stopgap. Late in the day I recaptured the Container and Professional screenshots against the real edition-aware builds, and the picture above is from that recapture.

Across the day that came to sixteen commits in the product repo, six in imogenlabs-site and three in eightly-site. I could not review the work with Copilot, since its review quota had run out, so each pull request got a notice saying so and my own browser checks stood in.