My Domain Has No Lockfile
On Wednesday morning, European time, codeberg.org stopped existing. Not the servers, which were fine, and not the code, which was fine. The name. Codeberg’s status account put it plainly: the domain had “entirely disappeared from our account”, and then, because everyone was already typing the question, “No, we didn’t forget to renew.”
I’ve spent a career pinning things. Every library in my projects has a version in a lockfile, a changelog I can read and an alternative I could switch to by Friday. The one dependency that every user, every git remote and every security key touches has none of that. It’s a ten minute purchase I make once and then forget about until it bites. The fixes the internet proposed this week, a better vendor or a second domain, miss the one I’d actually make: own the name like a dependency and find out first when someone else switches it off.
One flag, one consequence
Forty minutes after the first post, Codeberg confirmed that the registrar, NameSilo, had suspended the domain and passed the case to its abuse team. The first post on their main account described the status as clientHold and added that they “did not receive any email notifications”. About three hours after the first notice, the status account reported the domain recovering, still with no official word from the abuse department.
clientHold is not a vague outage. It’s a flag in the protocol registrars use to talk to registries, and RFC 5731 gives it exactly one consequence: “DNS delegation information MUST NOT be published for the object.” The client in the name is the registrar, not the customer. ICANN’s own explainer calls it uncommon and lists legal disputes, nonpayment and pending deletion as the usual reasons. So one person at the company that sold Codeberg a cheap yearly registration can pull the name out of the .org zone, and the registry will do it without asking anyone.
Nothing here is broken, which is the uncomfortable part: the protocol did exactly what it was written to do.
The thread wanted a better vendor
The Hacker News thread ran to more than three hundred comments and the Lobsters one to nearly eighty. Most of the advice was about picking a different shop: a German registrar, an EU registrar, anyone but this one. The most serious version came from jbcrawford on Lobsters, who argued that registrars race to the bottom on price, so their abuse teams resolve complaints by suspending the domain every time. His conclusion: “The main fix for this is to use an expensive registrar”, one with a legal team that talks to yours before anything gets suspended.
I think the diagnosis is right and the fix is for someone else. A registrar with humans who phone your lawyers costs, by his own estimate, thousands a year. That’s a sensible line item for a bank. My own .org renewal costs less than the lunch I eat while clicking through the upsells. Codeberg is a nonprofit hosting other people’s code for free. And Codeberg itself made the point that should end the vendor shopping: in a reply during the outage they said a hasty suspension can happen at any company, and that an EU host, Netcup, had once suspended one of their servers. Switching vendors swaps one abuse desk for another. The flag stays in the protocol.
The backup domain that wouldn’t have worked
The other popular answer was a second domain. One commenter on Hacker News wrote “i thought this was a serious project. No backup domain for a platform that host repositories.” Codeberg already owns codeberg.eu, and declined to switch it on, naming multi domain support, search ranking and two factor authentication among the problems.
That last one deserves more than a shrug, because it’s the one you can’t fix in an afternoon. A WebAuthn credential (a security key or a passkey) is bound to a relying party ID, and the specification says that ID “must be equal to the origin’s effective domain, or a registrable domain suffix” of it. Keys registered on codeberg.org don’t work on codeberg.eu. There is an escape hatch called Related Origin Requests, which lets another origin use the original credentials. To check that it’s allowed, the browser fetches a file from the original domain:
https://codeberg.org/.well-known/webauthn
If that fetch fails, the spec says the browser throws a SecurityError. During a clientHold, that fetch fails. The backup domain’s login depends on the domain it’s backing up. So the spare key only works if you can still get into the house you lost, and I know that circle well, because I once drew it on a whiteboard and labelled it redundancy.
Add every cookie scoped to the old name, every OAuth redirect URI registered with another service, every git remote on thousands of laptops and every link in every README. A second domain is a second identity, and running two identities costs more every day than an occasional three hour outage. Codeberg made the right call, and three hours of downtime was the cheap option.
What I’d actually do
Earlier this month I wrote about the vendor who quits for good and takes your devices with it. This is the other failure: nobody quits, a stranger flips a flag, and three hours later somebody flips it back.
At a previous job, our documentation domain expired on a holiday weekend. The registrar had sent five polite reminders to the personal mailbox of an engineer who had left eighteen months earlier. Nobody had done anything wrong that week. We had done it wrong years before, when someone bought the name on a company card and nobody wrote down that it existed.
That’s the part of the Codeberg story I’d least like to repeat: whatever went wrong at the abuse desk, they found out from users, not from the registrar. So I’d treat the name like the dependency it is, and the treatment is boring.
The registrar account gets an owner on the team roster and a contact address on a different domain, so a hold on the name can’t swallow the warning about the hold. Something checks the public record every few minutes. Registration data is published over RDAP as plain JSON, and a hold shows up there as client hold or server hold, the names RFC 8056 maps from the EPP flags. This is the whole check; the five minute schedule is cron’s job:
import json, sys
HOLDS = {"client hold", "server hold", "pending delete", "redemption period"}
def check(path):
with open(path) as f:
record = json.load(f)
statuses = set(record.get("status", []))
bad = sorted(statuses & HOLDS)
name = record.get("ldhName", "?").lower()
changed = next((e["eventDate"] for e in record.get("events", [])
if e["eventAction"] == "last changed"), "unknown")
if bad:
print(f"ALERT {name}: {', '.join(bad)} (last changed {changed})")
return 1
print(f"ok {name}: {', '.join(sorted(statuses))} (last changed {changed})")
return 0
sys.exit(max(check(p) for p in sys.argv[1:]))
rdap.org is only a bootstrap service that redirects to the registry, which for .org is https://rdap.publicinterestregistry.org/rdap/domain/, so a poller should ask the registry directly. I saved today’s public record for codeberg.org with curl -sL https://rdap.org/domain/codeberg.org, then ran the script on it and on a copy where I’d added a hold by hand:
$ python3 watch_hold.py codeberg.rdap.json codeberg.hold.json
ok codeberg.org: client transfer prohibited (last changed 2026-11-18T11:02:51.801Z)
ALERT codeberg.org: client hold (last changed 2026-11-18T11:02:51.801Z)
The real record shows the hold gone and a last change at 11:02 UTC on Wednesday, which matches the recovery. Point a timer at the registry every five minutes, page whoever owns the name, and the registrar’s missing email stops mattering. It won’t prevent a suspension. Nothing a customer does will.
The last piece is where you talk during the outage. Codeberg’s updates came from an account on social.anoxinon.de, a domain they don’t own, which is the only reason three hundred commenters had anything accurate to argue about. A Munich community network, Freifunk München, even pointed its public resolvers at Codeberg’s own name servers so people could keep working. The status page, the IP addresses and the name servers belong somewhere a hold on your name can’t reach.
The kill switch is a feature
On Lobsters, JulianSildenLanglo put the uncomfortable half in one line: “some sites should be made inaccessible outside of their control.” He’s right. Phishing kits and malware hosts live on domains too, and a registrar that can’t pull a name quickly is a registrar criminals love. clientHold exists because sometimes it should be used without the owner’s permission.
Granted, and the switch stays. You don’t get to remove a kill switch somebody else holds. You get to notice within minutes that it was pulled, know who in your team owns the call to the registrar, and keep the place where you tell users what’s happening off the name that just vanished.
So my rule: a domain gets the same treatment as a dependency with one maintainer you can’t fork. An owner, a contact address elsewhere, a check every few minutes and an outage plan written before the outage. Pay for the expensive registrar when an hour without your name costs more than their yearly fee. Until then, twenty lines of Python and a timer are cheaper than the lawyers, and if the registry updates its record promptly, they’d have told Codeberg about the hold before its users did.
Comments