What the switch is#
The switch is a single item in the access copy, a DynamoDB table called harebell-access in your own account. The front door and the gateway read that table on every decision. When the item for an app is there, the gateway refuses every call the app makes, and the front door refuses to open the app. Both notice within seconds. The switch stops one app, job or agent at a time.
Before you pull it, know two things. It cuts the app off from your people, your data, AI models and the internet, but it does not by itself shut down the app's running container, and the app still has the few paths that do not go through the gateway. And pulling it is deliberate and recorded: the item notes who pulled it, from where and why.
Steps#
- 1
Choose how to pull it#
Use the first way that works for you.
The console is the normal way. Open the app, scroll to the card titled If it has to stop, and press Pull the kill switch. You can type a reason, which the app's owner will see. Admins and security can do this. The control plane writes the item into your account first, so the cut-off happens within seconds, and then it also tries to stop the app's tasks.
The second way is a page that your own account serves. Open
https://auth.<org>.<region>.harebell.run/_harebell/kill-switch(for Initech in the us region that isauth.initech.us.harebell.run), sign in with your company login, and choose the app. Only security and admins may use it. This page runs on the front door in your account and writes straight to the table, so it works when the console is down. It also shows the command below.The third way is one AWS command, for anyone with AWS access to the account when neither of the others can be reached:
aws dynamodb put-item --region <region> --table-name harebell-access \ --item '{"pk":{"S":"stop#<app name>"},"sk":{"S":"stop"},"from":{"S":"aws"}}'Use your account's AWS region, and the app's name in lower case, exactly as it appears in the console. The item needs nothing else. A row with just those two keys counts as a stop.
- 2
Confirm it took#
Within a few seconds, the app should stop answering to people, and the Harebell console shows the app as Pulled with who pulled it and from where: the console, the sign-in page or the AWS CLI. If the control plane was reachable, it also records the switch and begins stopping the app's tasks.
Even a switch pulled while Harebell is unreachable is not forgotten. The control plane checks every app's switch about once a minute and, when it is reachable again, records anything pulled or lifted in your account while it was away, and then stops the tasks.
- 3
Deal with what the switch leaves running#
Because the switch cuts the app off rather than ending it, plan the next move. A running container keeps its paths that skip the gateway: its calls to the buckets that Harebell made, its logs, and the databases that templates made for it. The switch refuses every call that goes through the gateway and every request that comes through the front door, but it does not contain a process that is still running. If the control plane is reachable, it stops the tasks for you. If it is not, they keep running until it is back, so for a true emergency, treat the app as cut off from users and data but not yet gone.
- 4
Lift it when it is safe#
When the problem is fixed, open the app in the console and press Lift the kill switch, or lift it on the sign-in page. Lifting does not start anything. The app stays stopped until its owner or an admin starts it again, and the control plane will not start an app while its switch is pulled. One case needs care. If a switch pulled on the sign-in page or with the command is lifted before the control plane has noticed it, which can happen while the control plane is down, the app's tasks were never stopped, and the app serves people again as soon as the item is gone.
A gentler option#
The same card has a second button, Stop it, for when you do not need an emergency. It stops a live app or agent everywhere: nobody can open it, and an agent stops answering in Slack. Its data and settings stay, and its owner or an admin can start it again with Start it. Security and admins can stop any app this way, and an owner can stop their own. It goes through the console, so it needs Harebell to be reachable. Use it for planned pauses, and the kill switch for emergencies.
When to expect delays#
While your account's table can be read, a pulled switch reaches a new call within about five seconds and cuts an open gateway connection within two seconds more. The front door cuts a request that is already open at its next check, which runs every minute. If a read of the table is failing at that moment, these times do not hold, but the system errs toward safety: a switch already seen pulled stays pulled, and a failing read never releases a stopped app.