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,962.08 in contribution. At an assumed 5% a year the expected cost is about €242, 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.

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 goes into the Shannon. 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 Shannonside Home

The example for the whole series is Shannonside Home, an invented online homeware shop in Limerick (shannonsidehome.example) run by Niamh, with Callum as her developer and data engineer. It takes about 1,980 orders a month at an average of €84, and each order leaves a contribution of €22.44 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. Niamh 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 Shannonside Home's single points

Niamh 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?

QuestionAccountsShare
Accounts listed23100%
Held in the company's name1461%
At least two people could get in without help835%
Held by one person who is not Niamh939%

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.

KeyWhat it controlsWhat breaks without it
Domain registrarWho owns the name and pays for itEverything, once the name lapses or moves
DNS hostingWhere the name points: website, email, verification recordsWebsite, email, sender authentication
Email (for example Google Workspace or Microsoft 365)Every mailbox and every password resetRecovery of every other account
Hosting and cloud accountsThe servers, the database, the backupsThe shop itself, and any restore
Code repositoryThe source code and its historyEvery change, every fix
Application secrets (in Rails the master key)Decryption of the shop's own credentialsDeploys, payment and email connections
Payment providers (Stripe, PayPal)Taking money and paying it outRevenue, refunds, payouts
Google Ads, Analytics, Merchant Center, Search ConsoleAdvertising, measurement, product listings, searchCampaigns, history, product feed
Meta Business portfolioFacebook and Instagram pages, ad accounts, pixelSocial presence and paid social
App store accounts (Apple, Google Play), if you have an appPublishing and updating the appAny app update, including a security fix
Shipping carrier and 3PL portalsLabels, collections, invoicesDispatch
Bookkeeping softwareThe accounting recordsFiling, VAT, the year end
Password managerEvery other passwordEverything above, if it has one owner
The phone numbers and devices used for 2FAThe second factor of most of the aboveLogin 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.

Tap or click to open full screen and move around

The chain explains why the order of the fixes matters. Secure the top of it first.

Example: tracing one password reset at Shannonside Home

Callum picks one account at random, the Stripe dashboard, and traces how it would be recovered if Niamh forgot her password.

  1. Stripe sends a reset link to niamh@shannonsidehome.example.
  2. That mailbox lives in the shop's email service, which only works while the domain's DNS points to it.
  3. The DNS is hosted at the registrar, inside Callum's personal registrar account.
  4. The registrar account is protected by a code from Callum's phone.

So the recovery of the payment account, which belongs to Niamh, 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 .ie names, the registry's own rules work a little differently. On the renewal date a .ie domain renews automatically for a year, and the registrar has to pay for it. If the fee stays unpaid, the domain is suspended on the 45th day after the renewal date. It is still registered to the holder, but the website and email on it stop working. The suspension lasts 30 days, during which it can still be renewed. Then the domain enters Pending Delete for five days, when it can no longer be renewed, and after that it is gone4.

Once a name is deleted, anyone can register it. A name with years of links and customers behind it is attractive, and people do watch for good names coming free. 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 Shannonside Home's real domain is a .ie name with its renewal date on 3 March 2027, and that the card stored at the registrar expired at the end of February. The registrar's reminders and invoices go to Callum's personal address.

Day after the renewal dateDateWhat happens under the .ie rules
03 MarchRenewal due, the registrar cannot charge the card and emails Callum
4517 AprilThe fee is still unpaid: the domain is suspended, website and email down
7517 MaySuspension ends, Pending Delete begins: no longer renewable
8022 MayThe domain is deleted and the name is free

Every reminder was sent. Every one of them went to the person who was not looking. If Callum is on a two day hike in Connemara when day 45 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 users5. 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 access6. 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

Shannonside Home spends €16,500 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. Niamh 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 Niamh an Admin, followed by Niamh 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 accounts7. 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%8. Those are UK figures, but there is no reason to think an Irish shop is any different.

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 PIN9. 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 passwords10. 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 access11. 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 registered12.

Example: one phone, two key accounts

Niamh'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 key13.

Example: breaking the loop

Callum lists the recovery address of every key account. Seven of them recover to an address on shannonsidehome.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 euro a year, and adds Niamh 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 ownership14. 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 organisation15. GitHub recommends that at least two people in each organisation hold the owner role, because projects can become inaccessible if a sole owner is unreachable16.

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 Shannonside Home the Stripe owner is Niamh, which is right: she is the director. But nobody else is an Administrator, so if Niamh 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.

E=p×CE = p \times C

Here EE is the expected cost per year, pp is the probability that the event happens in a given year, and CC 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.

C=n×m+RC = n \times m + R

Here nn is the number of orders lost, mm is the contribution per order, and RR 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.

n=2×198030=132n = 2 \times \frac{1980}{30} = 132

Two days of 6666 orders each gives n=132n = 132. At a contribution of €22.44 per order:

132×22.44=2962.08132 \times 22.44 = 2962.08

So the orders lost are worth €2,962.08 in contribution. For recovery effort I assume 2.5 developer days, at €750 a day (an assumed market rate for the example, not my price; my own prices are on the transparency page), so R=1875R = 1875 euro: 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.

C=2962.08+1875=4837.08C = 2962.08 + 1875 = 4837.08

So one outage costs C=4837.08C = 4837.08 euro. The series assumes, as a labelled invented figure, a 5% chance a year that something like this happens to a shop without the fixes.

E=0.05×4837.08=241.85E = 0.05 \times 4837.08 = 241.85

With p=0.05p = 0.05, the expected cost is about €242 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.

E=0.01×4837.08=48.37E = 0.01 \times 4837.08 = 48.37

The difference, 241.85−48.37=193.48241.85 - 48.37 = 193.48, means the fixes are worth about €193 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.

Bar chart of the example shop's expected yearly cost of a two day outage. Without the fixes, at an assumed 5% chance a year, the expected cost is €241.85. With the fixes, at an assumed 1% chance a year, it is €48.37. The cost of one outage is €4,837.08: 132 lost orders at €22.44 contribution plus €1,875 of recovery effort. Tap or click to open full screen and move around

Why the expected value is not the reason to act

If €193 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 tt years is:

Pt=1−(1−p)tP_t = 1 - (1 - p)^t

Here PtP_t is the probability of at least one event in tt years and pp is the yearly probability. Foundations: probability explains why you multiply the chances of it not happening.

P5=1−0.955=0.226P_5 = 1 - 0.95^5 = 0.226

Here t=5t = 5 and p=0.05p = 0.05. 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%.

Line chart of the cumulative probability of at least one key related outage over ten years. At an assumed 5% a year without the fixes, the chance rises from 5.0% after one year to 22.6% after five years and 40.1% after ten. At an assumed 1% a year with the fixes, it rises from 1.0% to 4.9% after five years and 9.6% after ten. Tap or click to open full screen and move around

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 €20,734.56 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 €750 and four hardware security keys at an assumed €55 each (€220): €970 once, plus about two hours of developer time a year for the quarterly review (€187.50). On expected value alone it barely pays: the yearly saving of about €193 only just covers the review time, and the €970 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 Shannonside Home Ltd, with the role address admin@shannonsidehome.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 Niamh 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 Workspace13 and GitHub recommends at least two owners for an organisation16. 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

AccountFirst adminSecond admin
RegistrarNiamhCallum
Email (super administrator)NiamhCallum
Code repository (owner)CallumNiamh
Cloud hostingCallumNiamh
StripeNiamh (owner)Callum (Administrator)
PayPalNiamhCallum
Google Ads, Analytics, Merchant CenterNiamhCallum
Search Console (verified owner)Niamh, via DNS recordCallum, via HTML file
Meta Business portfolioNiamhCallum

Niamh 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 three17.

Example: what goes into Shannonside Home's vaults

Callum sets up three shared vaults. "Business" holds the registrar, email, payments, advertising, carrier and bookkeeping logins, shared with Niamh and Callum. "Engineering" holds the cloud account, the repository's recovery codes and the production key of the Rails application, shared with Callum and Niamh. "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

Niamh 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

Niamh 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 for both domains, switches the payment method to the company's main card and adds that card's expiry date to the access register. He extends the second domain, a .com name used for recovery addresses, by three years and asks the registrar to set the transfer, update and delete locks on it. The .com 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 Shannonside Home's register

KeyProviderLegal ownerAdmins2FARecoveryRenewsPaid byReviewed
Domain (.ie)RegistrarShannonside Home LtdNiamh, CallumHardware keys, two eachCodes in Business vault3 March 2027, automaticCompany card, expires 09/202820 November 2026
EmailGoogle WorkspaceShannonside Home LtdNiamh, CallumHardware keys, two eachSecond super adminMonthlyCompany card20 November 2026
Code repositoryGitHubShannonside Home LtdCallum, NiamhPasskeysCodes in Engineering vaultMonthlyCompany card20 November 2026
PaymentsStripeShannonside Home LtdNiamh (owner), CallumHardware keysSecond AdministratorNot applicableNot applicable20 November 2026
Google AdsGoogleShannonside Home LtdNiamh, CallumPasskeysSecond AdminNot applicableCompany card20 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 Niamh has become an Admin, its verification token is removed from Search Console after Niamh 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 place6.

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 control18. 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 Bitwarden19 17. 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 Niamh 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_users20. With the solidus_auth_devise extension, the users table records each sign in, including last_sign_in_at21. 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 Shannonside Home

emaillast_sign_in_atsince_last_sign_in
test@shannonsidehome.example(never)(never)
dev@oldagency.example14 September 2025432 days
callum@shannonsidehome.example19 November 20261 day
niamh@shannonsidehome.example20 November 20260 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: Shannonside Home Ltd
    admins: [Niamh, Callum]
    renews_on: 2030-03-03
    reviewed_on: 2026-11-20
  - key: Bookkeeping software
    owner_entity: Shannonside Home Ltd
    admins: [Niamh]
    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: "Shannonside Home Ltd",
      admins: ["Niamh", "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: ["Niamh"])], 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 = "Shannonside 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.yml22. 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 Niamh 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 date23. RFC 9224 describes how a client finds the right RDAP server for each top level domain through a bootstrap file that IANA publishes24. At the time of writing, that file lists a server for .com but none for .ie, .de or .at25. So for the .ie name the registrar's account stays the source, and the register has to be right. For the .com recovery domain the job can look it up itself:

# app/models/domain_expiry.rb
require "net/http"

class DomainExpiry
  BOOTSTRAP = URI("https://data.iana.org/rdap/dns.json")

  def self.rdap_base(tld)
    services = JSON.parse(Net::HTTP.get(BOOTSTRAP)).fetch("services")
    match = services.find { |tlds, _urls| tlds.include?(tld) }
    match && match.last.first
  end

  def self.for(domain)
    base = rdap_base(domain.split(".").last)
    return nil unless base # no RDAP data for this ending, for example .ie

    response = Net::HTTP.get_response(URI("#{base}domain/#{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

The weekly job compares the result with the register and adds a problem when the registry date is less than 60 days away or differs from the register. The same RDAP response lists the status codes, so the job can also confirm that the transfer lock is still set.

Example: what the registry says

For the invented .com name, the response has an expiration event three years out, after Callum's extension, and the status list shows the client transfer, update and delete locks. For the .ie name the method returns nil, and the job uses the date from the register instead. The job's line for both domains 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 General Data Protection Regulation (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 incident (Article 32). A personal data breach includes the loss of personal data and unauthorised access to it (Article 4(12)), and a notifiable breach must be reported to the regulator without undue delay and, where feasible, within 72 hours (Article 33)26. In Ireland that regulator is the Data Protection Commission (DPC), which reminds organisations that they must notify it within 72 hours of becoming aware of a breach that presents a risk to the people affected27. A former agency that still has admin access to the customer list, or a shop whose order data nobody can reach, can both fall under these rules.

Records are the second duty. Under the Companies Act 2014, a company must keep its accounting records for at least six years after the end of the financial year they relate to28. 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 Niamh 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, Niamh and Callum spend about 30 minutes on this list. It is short on purpose, so that it actually happens.

  1. Open the access register. For each key, is the legal owner the company and are there at least two admins?
  2. 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.
  3. Look up each domain's registry record and confirm the expiry date and the transfer lock.
  4. Run the Solidus admin query. Remove anyone who should no longer be there.
  5. In Google Ads, Analytics, Merchant Center, Search Console, Meta and Stripe, list the users and compare them with the register.
  6. Confirm each admin has at least two security keys or passkeys, and that recovery codes are in the vault.
  7. Run the deploy from the second person's machine, with the key from the vault.
  8. Try one recovery route for real, a different account each quarter.
  9. Update the reviewed date in the register.
Tap or click to open full screen and move around

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 €242 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,962.08 in contribution, plus recovery. At an assumed 5% a year, the expected cost is about €242, falling to about €48 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.

Not sure who holds the keys to your own shop? Book the free workshop and we will draw up your access register together, and the first two weeks of work are on me. No bother if it turns out you are already grand.

Sources

  1. 1.

    Guilherme Avelino, Leonardo Passos, Andre Hora and Marco Tulio Valente, A novel approach for estimating truck factors, arXiv, 22 April 2016 (IEEE International Conference on Program Comprehension 2016), https://arxiv.org/abs/1604.06766

  2. 2.

    ICANN, Expired Registration Recovery Policy, 28 February 2013 (effective 31 August 2013, updated version published 21 February 2024), https://www.icann.org/resources/pages/errp-2013-02-28-en

  3. 3.

    ICANN, EPP status codes: what do they mean, and why should I know?, 16 June 2014, https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en

  4. 4.

    .IE, My domain has been suspended, what does this mean?, weare.ie FAQ, https://weare.ie/faq-list/my-domain-has-been-suspended-what-does-this-mean

  5. 5.

    Google, About access levels in your Google Ads account, Google Ads Help, https://support.google.com/google-ads/answer/9978556

  6. 6.

    Google, Managing owners, users, and permissions, Search Console Help, https://support.google.com/webmasters/answer/7687615

  7. 7.

    National Cyber Security Centre, Activate 2 step verification on your email, published 17 December 2018, reviewed 21 December 2021, https://www.ncsc.gov.uk/collection/top-tips-for-staying-secure-online/activate-2-step-verification-on-your-email

  8. 8.

    Department for Science, Innovation and Technology and Home Office, Cyber security breaches survey 2025/2026, GOV.UK, 30 April 2026, https://www.gov.uk/government/statistics/cyber-security-breaches-survey-20252026/cyber-security-breaches-survey-20252026

  9. 9.

    W3C, Web Authentication: An API for accessing Public Key Credentials, Level 3, https://www.w3.org/TR/webauthn-3/

  10. 10.

    National Cyber Security Centre, Leave passwords in the past: passkeys are the future, 23 April 2026, https://www.ncsc.gov.uk/news/ncsc-leave-passwords-in-the-past-passkeys-are-the-future

  11. 11.

    National Cyber Security Centre, Passkeys: what you need to know, https://www.ncsc.gov.uk/information/passkeys-what-you-need-to-know

  12. 12.
  13. 13.

    Google, Security best practices for administrator accounts, Google Workspace Admin Help, https://knowledge.workspace.google.com/admin/users/security-best-practices-for-administrator-accounts

  14. 14.

    Stripe, User roles, Stripe Documentation, https://docs.stripe.com/get-started/account/teams/roles

  15. 15.

    Apple, Transfer the Account Holder role, Apple Developer Account Help, https://developer.apple.com/help/account/access/transfer-the-account-holder-role

  16. 16.
  17. 17.

    Kamal, kamal secrets, Kamal documentation, https://kamal-deploy.org/docs/commands/secrets/

  18. 18.

    Ruby on Rails Guides, Securing Rails Applications, section on custom credentials, https://guides.rubyonrails.org/security.html

  19. 19.

    Ruby on Rails, kamal secrets template generated for new applications, GitHub, https://github.com/rails/rails/blob/main/railties/lib/rails/generators/rails/app/templates/kamal-secrets.tt

  20. 20.

    Solidus, Spree::RoleUser model (table spree_roles_users), GitHub, https://github.com/solidusio/solidus/blob/main/core/app/models/spree/role_user.rb

  21. 21.

    Solidus, solidus_auth_devise migration renaming the users table columns for Devise (last_sign_in_at), GitHub, https://github.com/solidusio/solidus_auth_devise/blob/main/db/migrate/20101026184950_rename_columns_for_devise.rb

  22. 22.

    Rails, Solid Queue, README section on recurring tasks, GitHub, https://github.com/rails/solid_queue

  23. 23.

    Scott Hollenbeck and Andy Newton, RFC 9083: JSON Responses for the Registration Data Access Protocol (RDAP), IETF, June 2021, https://www.rfc-editor.org/rfc/rfc9083

  24. 24.

    Marc Blanchet, RFC 9224: Finding the Authoritative Registration Data Access Protocol (RDAP) Service, IETF, March 2022, https://www.rfc-editor.org/rfc/rfc9224

  25. 25.

    IANA, RDAP bootstrap file for domain name space, https://data.iana.org/rdap/dns.json

  26. 26.

    Regulation (EU) 2016/679 (General Data Protection Regulation), Articles 4(12), 32 and 33, EUR Lex, https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679

  27. 27.
  28. 28.

    Companies Act 2014, section 285, Period for which accounting records are to be retained, Irish Statute Book, https://www.irishstatutebook.ie/eli/2014/act/38/section/285/enacted/en/html