What you are trusting us with#
Harebell's side can do a defined set of things in your account, through one role named harebell-control. It can create, update and delete the stacks whose names begin with harebell-, and it can hand CloudFormation the work. It can write the access copy, the table of rules that the front door and gateway read. It can start builds, upload source into the sources bucket, run and stop the tasks of your apps, and manage their schedules. It can read the status of your apps, their logs and traces, and your bill from AWS Cost Explorer. A builder can also run a command inside the private copy of their own app, which is how an AI tool tests changes.
It cannot do three things, and the second is the one that matters most.
- It cannot read a secret. The role is explicitly denied reading secrets in Secrets Manager, decrypting with KMS and reading Systems Manager parameters. An explicit deny wins over any allow, even one added by mistake later.
- It cannot change what it is allowed to do. The
harebellstack defines the role, and the role is denied every action that would update, delete or execute a change to that stack. - It cannot remove the audit trail. The bucket that holds your copy of the trail refuses every Harebell role any delete, while your own administrators still may.
How we get in#
Harebell does not hold access keys to your account, and your account holds none of ours. Our control plane is an OIDC issuer, which means it signs short tokens and your account has been told to trust that signature. Each time we need to act, we sign a token that lasts five minutes, name your install in it, and exchange it for a session on the Harebell role that lasts at most an hour.
Your trust policy admits only tokens from our issuer, addressed to AWS, and naming your install. A token for another customer's install is worthless in your account, and one for your install is worthless in anyone else's. Our signing keys are replaced every 30 days.
Each session can carry the name of the person whose action caused it and the reason. So when someone in your security team opens CloudTrail and sees the Harebell role at work, the entry can say that it was acting for Sally Chen, because she released an app.
The ceiling#
A role that can create stacks can, in principle, create stacks that make new roles. Without a limit, a mistake or a breach on our side could have used that to make a role that reads everything in your account. So the harebell stack also creates a permissions boundary, harebell-boundary, which is a ceiling on a role: whatever its own policies say, the role can never do more than the boundary allows.
Every role that CloudFormation creates for Harebell must carry that boundary, and the boundary refuses to touch anything that is not named for Harebell. Secrets, functions, buckets, tables, databases, build projects, stacks, queues, log groups and container images are all covered. A role that Harebell creates can reach harebell-* resources and nothing else in your account. Anything beyond that, such as your other databases or your other secrets, is not reachable. Any change Harebell makes to a stack appears as a stack event and a CloudTrail entry in your account, so the attempt would also be visible.
Apps and resources that your administrators define in templates get an even tighter ceiling. They run as a second role, harebell-templates, under harebell-templates-boundary. That boundary keeps a template's resources to names that begin harebell-res- and harebell-dev-, keeps them in the install's own region and account, and denies them everything of Harebell's own: its functions, its tables, its queues, and the access copy.
Where the credentials live#
The credentials for your company's services stay in your account, and an app never holds one. There are two reasons this works.
First, most connections store nothing. For Google, Microsoft and databases on Amazon RDS, the gateway asks AWS to sign a short claim that says which app is calling, and the service has been set up once to trust that claim. Revoking access is deleting the trust. What the gateway receives lasts five minutes.
Second, where a service only offers a long-lived token, such as a Slack bot token, the token is stored in your account, encrypted by a key in your account. Three keys guard these, and each can be decrypted only by the Harebell services that need it:
| What it protects | Who can decrypt it |
|---|---|
| People's own linked tokens, for example a person's Slack link | Only the gateway |
| Secrets Manager secrets, such as your Slack bot token | The gateway and the front door, each its own secrets |
| Database passwords and agents' Slack secrets | Only the gateway and front door roles |
Notice that our control plane appears on none of these lines. Harebell's role in your account is also explicitly denied reading your secrets, so nothing on our side can fetch a credential directly, and that rule is enforced by AWS rather than by our code. This is a different thing from not trusting Harebell at all. The gateway and the front door are software that Harebell releases and updates in your account, and they do read these credentials, because that is their job. You are trusting that the versions Harebell deploys behave as described, the same way you trust any vendor's software that runs in your account. Every update to them is a stack change you can see in CloudTrail, and any change to the harebell stack itself, which holds Harebell's own access, is one you apply yourself. Connect Slack, Google and Microsoft shows what each connection stores.
There is one credential of a different kind. When you connect your identity provider over OIDC, the client secret you paste in is stored encrypted on our side, because our console uses it to sign people in, and a copy is written into your account for the front door. Turn on company sign-in explains why.
What an app can and cannot do#
Apps run in a part of your network that has no route to the internet. DNS inside that network answers only for names that Harebell knows, and the name of anything else does not resolve at all. Calls to Slack, Google, Microsoft, a database or an AI model go to the gateway, which checks each one before it leaves.
For each call, the gateway checks the app's switch in the access copy, works out which app is calling, checks the secret placeholder that only that app holds, checks the app's grants, and then sends the call on with the real credential. A call from an app to a Slack channel it was not granted is refused, and the refusal is written to the trail. Calls to AI models are also held to a list of allowed models and a daily budget. Who your apps act as explains whose identity each call uses.
Some paths do not go through the gateway, and you should know them. An app's calls to the harebell-* buckets in your account, its logs, and its connection to the databases that your templates created for it stay inside your network and go direct. Each of those is limited by the app's own role and by the boundary above.
The front door guards the other direction. It removes any X-Harebell header a browser sends, so an app can trust the identity header it receives, and it refuses writes and WebSocket connections that a browser says came from another site. It also rechecks every open connection, such as a WebSocket, once a minute, so removing a person or stopping an app applies to connections that are already open.
Who can do what in Harebell#
Inside Harebell, everyone who signs in is a member. Three roles add to that, and each can be given to a person, a group or everyone.
| Role | What it is for |
|---|---|
| Builder | Makes, ships and releases their own apps, jobs and agents |
| Admin | Manages people, roles, sign-in, the cloud account, connections and policies, and sees the audit trail |
| Security | Sees everything and can stop anything, but cannot widen anything |
Two rules keep an organization from locking itself up or being taken over. An organization can never lose its last administrator. And only someone who already has the Security role can give it to another person, with one exception: while nobody has the role, an administrator may give it, but never to themselves or to everyone. The point is separation of duties, because security reviews and can stop administrators' and builders' apps, and an administrator who could make themselves security could approve their own work.
Roles are enforced by Harebell's server on every request. The console hides buttons that you cannot use, but hiding is a courtesy and not the protection. Invite people and give them roles shows how to manage them.
Console sessions last at most 12 hours and end after two hours without use. In an organization with company sign-in, an AI tool's sign-in lasts at most seven days from the console sign-in that allowed it, so people go back through your identity provider at least weekly, which is also how Harebell learns that someone has left. When a person is deactivated, their console sessions and their AI tools' sign-ins end at once. When someone leaves covers their apps and their access to apps.
What you can switch off#
One setting is yours to choose when you create the harebell stack: whether Harebell may read your apps' logs and traces. It is on by default. If you turn it off, the console cannot show a builder or an administrator an app's logs or traces, and the role has no permission to read them. Every read that does happen is recorded in your audit trail.
You can also remove Harebell's access completely at any time by deleting the harebell stack, after using Uninstall in the console. Uninstall Harebell describes what stays behind.
An example#
Ben Okafor at Initech reviews Harebell before approving it. He opens the harebell stack's template and finds that the control role has an explicit deny on reading secrets, that every role it creates is bound to harebell-boundary, and that the role may not run a change to its own stack. He then asks the question that matters: what is the worst thing that could happen if Harebell's side were compromised? The answer he can verify himself is that an attacker could change Harebell's own stacks, and every such change would appear in Initech's CloudTrail, but could not read Initech's secrets directly, could not reach any resource that is not named for Harebell, and could not remove the record of what it did. Ben also notes the limit of that answer. An attacker in control of Harebell's side could push a changed gateway or front door, and that software does handle credentials, so the protection there is that every such change is recorded in Initech's own account where his team can watch for it.