What happens to my shop if the one person who holds the passwords is gone? Domains, accounts and key person risk
TL;DR
Difficulty: Beginner
If one person holds a key to your shop alone, the business carries a risk no dashboard shows.
- The domain is the key to every other key: it carries the email that every password reset goes to.
- Keys go missing in five ordinary ways: an expired domain, an account owned by someone else, two factor on one phone, recovery routes that loop, and roles only one person can hold.
- In the example, a two day outage costs 132 orders and £2,621.52 in contribution. At an assumed 5% a year the expected cost is about £212, but the chance over five years is about one in four.
- Fix it in order: accounts in the company's name, two admins everywhere, passkeys or hardware keys with spares, an access register, and a 30 minute check every quarter.
What to read first
Most shop owners can name the people who run their business, but not the person who holds each of its keys: the domain, the email, the payment account, the code. This chapter lists every key, shows how they go missing, prices the risk honestly with the example shop's numbers, and fixes it, down to a weekly job on Rails and Solidus.
The question nobody asks until the morning it matters
Most shop owners can name the people who run their business. Very few can name the person who holds each of its keys. By keys I mean the logins, the domain, the recovery codes and the roles that decide who can change, pay for, or switch off each part of the shop.
The question sounds dramatic: what happens if the one person who holds the passwords is gone? In practice "gone" is rarely dramatic. A developer moves on. An agency relationship ends on bad terms. A phone with every two factor code on it falls into the canal. A company card expires and the renewal of the domain quietly fails. Nobody notices for weeks, because nothing breaks until the day everything does.
This chapter is the fifth in the series on quiet leaks. The first chapter mapped every leak of the example shop. The others so far dealt with money lost every month. This one is different. It is a risk, not a monthly leak, and the honest way to price a risk is as an expected value. I will do that with the example's numbers, show why the expected value is the wrong reason to act, and then fix it: a list of every key, the ways they go missing, the fixes in the order I would do them, the developer's part on Ruby on Rails and Solidus, and a check you can repeat every quarter.
Example: a Tuesday at Wrenfield Home
The example for the whole series is Wrenfield Home, an invented online homeware shop in Leeds (wrenfieldhome.example) run by Priya, with Callum as her developer and data engineer. It takes about 1,980 orders a month at an average of £72, and each order leaves a contribution of £19.86 before marketing.
Picture an invented Tuesday morning. The shop does not load. Email to and from the shop's domain has stopped too. Callum is on holiday, out of signal. Priya opens the registrar's website and realises she does not know which registrar holds the domain, because Callum registered it four years ago from his own account. The renewal failed weeks ago because the card on file had expired, and every reminder went to Callum's personal address.
Nothing here is a hack. Nobody did anything wrong on purpose. It is the most ordinary way an online business loses two days, and it is the subject of this chapter.
What a key is, and why a missing one is a quiet leak
A key is any account or secret whose loss stops you from running, changing or paying for part of the shop. The domain is a key. So is the administrator login of the payment provider, the owner role on the code repository, and the recovery codes printed when someone switched on two factor authentication. Two factor authentication (2FA) means a login needs a second proof, such as a code from a phone or a security key, on top of the password.
Key person risk is the chance that one person holds a key alone, and that this person becomes unavailable. Software engineering has a name for the same idea in code: the truck factor, the smallest number of people who would have to leave before a project stalls. A study of 133 popular open source projects on GitHub estimated that 65% of them had a truck factor of two or less1. Those are projects with public code and many contributors. A small shop usually has one developer, one owner and one agency, so its truck factor for most keys is one.
The leak is quiet because a key held by one person works perfectly every day until it does not. No dashboard shows "keys held by one person". There is no monthly cost to see. The cost arrives in one go, and by then the person who could fix it is the person who is missing.
Example: counting Wrenfield Home's single points
Priya and Callum sit down with a blank sheet and list every login the business uses. They count 23 accounts. For each one they ask two questions: is it in the company's name, and could someone other than the current holder get in tomorrow without help?
| Question | Accounts | Share |
|---|---|---|
| Accounts listed | 23 | 100% |
| Held in the company's name | 14 | 61% |
| At least two people could get in without help | 8 | 35% |
| Held by one person who is not Priya | 9 | 39% |
These figures are invented for the example. The point is the shape: two thirds of the business sit behind a single person, and nine of those keys sit with someone who is not the owner.
The keys of an online shop, listed
Here is the list I would start from for any shop. Your shop will add a few and drop a few, but almost every online business has all of these.
| Key | What it controls | What breaks without it |
|---|---|---|
| Domain registrar | Who owns the name and pays for it | Everything, once the name lapses or moves |
| DNS hosting | Where the name points: website, email, verification records | Website, email, sender authentication |
| Email (for example Google Workspace or Microsoft 365) | Every mailbox and every password reset | Recovery of every other account |
| Hosting and cloud accounts | The servers, the database, the backups | The shop itself, and any restore |
| Code repository | The source code and its history | Every change, every fix |
| Application secrets (in Rails the master key) | Decryption of the shop's own credentials | Deploys, payment and email connections |
| Payment providers (Stripe, PayPal) | Taking money and paying it out | Revenue, refunds, payouts |
| Google Ads, Analytics, Merchant Center, Search Console | Advertising, measurement, product listings, search | Campaigns, history, product feed |
| Meta Business portfolio | Facebook and Instagram pages, ad accounts, pixel | Social presence and paid social |
| App store accounts (Apple, Google Play), if you have an app | Publishing and updating the app | Any app update, including a security fix |
| Shipping carrier and 3PL portals | Labels, collections, invoices | Dispatch |
| Bookkeeping software | The accounting records | Filing, VAT, the year end |
| Password manager | Every other password | Everything above, if it has one owner |
| The phone numbers and devices used for 2FA | The second factor of most of the above | Login to most of the above |
Two rows deserve a second look. The password manager is itself a key, and a password manager with one owner just moves the single point of failure into a nicer box. And the phone in someone's pocket is a key, because for many accounts it is the second factor.
The domain is the key to every other key
The list looks flat, but it is not. Almost every account on it can be recovered with a password reset email, and that email goes to an address on the shop's domain. So whoever controls the domain controls the email, and whoever controls the email can reset nearly everything else. Lose the domain and you do not lose one key, you lose the way back into all of them.
The chain explains why the order of the fixes matters. Secure the top of it first.
Example: tracing one password reset at Wrenfield Home
Callum picks one account at random, the Stripe dashboard, and traces how it would be recovered if Priya forgot her password.
- Stripe sends a reset link to priya@wrenfieldhome.example.
- That mailbox lives in the shop's email service, which only works while the domain's DNS points to it.
- The DNS is hosted at the registrar, inside Callum's personal registrar account.
- The registrar account is protected by a code from Callum's phone.
So the recovery of the payment account, which belongs to Priya, runs through Callum's phone. Nobody designed it this way. It grew, one sensible decision at a time.
Five ways a key goes missing
The failures repeat from business to business. Here are the five I would look for first, each with what the official rules say.
The domain expires
Domains are rented, not bought, usually a year at a time. If the renewal fails, the registries have a fixed sequence of steps, and the clock is shorter than most people think.
For generic domains such as .com, ICANN's Expired Registration Recovery Policy requires the registrar to send at least two reminders before expiry, one about a month ahead and one about a week ahead, and another within five days after expiry if the domain was not renewed. During the last eight days in which the old owner can still renew, the registrar must interrupt DNS resolution, so the website and email stop working. After deletion, the registry keeps the name in a redemption grace period of 30 days in which it can still be restored2. ICANN's explanation of the status codes adds that the domain is purged five calendar days after the redemption period ends, and is then available to anyone3.
For .uk names, Nominet's process runs from the expiry time. For the first 30 days the domain stays fully operational and can be renewed. From day 30 to day 90 it is in a redemption period: it can still be renewed, but it no longer resolves, so website and email are down. From day 90 to day 95 it can no longer be renewed, and at day 95 it drops, at a time Nominet publishes in a daily drop list4. Nominet emails the registrant one day after expiry, 23 days after (a suspension warning), 30 days after (the suspension notice) and 83 days after (a cancellation warning)5.
The published drop list is exactly why a lapsed name with traffic is at risk. Anyone can read the list and try to register the name the moment it drops. This is called drop catching, and a shop that lost its name this way has to buy it back, if the new owner is willing to sell at all.
Example: the renewal that went to the wrong inbox
Assume, as an invented example, that Wrenfield Home's real domain is a .co.uk name that expires on 3 March 2027, and that the card stored at the registrar expired at the end of February.
| Day after expiry | Date | What happens under Nominet's rules |
|---|---|---|
| 0 | 3 March | Renewal fails, registrar emails Callum's personal address |
| 1 | 4 March | Nominet's expiry email goes to the registrant contact, also Callum |
| 23 | 26 March | Suspension warning, same address |
| 30 | 2 April | The name stops resolving: website and email down |
| 83 | 25 May | Cancellation warning |
| 90 | 1 June | No longer renewable |
| 95 | 6 June | The name drops and can be registered by anyone |
Every warning was sent on time. Every one of them went to the person who was not looking. If Callum is on a two day trek when day 30 arrives, the shop loses two days. If he has left the business, it could lose the name.
The account belongs to someone else
The second failure is ownership. An agency opens the Google Ads account under its own manager account, or a former employee registers Google Analytics with a personal Gmail address. The shop pays for everything, but the top role belongs to someone else.
The platforms are clear about who holds the power. In Google Ads, only a user with Admin access can give access, change access levels and remove other users. Standard access can run campaigns but cannot manage users6. In Google Search Console, a verified owner is someone who proved ownership with a token, for example a DNS record, and a delegated owner is someone a verified owner added. If all verified owners are removed, every remaining user and delegated owner loses access7. So if the only verified owner was the agency's employee, the shop's own access hangs on a token someone else placed.
Example: who controls the advertising accounts
Wrenfield Home spends £14,000 a month on Google and Meta. In the invented audit, Callum finds that the Google Ads account was created four years ago by the shop's first agency. The agency still has Admin access. Priya has Standard access: she can change campaigns but cannot add or remove anyone, and she cannot remove the agency. Four years of conversion history and audiences sit in an account the business pays for but does not control. The fix is a polite email asking the agency to make Priya an Admin, followed by Priya making Callum a second Admin. It takes ten minutes while relations are good, and can take weeks once they are not.
Two factor authentication tied to one phone
Two factor authentication is one of the best protections a business has. The UK's National Cyber Security Centre (NCSC) calls two step verification one of the most effective ways to protect online accounts8. And yet the UK government's Cyber security breaches survey 2025/2026 found that only 47% of businesses had any form of 2FA for their networks or applications, while 43% had identified a cyber breach or attack in the previous twelve months, with phishing the most common type at 38%9.
The catch is the device. When the second factor is an app on one phone, the phone becomes a key. Lose it, break it, or lose the person carrying it, and the account is locked even to its rightful owner.
Passkeys and hardware security keys solve the phishing problem and, set up properly, the single device problem. A passkey is a login built on the FIDO2 and Web Authentication standards: a cryptographic key pair is created for each website, the private part never leaves your device or your password manager, and you unlock it with a fingerprint, face or device PIN10. The NCSC said in April 2026 that passkeys should now be consumers' first choice of login, and that they are highly resistant to phishing because they cannot be intercepted, reused or guessed like passwords11. Its guidance adds that a credential manager can back passkeys up and sync them to other trusted devices, so losing one device does not have to mean losing access12. Germany's Federal Office for Information Security (BSI) gives the practical rule for physical security keys: buy a second one as a spare, because each key needs its own passkeys registered13.
Example: one phone, two key accounts
Priya's Meta Business portfolio and her Stripe login both use text message codes to her mobile number. Her phone is the second factor for the shop's social presence and its payment account. In the invented audit, she moves both to passkeys stored in the company password manager, registers two hardware keys on Stripe, and keeps one key in the office safe. If her phone is lost on Friday night, the shop still takes payments on Saturday.
The recovery route runs in a circle
The fourth failure is the hardest to spot. Every account has a recovery route, and sometimes it loops back into the thing you are trying to recover. The registrar account's recovery email is an address on the domain. The domain is what lapsed. So the email that would let you into the registrar account cannot arrive.
The same loop appears with the email service itself. If the only administrator of the shop's mailboxes is locked out, the reset goes to a mailbox that administrator controls. Google's own guidance for Workspace says an organisation should have more than one super administrator account, each managed by a different person, that super administrators should use a separate everyday account, and that administrators should enrol more than one security key14.
Example: breaking the loop
Callum lists the recovery address of every key account. Seven of them recover to an address on wrenfieldhome.example, including the registrar account and the email administrator. He changes the registrar account's recovery address to a mailbox on a second, independent domain the company owns, which costs a few pounds a year, and adds Priya as a second email super administrator with her own login and her own security key. The loop is broken in under an hour.
Roles only one person can hold
Some roles are single by design. Stripe states that there can only be one Owner for an account, and that only the owner can transfer ownership15. Apple's developer programme has one Account Holder who renews the membership and accepts the legal agreements, and the role can only be transferred to another team member with the authority to bind the organisation16. GitHub recommends that at least two people in each organisation hold the owner role, because projects can become inaccessible if a sole owner is unreachable17.
A role that can only be held by one person is fine, as long as that person is the right one and a deputy with nearly the same rights exists. In Stripe that means the owner is a director of the business and a second person is an Administrator.
Example: who is the Stripe owner?
At Wrenfield Home the Stripe owner is Priya, which is right: she is the director. But nobody else is an Administrator, so if Priya is ill for a fortnight, nobody can change the payout account or invite anyone. Callum is made an Administrator, with his own login and a passkey, and the change is noted in the access register described later in this chapter.
What a missing key costs: the expected value
Now the money. A missing key is not a monthly leak, it is an event that might happen. The tool for pricing something that might happen is the expected value: the cost if it happens, multiplied by the chance that it happens.
Here is the expected cost per year, is the probability that the event happens in a given year, and is the cost if it does. The Foundations: expected value section explains why multiplying a cost by its probability gives a fair yearly figure.
The cost of an outage has two parts: the orders lost while the shop is down, and the effort to recover.
Here is the number of orders lost, is the contribution per order, and is the recovery effort in money. Contribution is the right measure for the lost orders, not revenue, because the shop also saves the cost of goods, the payment fee and the parcel on an order it never takes. Foundations: ratios and rates covers why a margin is a rate applied to revenue.
Example: two days without the domain
The fixed figures of the series say that a two day outage costs 132 orders. That follows from the order volume: 1,980 orders a month over 30 days is 66 orders a day.
Two days of orders each gives . At a contribution of £19.86 per order:
So the orders lost are worth £2,621.52 in contribution. For recovery effort I assume 2.5 developer days, at £650 a day (an assumed market rate for the example, not my price; my own prices are on the transparency page), so pounds: tracking down the registrar, proving identity, restoring email, checking every sender record from the chapter on order emails in spam once the domain is back.
So one outage costs pounds. The series assumes, as a labelled invented figure, a 5% chance a year that something like this happens to a shop without the fixes.
With , the expected cost is about £212 a year. That is the honest number, and it is small. With the fixes in this chapter I assume, again as an invented figure, that the chance falls to 1% a year.
The difference, , means the fixes are worth about £170 a year in expected value. The annual probability falling from 5% to 1% is the state after the fixes that the last chapter of this series uses too.
Why the expected value is not the reason to act
If £170 a year were the whole story, I would not have written this chapter. Three things make the average misleading.
First, the chance adds up over time. A 5% chance a year sounds remote, but a shop runs for many years. The probability that the event happens at least once in years is:
Here is the probability of at least one event in years and is the yearly probability. Foundations: probability explains why you multiply the chances of it not happening.
Here and . Over five years that is a 22.6% chance, close to one in four. Over ten years it is 40.1%. With the fixes, at 1% a year, the five year figure is 4.9%.
Second, two days is the gentle case. If the registrar account cannot be recovered quickly, or the name drops, the outage is not two days. As an invented illustration, two weeks offline would cost 924 orders, or £18,350.64 in contribution, before the cost of moving to a new name. A permanent loss of the domain is worse still: every printed parcel label, every link from other sites and every customer's saved bookmark points at a name the shop no longer owns.
Third, the cost of the fixes is mostly a few hours, once. I estimate, as invented figures, one developer day at the same assumed £650 and four hardware security keys at an assumed £50 each (£200): £850 once, plus about two hours of developer time a year for the quarterly review (£162.50). On expected value alone it barely pays: the yearly saving of about £170 only just covers the review time, and the £850 would practically never come back. On the shape of the risk, it is the best value insurance the shop will ever buy, because it removes most of the chance of a loss it could not absorb.
The fixes, in the order I would do them
The order follows the chain from earlier: secure the domain first, then email, then everything that resets through email.
Put every account in the company's name
An account belongs to whoever is named as its owner in the provider's records, not to whoever pays the invoice. The domain registrant should be the company, with a company address and a role mailbox such as admin@ that more than one person reads. The same goes for the cloud account, the code repository organisation, the advertising accounts and the carrier account.
People still log in as themselves. The company owns the account, and each person has a named login inside it. That is what makes it possible to remove a person without losing the account.
Example: moving the domain into the company's name
Callum creates a registrar account for Wrenfield Home Ltd, with the role address admin@wrenfieldhome.example and a recovery address on the company's second domain. He uses the registrar's process for moving a domain between two of its customer accounts, which keeps the same registrar and leaves DNS untouched. He then updates the registrant contact so the registry's reminders go to the role address that both he and Priya read. Total time: about 40 minutes, most of it waiting for a confirmation email.
At least two administrators, each with their own login
Every key account gets at least two people with the top role, and no shared logins. A shared login cannot be removed from one person, does not say who did what, and usually ends up with one person's phone as its second factor. Google recommends more than one super administrator for Workspace14 and GitHub recommends at least two owners for an organisation17. The same logic applies everywhere.
Two is the minimum, not the target. Two people who always travel together, or two people at the same agency, are one point of failure with two names.
Example: a second administrator for every key
| Account | First admin | Second admin |
|---|---|---|
| Registrar | Priya | Callum |
| Email (super administrator) | Priya | Callum |
| Code repository (owner) | Callum | Priya |
| Cloud hosting | Callum | Priya |
| Stripe | Priya (owner) | Callum (Administrator) |
| PayPal | Priya | Callum |
| Google Ads, Analytics, Merchant Center | Priya | Callum |
| Search Console (verified owner) | Priya, via DNS record | Callum, via HTML file |
| Meta Business portfolio | Priya | Callum |
Priya does not need to use the code repository. She needs to be an owner of it, so that the code the business paid for cannot become unreachable.
A password manager with shared vaults
A business password manager stores every login in an encrypted vault and lets you share a vault with named people. It solves the spreadsheet of passwords, the sticky note and the "ask Callum". The vault itself must follow the same rules: owned by the company, at least two administrators, and a documented way back in if both forget their master passwords. 1Password, Bitwarden and LastPass are common choices. Kamal, the deployment tool Rails 8 ships with, can read deployment secrets from all three18.
Example: what goes into Wrenfield Home's vaults
Callum sets up three shared vaults. "Business" holds the registrar, email, payments, advertising, carrier and bookkeeping logins, shared with Priya and Callum. "Engineering" holds the cloud account, the repository's recovery codes and the production key of the Rails application, shared with Callum and Priya. "Operations" holds the 3PL and carrier portal logins, shared with the warehouse lead. Every recovery code printed when 2FA was switched on goes into the vault next to its account.
Passkeys or hardware keys, and always a spare
Switch every key account to passkeys or hardware security keys where the provider supports them, and register at least two for every administrator: one used daily, one kept somewhere safe. Text message codes are better than nothing, but a phone number can be moved to another SIM card, and the phone is still a single device.
Example: four keys for two people
Priya and Callum each get two hardware keys. Each person registers both of their keys on the registrar, email, Stripe and the code repository. One key lives on each key ring, the second in the office safe in a labelled envelope. Where a provider only supports authenticator apps, the app's backup codes go into the vault.
Recovery written down, and tested once
For each key account, write down in one line how you would get back in if the main administrator vanished: which second admin, which security key, which recovery codes, which support route. Then test the riskiest one. A recovery route that has never been tried is a hope, not a route.
Example: the registrar test
Priya signs in to the registrar from her own laptop with her own key, without Callum's help, and checks three things: the renewal date, the card on file and the contacts. It takes twelve minutes and finds that the card on file still expires in February. That leads to the next fix.
Automatic renewal, a card that will not lapse unseen, and a registrar lock
Turn on automatic renewal for every domain, renew for several years at a time where the registry allows it, and put the renewal on a payment method whose expiry someone watches. Company cards expire. The renewal date of a card goes in the access register next to the domain it pays for.
Then ask the registrar for a transfer lock. In the registry's terms this is the status clientTransferProhibited, which tells the registry to reject requests to transfer the domain to another registrar. The statuses clientUpdateProhibited and clientDeleteProhibited block changes and deletion the same way3. A lock does not stop expiry, but it stops a stolen registrar login from moving the name away quietly.
Example: three changes in one sitting
Callum turns on automatic renewal, extends the .co.uk name by three years, switches the payment method to the company's main card and adds that card's expiry date to the access register. He asks the registrar to set the transfer, update and delete locks. The registry record now shows them, which anyone can check with a public lookup, as the developer section below shows.
An access register, reviewed every quarter
The access register is the one document that holds all of this together: for each key, the provider, the legal owner, the people with the top role, the 2FA method, where the recovery codes are, the renewal date and the card that pays for it. It holds no passwords. The passwords live in the vault, the register says who holds what.
Example: the first lines of Wrenfield Home's register
| Key | Provider | Legal owner | Admins | 2FA | Recovery | Renews | Paid by | Reviewed |
|---|---|---|---|---|---|---|---|---|
| Domain (.co.uk) | Registrar | Wrenfield Home Ltd | Priya, Callum | Hardware keys, two each | Codes in Business vault | 3 March 2030 | Company card, expires 09/2028 | 20 November 2026 |
| Google Workspace | Wrenfield Home Ltd | Priya, Callum | Hardware keys, two each | Second super admin | Monthly | Company card | 20 November 2026 | |
| Code repository | GitHub | Wrenfield Home Ltd | Callum, Priya | Passkeys | Codes in Engineering vault | Monthly | Company card | 20 November 2026 |
| Payments | Stripe | Wrenfield Home Ltd | Priya (owner), Callum | Hardware keys | Second Administrator | Not applicable | Not applicable | 20 November 2026 |
| Google Ads | Wrenfield Home Ltd | Priya, Callum | Passkeys | Second Admin | Not applicable | Company card | 20 November 2026 |
The legal owner, the admins and the renewal date are the three columns that matter most. Everything in the register is invented for the example.
Leaving a supplier without losing anything
Developers, agencies and contractors come and go. The fixes above mean a departure is a checklist, not a crisis: remove the person's login from every account in the register, rotate any shared secret they knew, confirm that the company still holds the top role, and update the register. In my own work the client owns the shop, its code, its data and its accounts, and the code belongs to the client once paid. That should be true of any supplier, and the access register is how you can see that it is.
Example: the old agency leaves
When the first agency's contract ends, Callum works through the register line by line. The agency loses Admin access to Google Ads after Priya has become an Admin, its verification token is removed from Search Console after Priya and Callum are verified owners, and its user is removed from the Meta Business portfolio. Nothing is lost, because nothing depended on the agency any more. Search Console's own guidance is the reminder for the last step: a removed owner can verify again if their old token is left in place7.
For developers: the keys inside the code
The shop's own code holds keys too, and a developer can make the business safer in a few small, testable pieces. Everything below is for a Ruby on Rails 8 shop on Solidus with PostgreSQL.
The Rails master key is a key
Rails keeps the application's secrets, such as API keys for payments and email, in an encrypted credentials file in the repository. The file is useless without the key that decrypts it, config/master.key or a per environment key such as config/credentials/production.key, and the Rails guide says never to commit that key to source control19. That is correct, and it also means the key exists only where someone copied it.
The default Kamal secrets file that a new Rails 8 application generates reads the key straight from the developer's disk:
# .kamal/secrets, as generated by Rails 8
RAILS_MASTER_KEY=$(cat config/master.key)
If the only copy of that file is on Callum's laptop, the next deploy after Callum leaves will fail, and nobody can read the stored credentials. The same generated file shows the better pattern as a comment, and Kamal's documentation describes adapters for 1Password, LastPass and Bitwarden20 18. With the shared vault it looks like this:
# .kamal/secrets, reading the key from the shared Engineering vault
SECRETS=$(kamal secrets fetch --adapter 1password --account wrenfield --from Engineering/Production RAILS_MASTER_KEY)
RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY ${SECRETS})
Now any administrator of the Engineering vault can deploy, and nobody needs a file on one laptop.
Example: the deploy test
Callum asks Priya to run a deploy from her own laptop, following the written steps, with the key coming from the vault. It works on the second try, after they notice the 1Password command line tool was not installed. That small failure is exactly what the test is for.
Who is an admin in Solidus, and when did they last sign in
The shop's own admin area is another key. In Solidus, roles live in the spree_roles table and are linked to users through spree_roles_users21. With the solidus_auth_devise extension, the users table records each sign in, including last_sign_in_at22. This query, in PostgreSQL, lists every admin with the time since their last sign in:
-- PostgreSQL: every Solidus admin and when they last signed in
SELECT u.email,
u.last_sign_in_at,
now() - u.last_sign_in_at AS since_last_sign_in
FROM spree_users u
JOIN spree_roles_users ru ON ru.user_id = u.id
JOIN spree_roles r ON r.id = ru.role_id
WHERE r.name = 'admin'
AND u.deleted_at IS NULL
ORDER BY u.last_sign_in_at NULLS FIRST;
The deleted_at condition leaves out accounts that were already soft deleted.
Example: the result at Wrenfield Home
| last_sign_in_at | since_last_sign_in | |
|---|---|---|
| test@wrenfieldhome.example | (never) | (never) |
| dev@oldagency.example | 14 September 2025 | 432 days |
| callum@wrenfieldhome.example | 19 November 2026 | 1 day |
| priya@wrenfieldhome.example | 20 November 2026 | 0 days |
The rows are invented. Two of the four admins should not exist: a test account that never signed in and the old agency's developer, who still has full access to orders, customers and refunds fourteen months after the contract ended. Callum removes the admin role from both and records it in the release register.
A weekly job that reads the register
The register is a document for people, but its dates can be checked by a machine. Callum keeps a copy of the non secret columns as YAML in the private repository and writes a small class, test first, that finds the problems.
# config/access_register.yml (no passwords, only who holds what)
keys:
- key: Domain registrar
owner_entity: Wrenfield Home Ltd
admins: [Priya, Callum]
renews_on: 2030-03-03
reviewed_on: 2026-11-20
- key: Bookkeeping software
owner_entity: Wrenfield Home Ltd
admins: [Priya]
renews_on: 2026-12-15
reviewed_on: 2026-08-14
The tests come first and describe the rules in plain words:
# test/models/access_register_test.rb
require "test_helper"
class AccessRegisterTest < ActiveSupport::TestCase
def entry(**overrides)
AccessRegister::Entry.new(
key: "Domain registrar", owner_entity: "Wrenfield Home Ltd",
admins: ["Priya", "Callum"], renews_on: Date.new(2030, 3, 3),
reviewed_on: Date.new(2026, 11, 20), **overrides
)
end
test "a key held by one person is a problem" do
problems = AccessRegister.problems([entry(admins: ["Priya"])], today: Date.new(2026, 11, 20))
assert_includes problems, "Domain registrar: fewer than two admins"
end
test "a renewal within 45 days is a problem" do
problems = AccessRegister.problems([entry(renews_on: Date.new(2026, 12, 15))], today: Date.new(2026, 11, 20))
assert_includes problems, "Domain registrar: renews on 2026-12-15, check the card"
end
test "a healthy key raises nothing" do
assert_empty AccessRegister.problems([entry], today: Date.new(2026, 11, 20))
end
end
Then the class that makes them pass:
# app/models/access_register.rb
class AccessRegister
COMPANY = "Wrenfield Home Ltd"
Entry = Data.define(:key, :owner_entity, :admins, :renews_on, :reviewed_on)
def self.load(path = Rails.root.join("config/access_register.yml"))
YAML.load_file(path, permitted_classes: [Date]).fetch("keys").map do |row|
Entry.new(
key: row.fetch("key"), owner_entity: row.fetch("owner_entity"),
admins: Array(row["admins"]), renews_on: row["renews_on"],
reviewed_on: row.fetch("reviewed_on")
)
end
end
def self.problems(entries, today: Date.current)
entries.flat_map do |e|
found = []
found << "#{e.key}: fewer than two admins" if e.admins.size < 2
found << "#{e.key}: held by #{e.owner_entity}, not #{COMPANY}" unless e.owner_entity == COMPANY
found << "#{e.key}: renews on #{e.renews_on}, check the card" if e.renews_on && e.renews_on <= today + 45
found << "#{e.key}: last reviewed #{e.reviewed_on}" if e.reviewed_on < today - 100
found
end
end
end
Data.define needs Ruby 3.2 or later, which Rails 8 requires anyway. YAML.load_file only loads dates when Date is a permitted class, which is why it is listed.
A job runs the checks and sends the result. Rails 8 ships with Solid Queue, which runs recurring jobs defined in config/recurring.yml23. The job and its schedule:
# app/jobs/keys_check_job.rb
class KeysCheckJob < ApplicationJob
queue_as :default
def perform
problems = AccessRegister.problems(AccessRegister.load)
stale = Spree.user_class.admin.where("last_sign_in_at < ? OR last_sign_in_at IS NULL", 90.days.ago)
problems += stale.map { |u| "Admin #{u.email} has not signed in for 90 days" }
KeysMailer.with(problems:).weekly.deliver_now if problems.any?
end
end
# config/recurring.yml
production:
keys_check:
class: KeysCheckJob
schedule: every monday at 8am
The admin scope comes from solidus_auth_devise's user model. KeysMailer is an ordinary Action Mailer class with one method, and it sends to Priya and Callum at addresses on the company's second domain as well as the shop's own. A warning about the domain must never depend only on the domain. The chapter on silent failures explains how to route alarms to a phone so they are seen.
Example: the first Monday
The first run finds two problems: the bookkeeping software has one admin, and its subscription renews on 15 December on a card that expires in November. Both were invisible on Friday. Both are fixed by Wednesday.
Watching the domain's expiry date from the registry
The renewal date in the register is what someone typed. The registry's own record is the truth. Registries publish it through the Registration Data Access Protocol (RDAP), a web service that returns domain data as JSON, defined in RFC 9083. An event with the action "expiration" carries the expiry date24. RFC 9224 describes how a client finds the right RDAP server for each top level domain through a bootstrap file that IANA publishes25. At the time of writing, that file lists Nominet's server for .uk names26.
# app/models/domain_expiry.rb
require "net/http"
class DomainExpiry
NOMINET_RDAP = "https://rdap.nominet.uk/uk/domain/"
def self.for(domain)
response = Net::HTTP.get_response(URI(NOMINET_RDAP + domain))
return nil unless response.is_a?(Net::HTTPSuccess)
event = JSON.parse(response.body).fetch("events", []).find { |e| e["eventAction"] == "expiration" }
event && Time.iso8601(event["eventDate"]).to_date
end
end
Calling DomainExpiry.for with the shop's .co.uk name returns the expiry date the registry holds. The weekly job compares it with today and with the register, and adds a problem when the registry date is less than 60 days away. The same RDAP response lists the status codes, so the job can also confirm that the transfer lock is still set. Not every country code domain publishes RDAP data: at the time of writing IANA's bootstrap file has no entry for .de, .at or .ie, so for those the registrar's account is the source.
Example: what the registry says
For the invented .co.uk name, the response has an expiration event dated 3 March 2030, after Callum's three year extension, and the status list shows the client transfer, update and delete locks. The job's line for the domain stays silent, which is exactly what a healthy key should do.
The law: availability is part of security
Keys are not only a business risk. Where they guard personal data, they are a legal duty. This is general information, not legal advice.
The UK GDPR requires appropriate technical and organisational measures, and lists among them the ability to ensure the ongoing confidentiality, integrity, availability and resilience of systems, and the ability to restore the availability of and access to personal data in a timely manner after an incident27. The Information Commission (formerly the Information Commissioner's Office, ICO) describes a personal data breach as a security incident affecting the confidentiality, integrity or availability of personal data, lists loss of availability as an example, and says a notifiable breach must be reported without undue delay and no later than 72 hours after becoming aware of it28. A former agency that still has admin access to the customer list, or a shop whose order data nobody can reach, can both be breaches in this sense.
Records are the second duty. A private company must keep its accounting records for three years under the Companies Act 200629, and HMRC asks for six years from the end of the last financial year they relate to30. If the bookkeeping software belongs to a former bookkeeper's practice, or its only admin has left, the business may not be able to show the records it is required to keep.
Example: the former agency's access
Under the invented audit, the old agency's developer had admin access to every order and customer address in Solidus fourteen months after the contract ended. Nothing suggests the access was used. Callum removes it, keeps a note of when it was found and removed, and Priya decides with her adviser whether anything needs reporting. The lesson for the register is a new column: the date each person's access was last confirmed as still needed.
The quarterly check
Every quarter, Priya and Callum spend about 30 minutes on this list. It is short on purpose, so that it actually happens.
- Open the access register. For each key, is the legal owner the company and are there at least two admins?
- Check the renewal date of every domain and subscription in the next six months, and the expiry date of every card that pays for one.
- Look up each domain's registry record and confirm the expiry date and the transfer lock.
- Run the Solidus admin query. Remove anyone who should no longer be there.
- In Google Ads, Analytics, Merchant Center, Search Console, Meta and Stripe, list the users and compare them with the register.
- Confirm each admin has at least two security keys or passkeys, and that recovery codes are in the vault.
- Run the deploy from the second person's machine, with the key from the vault.
- Try one recovery route for real, a different account each quarter.
- Update the reviewed date in the register.
Example: the first quarter's numbers
At the first review in February 2027, the invented register has 23 keys. All 23 are in the company's name, up from 14. 21 have two admins, up from 8. The two left are the carrier portal and the 3PL portal, where the warehouse lead is being added. No renewal is due within 45 days. One Google Analytics user from the old agency is still there and is removed. The recovery test this quarter is the email super administrator, and it works. The whole check takes 35 minutes.
My view
My view: key person risk is the one leak in this series that should never be judged by its expected value. The expected value is small, about £212 a year for the example shop, and it will never top a list sorted by money. But it is the only leak here that can take the whole business offline at once, and in the worst case take its name away for good. Insurance is priced on what you cannot afford to lose, not on the average.
The good news is that almost all of the fix is ownership and habit, not technology. Put the accounts in the company's name. Give every key a second holder. Keep the recovery codes and a spare security key somewhere both people can reach. Write the register and look at it four times a year. None of this requires a new tool or a large budget, and most of it is ten minutes per account.
I would also say this plainly to any shop owner working with a developer or an agency, including me: you should be able to answer, today, who holds each key, and every answer should start with your company's name. A supplier who resists that is telling you something important.
Conclusion
A shop runs on a few dozen keys: the domain, the email, the hosting, the code, the payment providers, the advertising and analytics accounts, the carrier and the bookkeeping software, each with its own second factor and recovery route. When one person holds a key alone, the business carries a risk that no dashboard shows and that costs nothing until the day it costs a great deal.
For the example shop, a two day outage costs 132 orders and £2,621.52 in contribution, plus recovery. At an assumed 5% a year, the expected cost is about £212, falling to about £42 with the fixes. The average is small. The risk over years is not, at about one in four over five years without the fixes. Secure the chain from the top: the domain and its renewal, then email, then every account that resets through email. Two admins everywhere, accounts in the company's name, passkeys or hardware keys with spares, an access register, and a 30 minute check every quarter.