How a tool we built for one client became VR9 Infra
It started as a project for a client of VR9, a studio that builds and runs web services. The client had several servers and sites, and it was hard to see what ran where, which domains and certificates belonged to which site, and who had access to all of it, so we built them one place to keep track of it. Inside the studio we called it InfraHub, and later we rewrote it from scratch as a public product.
Today it is VR9 Infra, an inventory of which sites run on which servers, with their domains, certificates and the logins to each of them. On top of that it reads expiry dates by itself, runs uptime checks and has a separate view for clients. The old name is still in the code, where the package and the database are called infra-hub.
The client needed to know what ran where
With a setup like that, the trouble starts when a certificate expires and someone has to work out which server the site runs on, who has the login to that server's control panel, and whether that person still answers email. The tool we made for the client kept all of that in one place: the servers, the sites on each of them, their domains and certificates, and a record of who has access to what.
Our own projects had the same problem
We build web services and usually keep running them after launch, so every project of ours adds its own servers, domains, certificates and logins. We needed the same single place for them, so we started putting our own projects into the tool we had made for the client.
After a while we were opening it every day, for work that had nothing to do with that client. At some point we decided that if we use it every day ourselves, it is probably useful to someone else too, and started rewriting it as a separate product that anyone can sign up for.
The public version keeps companies apart
A public product holds many companies at once, so in VR9 Infra every record belongs to a company, and each person in it has one of four roles: Viewer, Editor, Admin or Owner. Only an Admin or the Owner can delete anything.
Who has access to what was part of the client's original request, and the public version still records it, but an access record holds no password. It says which login exists, whether that is SSH, a control panel, a database or a site's admin area, and where its secret is kept in the team's password manager.
A client can also be invited to a portal that shows only their own sites: whether they are up, and when their domains and certificates expire. IP addresses, logins and notes are never shown there.
The registry's date can be a year off
Infra fills in the expiry dates itself. It reads a certificate's expiry from a TLS handshake about twice a day, and a domain's from RDAP, the structured successor to WHOIS. Nobody types either date by hand, so there is nothing to forget to update after a renewal. The reminders sent from these dates are described in The deadline nobody wrote down.
The domain date took more work to get right. For .com, which is a thin registry, the registry renews the domain on its own side on the expiry day and moves its expiration event a year ahead, whether or not anyone paid, while the registrar may still be about to let the name go. So until recently an unpaid .com domain could look fine in Infra right up to the day its site went down.
The real date is kept by the registrar. A thin registry's RDAP answer often has a link with rel: "related" pointing to the registrar's own RDAP service, so Infra now follows that link and reads the registrar expiration event there, which the registry's own answer does not have.
Since the link comes from someone else's server, Infra checks it before following it: it has to be https: and look like an RDAP domain query, the request skips internal networks, and reading stops after 512 KB. If anything fails, from a timeout to a registrar without RDAP, Infra uses the registry's date as it did before.
Some registries publish no expiry date at all, DENIC for .de among them, and for those domains the field stays empty until someone enters the date from the registrar's panel.