Your developer is gone: what to secure in the first week

Your developer is gone: what to secure in the first week

The freelancer has stopped answering. The agency has closed, or moved your project to people who have never seen it. The one developer on staff has handed in their notice. The application still works this morning, and that is the dangerous part: nothing forces you to act until something breaks, and by then the person who knew how to fix it has gone.

The first week decides how hard the rest will be. This checklist is in the order we would do it, and most of it needs no technical knowledge. It needs logins, patience and a list.

Before anything else: three rules

  • Change nothing on the server yet. No updates, no clean-up, no "quick fix" by a friend who knows PHP. For now the server may be the only complete copy of your system.
  • Get your own access before removing anyone else's. If you lock the previous developer out of an account that only they can administer, you lock yourself out too.
  • Write everything down as you find it. One document: every account, who owns it, who can log in, when it renews. This list is the first piece of documentation your system has had, and whoever takes over will ask for it on day one.

The first week

1. The domain and DNS

Start with the domain, because losing it takes everything offline at once: the website, the application and the company's email.

  • Find out where the domain is registered and whose name and email are on the registration.
  • Log in yourself. Check the expiry date, that automatic renewal is on, and that the payment card is the company's.
  • Find out where the DNS records are managed. It is often a different company from the registrar.

If the domain is registered in the developer's name, ask them to transfer it now, while relations are still workable. We have written up an outage caused by DNS alone, on a system whose servers were healthy.

2. Hosting and cloud accounts

  • Who owns the hosting or cloud account, and whose card pays for it?
  • Can you log in as the account owner, not only as a user inside it?
  • Where do the invoices and warning emails go?

The worst case is a system that runs inside the developer's own account, alongside their other clients. It can't simply be handed over. It has to be moved to an account of yours, and that is a small project. Find out in week one, not on the day their card expires.

3. Take a full copy

Before anyone touches anything, make a copy of the whole system and keep it somewhere you control: the code as it is on the server, the database, and the uploaded files. On a cloud server, a snapshot of the whole machine is the quickest way. This copy is your way back from every mistake made after it.

4. The code

Ask where the code repository is, and who owns it. There are three common answers.

  • The company owns it. Check that you can log in as owner, and go to step 5.
  • The developer owns it. This is very common. On one takeover, the client had no repository of its own at all: the code lived in the previous developer's account. We created a repository in the client's name and pushed the codebase there. Automated releases and backups came after that.
  • There is no repository. Then the production server holds the only copy, and the copy from step 3 is the starting point. The code can be put under version control from there. It is more common than you would think, and it is recoverable.

Whichever answer you get, the code should end the week in a repository that belongs to the company.

5. Check that the repository matches the server

A repository is only useful if it holds what is running. Often it doesn't. Fixes are made directly on the server, or files are uploaded by FTP, and nobody adds them to the repository afterwards.

On one system we took over, the first look at the production server showed three things:

  • six changes that had been recorded on the server and never sent to the repository;
  • a set of files edited in place and never recorded at all, among them configuration, database queries and page templates;
  • a database dump left lying in the application folder.

A developer who released a new version from the repository that day would have wiped out all of those changes, and with them behaviour the business relied on.

The check itself is read-only. If the server has Git, these commands show the state without changing anything. Forward them to whoever is helping you:

git status
git diff
git log origin/main..HEAD

Save the output to files. Then work through it: review each unsent change, compare each edited file, move what is needed into the repository, and only then bring the server back to a clean state.

What not to run on a production server in this state: git reset --hard, git checkout ., git clean, git pull, or a deployment. Each of them can destroy the only copy of a change.

6. The database and backups

  • Is there an automatic backup? Ask to see the last one, with its date and size.
  • Is it stored somewhere other than the server itself?
  • Has anyone ever restored from it?

If the answer to any of these is no, a daily backup to separate storage is the first thing to set up. It comes before every improvement.

7. Keys, passwords and third-party services

List every outside service the application uses: payments, email sending, maps, SMS, storage, analytics. For each one, find out whose account it is.

Watch for services that run on the developer's personal account. We have seen applications that reach cloud storage with access keys belonging to the developer personally. When that person closes the account or the keys expire, part of your system stops, and nothing in your own accounts will explain why.

Don't change all the passwords and keys at once. A key may be used in places nobody remembers, and replacing it blindly breaks production. First find where each one is used. Then replace them one at a time.

8. Remove access that is no longer needed

Do this last, once you have owner access everywhere and a copy of everything. Remove the previous developer from the server, the cloud account, the repository, the admin area and every outside service, and change any password they knew. This says nothing about the person. An account that nobody is watching is a risk in itself.

If the parting was hostile, move this step forward. It still comes after your own owner access and the full copy.

What to ask the previous developer

If they are still reachable, ask now. Offer to pay for a few hours of handover. It is the cheapest knowledge you will ever buy.

  1. Where does everything run, and which accounts does it use?
  2. How do you release a new version, step by step?
  3. Are there changes on the server that are not in the repository?
  4. What runs on a schedule, such as nightly jobs, imports and emails?
  5. What breaks most often, and how do you fix it?
  6. Which outside services does it depend on, and where are their keys?
  7. Where are the backups, and have you ever restored one?
  8. Is anything running on an account of yours?
  9. What were you planning to fix and never got to?
  10. What should nobody touch without asking you first?

If the developer can't be reached

  • The domain. Registrars have a recovery process for the rightful owner of a domain. Expect to prove who the company is, and expect it to take time. Start it straight away.
  • Hosting. If the account is in the company's name, the provider can restore access after checking your identity. If it is the developer's own account, you can't take it over. Plan to move the system to an account of yours, using whatever access you still have.
  • The code. A repository in someone else's account can't be claimed without them. The running code on the server can be copied, and a new repository starts from that.
  • Rights and contracts. If there is a dispute over who owns the code or the accounts, that is a matter for a lawyer. The technical steps above don't replace legal advice.

A handover helps, but it is not required. A system can be understood from what exists: the server, the database, the code and the way the application behaves.

What a new team should do first

Whoever takes over, the order should look like this. Be careful with a team that wants to begin with new features or with a rebuild.

  1. Secure access and take a copy. This is the checklist above.
  2. Write down what exists. Code, database, scheduled jobs, integrations and accounts, with the risks ranked by what they could cost the business.
  3. Remove the urgent risks. Backups, secrets, open doors, overdue security updates.
  4. Make changes repeatable. A repository the company owns, a staging copy, and releases that follow the same steps every time.
  5. Only then improve.

What we find on takeovers is much the same from one to the next:

  • no backups, or backups nobody has tested;
  • releases made by hand;
  • weak passwords, and everything managed through one shared account;
  • passwords and keys written into the code;
  • services tied to the previous developer's personal accounts;
  • a server that has drifted away from the repository.

None of these means the system has to be rebuilt. On one inherited Laravel platform we set up backups first, rehearsed an overdue server upgrade on a copy, and slimmed a 15 GB repository so that automated releases became possible. On a property website built on Symfony 1, years of direct edits had pulled production away from version control, and bringing it back under Git was part of the work.

Short answers

Can a new developer take over without a handover?

Yes. It takes longer, because the picture has to be rebuilt from the system itself, but it is routine work for a team that does takeovers.

My developer has the only copy of the code. What can I do?

Check the production server first. The running application is a copy of the code, and if the server is in your account you already have it. Whether the developer owes you the repository is a contract question for a lawyer.

Should we rebuild, since nobody understands the system?

Not for that reason. "Nobody understands it" describes the documentation, not the code. Get it assessed first.

Where we fit

Taking over applications whose developer has gone is a core part of our work, with or without a handover, for PHP, Laravel and Symfony systems. It starts with a System Risk Check: a fixed-price review of the code, infrastructure, database and access, with a written report of the risks in priority order. After that, most clients move on to ongoing PHP application maintenance, so that the system is not left without anyone responsible for it again.

system risk check

Not sure what state your application is in?

A System Risk Check is a fixed-price technical audit of your application, database and infrastructure, with a written, prioritised report. The report is yours, whatever you decide next.