Run Harebell · Understand it

How Harebell is put together

Harebell is split between two places: our cloud, which decides what is allowed, and your cloud, which does the work. Almost every question a security review asks about Harebell has its answer in that split, so this page explains it first and then walks through each part. If you are about to install Harebell, or to approve it for your company, this is the page to read before the others.

Deciding, and doing#

When a company considers a platform for internal tools, its security team usually has three worries. Will the vendor hold the keys to our systems? Will our employees' traffic pass through someone else's servers? And if the vendor goes down or is breached, do our tools go down or leak with it?

Harebell answers all three by keeping two kinds of work apart. Deciding is our job: who belongs to your organization, which apps exist, who may open each one and which data each may read. These are records, and we keep them. Doing is yours: running the apps, signing people in to them, and fetching data with real credentials. All of that happens inside your own cloud account, on resources Harebell sets up but whose secrets it cannot read.

flowchart LR
  subgraph Ours[Harebell's cloud: decides]
    C[Console and connector]
    R[Records: people, apps, rules]
    J[Background jobs]
  end
  subgraph Yours[Your cloud account: does]
    F[Front door]
    A[Apps, jobs, agents]
    G[Gateway]
    T[Access copy and kill switch]
  end
  C --> R
  J -->|rules| T
  F --> T
  G --> T
  People[Your colleagues] --> F --> A --> G --> S[Your services]

Read the diagram from the bottom right. A colleague opens an app, the request goes through the front door, the app does its work, and any call the app makes to another service goes through the gateway. Nothing on that path asks our cloud for permission. The only thing that regularly flows from us to you is a change to the rules that the front door and the gateway read from a table in your account.

What runs in our cloud#

Our side is the part you reach with a browser or an AI tool. It holds the console, the API behind it, and the connector that builders' AI tools talk to. It also holds the records: your people and groups, their roles, your apps and their releases, the rules you wrote and the approvals people gave. Background jobs on our side do the slow work, such as setting up your cloud account, copying rules into it and noticing when something there changes.

Our side is also where people sign in to the console. Which Harebell region your organization lives in is chosen when it is created and does not change. Today that region is the United States, and your people sign in at us.harebell.dev. This is a different thing from the AWS region you choose for your own cloud account, which is where your apps run.

What runs in your cloud#

When you connect a cloud account, Harebell creates a small set of resources there, which we call your install. An install belongs to one AWS account and one AWS region of yours, and an organization has one. Today the cloud is AWS; Azure and Google Cloud are coming.

You start the install by creating one CloudFormation stack, named harebell, from a link in the console. That stack gives Harebell a role it can use in your account, and a ceiling on what that role, or anything it creates, can ever do. Harebell then creates everything else itself, inside that ceiling, as further stacks that you can read in your own AWS console:

Stack What it holds Who creates it
harebell The roles and the permissions boundary You, from the link
harebell-zone A DNS zone for your apps' addresses Harebell
harebell-base The network, the load balancer, the front door, the gateway, the access copy and the audit trail Harebell
harebell-app-<name> One app, job or agent Harebell, when it is released

The last row is the pattern for anything an app asks for. A database an app requests from one of your templates gets a stack of its own, and a private copy that a builder is trying out gets stacks with harebell-dev in their names. Everything Harebell creates in your account lists them all.

Why does Harebell use CloudFormation, instead of a program that runs in your account and phones home? Because nothing of ours then needs to run in your account to manage it. There is no agent for you to patch or watch, AWS remembers what exists, a failed update rolls back by itself, and every change Harebell makes shows up as a stack event you can read. Every call our side makes is also recorded in your CloudTrail, under the Harebell role.

The front door#

Every request to an app passes through the front door first. It signs the person in with your company's login, checks that they are allowed to open this app, and only then passes the request on, along with a signed header that tells the app who is asking. Because the front door does this for every app, no builder has to write a login screen, and no app can forget to check who is asking.

Apps get an address of the form <app>.<organization>.<region>.harebell.run, where the region is Harebell's region such as us, for example sales.initech.us.harebell.run, and the front door tells apps apart by that name. A person signs in once, at auth.<organization>.<region>.harebell.run, and each app then gives them its own session. A session lasts at most 12 hours. Turn on company sign-in covers how this connects to your identity provider.

The gateway#

Every call an app makes to the outside world, whether to Slack, a spreadsheet, a database or an AI model, passes through the gateway. The apps run in a part of your network with no route to the internet, so the gateway is the only way out. It works out which app is calling, checks that the app has been granted that data, puts the real credential on the call on its way out, and writes a line to your audit trail. The app only ever holds a placeholder, so there is nothing in its code, its logs or its builder's AI tool to steal. When someone asks "what did this app read, and when?", you have a complete answer.

The access copy and the kill switch#

The front door and the gateway never ask our cloud whether something is allowed. They read a copy of the rules that Harebell keeps in a DynamoDB table named harebell-access in your account. This matters for two reasons. Your apps keep working even if our side is down, and your security team can stop any app at once by writing a single item into that table, even if they cannot reach us. Stop an app right now shows the three ways to do it.

The table is a copy, and our records stay the source of truth. We write to it as soon as something changes, such as a release or an approval, and again on a steady cycle in case anything was missed.

How our side acts in your account#

The obvious way to let one company's software act in another company's cloud is to hand over access keys. Harebell avoids that. Our side signs a short-lived token that AWS has been told to trust, and trades it for a session on the Harebell role in your account. The token names your install, so a token for one customer is useless in any other customer's account. The session lasts at most an hour, and no key of yours is ever stored with us. The security model explains what that role may and may not do.

What crosses between the two#

Direction What travels Why
Harebell to you Changes to Harebell's own resources, and changes to the access copy So your front door and gateway enforce the rules you set in the console
You to Harebell Events about Harebell's own resources, plus the audit lines, request counts and costs of each app So the console can show what runs, what broke and what it costs
Never Credentials for your company's services, and your apps' own traffic They stay in your account

What leaves your cloud, and what never does is the complete list, with how long each thing is kept.

How the two halves stay in step#

Harebell's templates change as the product grows, and every install has to move with them. A loop on our side looks at each install every ten minutes. When a new version of the base stack or of the front door and gateway is ready, it sets your install up again, with no action from you, and your apps keep running while it does. The one exception is the harebell stack itself, because it defines what Harebell may do in your account. When it needs to change, Harebell prepares the change for you, and an administrator on your side reviews it and approves it with their own AWS rights. How Harebell keeps itself up to date and When Harebell needs a change to its access walk through both.

If our side is down#

Because the front door and the gateway read only the copy in your account, people who are signed in keep using their apps, and apps keep reading the data they were granted. People can still sign in if your organization has its own identity provider turned on. Anything that needs a new decision, such as releasing an app, approving a request or adding a person, waits until we are back. If Harebell itself is down lists exactly what keeps working.

An example#

Initech connects its AWS account in Ireland. Ben Okafor, who looks after the account, creates the harebell stack from the console's link, and a few minutes later the install is ready. Sally Chen then asks her AI tool for a desk-booking app and releases it. Harebell creates harebell-app-desk-booking in Initech's account, the access copy gains an entry saying who may open it, and a colleague who opens desk-booking.initech.us.harebell.run is signed in by the front door with Initech's own login. Not one of those steps put an Initech credential in front of Harebell's side.