Lockdown mode

Close a project to the internet in one press when you think you're under attack, and show a maintenance page while you fix things.

Updated 30 November 2026

Lockdown mode is for the moment you think someone is inside your systems. One press cuts everything outside off from a project, so an intruder is thrown out and can do nothing more, and your public addresses show a maintenance page while you work on the fix.

What lockdown mode does

When you turn it on for a project, Dekka does six things in every environment of that project:

  • Every public address shows your maintenance page, with the status 503 so that search engines and monitors read it as a temporary closure.
  • Nothing outside the environment reaches its services, and a database or cache with a public TCP proxy stops accepting connections through it.
  • Each service is restarted once. A connection that was already open would otherwise stay open, so the restart is what drops it.
  • The firewall of your virtual servers closes to everything outside, except SSH from the addresses you list, and every connection that's open to or from a server ends at once. An SSH session from a listed address ends too, and you sign in again. The rules you had come back when you lift lockdown mode.
  • Each object storage bucket and queue gets new keys. They're reached with their own keys from anywhere, so a new key is what shuts out someone who took the old one. The apps connected to them restart with the new keys, and the old keys stop working for good. The keys you made for a bucket itself are revoked, and every link to a file that was made before stops working.
  • Every member of your organisation is emailed, and Dekka's own team is told, so we know you may need help.

Everything keeps running inside. Your services still reach their databases, caches and object storage, so you can read logs, look at metrics and deploy a fix. A deploy during lockdown mode stays closed, and an address you add shows the maintenance page too.

Turn it on

Choose Lockdown in the top bar of the dashboard. Inside a project you can lock down that project or every project in your organisation, and anywhere else the button locks down every project.

Under SSH to your virtual servers, list the addresses that may still open SSH, such as your office's address, or leave it empty to close SSH to everyone. The serial console in the dashboard works either way.

Tick Also reboot virtual servers if you think someone left a program running on one. Their connection ends either way, and a reboot stops what they started, unless they set it to start with the server.

Tick Also block outbound traffic if you think code that an intruder left behind is sending data out. Your services then stop reaching the internet, which also stops payment and SMS providers until you lift lockdown mode.

Only an owner or an admin can turn lockdown mode on, and an API key with admin access can too, so you can script it. The button turns solid and a notice appears on every page of the project, with each environment listed as Dekka closes it.

curl -X POST https://api.dekka.cloud/v1/projects/$PROJECT_ID/lockdown \
  -H "Authorization: Bearer $DEKKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"block_outbound": false, "ssh_allow": ["203.0.113.7"], "reboot_servers": true}'

To lock down every project at once, send the same body to /v1/orgs/$ORG_ID/lockdown.

Lift it

Choose Lockdown on in the top bar, then Lift beside the project. Its addresses reach its services again within seconds, and nothing is restarted. Lift it once you're sure the project is safe to open.

Lifting needs a person signed in to the dashboard. An API key can't lift lockdown mode or loosen one that's on, so a key an intruder has taken can't open what you closed.

When Dekka turns it on

Dekka's team can put a project into lockdown mode themselves. They do it when a project is harming the platform or other customers, or when it is being broken into and nobody in the organisation can be reached. Everyone in the organisation is emailed at once that Dekka's team did this.

A lockdown that Dekka's team holds can only be lifted by them, and its settings can't be loosened. The project's lockdown dialog says so. Open a request under Support in your dashboard, and once the cause is dealt with they lift it.

Set your maintenance page

Open the project's Settings and find Maintenance page. You can keep Dekka's page, put your own title, message and logo on it, or paste a page of your own HTML. The preview beside it is the page exactly as a visitor is sent it, and a project that is already in lockdown mode shows a new page at once.

A page of your own is served with a policy that runs no script and loads nothing but images and inline styles, so set its styles inline and load images over HTTPS.

While you're in lockdown mode

  • Make a new key for anything outside Dekka that used one of a bucket's own keys, under the bucket's Settings.
  • Give the new bucket and queue keys to anything of yours outside Dekka that used the old ones. They're in the variables of each connected service, and lifting lockdown mode doesn't bring the old keys back.
  • Rotate the other credentials an intruder may have seen: database passwords, API keys and the secrets in your environment variables.
  • Read the logs from before you locked down to find how they got in.
  • Reboot a virtual server you think someone left a program running on, if you didn't tick the box when you locked down, and rebuild one you can no longer trust.
  • Deploy the fix. It runs behind the closed door until you lift lockdown mode.
  • Write to security@dekka.cloud if you want our help.