Two kinds of change, and who may make each#
Everything Harebell puts in your account falls into one of two groups, and the group decides who applies a change.
The first group is the platform: the network, the load balancer, the front door, the gateway, the access copy table and the other resources that serve your apps. They live in the stacks harebell-zone and harebell-base. A stack is AWS CloudFormation's name for a group of resources that are created, updated and deleted together. Harebell updates these two stacks itself, whenever a new release needs them to change, and you do nothing.
The second group is Harebell's own access: the harebell stack that you created when you connected the account. It holds the role Harebell uses in your account (harebell-control) and the ceiling on what that role, and every role made after it, can ever do. Harebell cannot change this stack on its own, and that is the point. If a vendor could widen its own permissions in your account whenever it liked, the ceiling would mean nothing. So when a release needs a different permission, Harebell asks you, and you apply the change. When Harebell needs a change to its access walks through that.
What happens when Harebell releases something new#
Harebell's control plane looks at every install about every ten minutes. An install is Harebell set up in one cloud account. On each look, Harebell compares what your account has with what the new release expects. It sets your platform stacks up again when any of these is true:
- The templates for
harebell-zoneorharebell-basehave changed since your account was last set up. - Your front door and gateway are running an older program image than the one the release ships, even if no template changed. This is how a fix to the front door reaches you without a template change.
- A setting that depends on Harebell's own side has changed, such as how events are delivered, and your account still has the old arrangement.
Setting up again is the same procedure as the first setup. Harebell asks CloudFormation to prepare a change set, which is CloudFormation's preview of exactly what an update will change, runs it, and waits for the stack to settle. You see the result as ordinary stack events in your own CloudFormation console.
While this runs, the Cloud account page still shows your account as ready, with a note that Harebell is updating it to the latest version, which takes a few minutes. Your apps keep running, and builders can keep shipping meanwhile. Harebell does not touch your builders' apps during a platform update. An app changes only when its owner releases a new version of it.
If a step fails, CloudFormation rolls the stack back to what it was, so a failed update does not leave your account half-changed. The page then shows the step that failed and a Try again button for admins.
When an update waits for you#
Some platform updates need a permission that only a newer version of the harebell stack grants. Harebell checks for this before it starts. If your harebell stack is older than the release needs, Harebell holds the platform update back, because running it early would fail on the missing permission, and the Cloud account page shows a card titled Harebell needs a change to its access.
Nothing breaks while the card waits. Your apps run as they did, people sign in as before, and the access copy keeps syncing. What stops is the part of the release that needs the new permission. Harebell tries again on its own as soon as your stack has been updated.
What you never have to do#
You do not install updates, restart anything, schedule a window, or run a script. You do not download templates; Harebell stores them and passes them to CloudFormation. You do not keep a list of versions, because the control plane reads the version out of your harebell stack itself.
There is one thing you should avoid. Do not change Harebell's stacks by hand in the AWS console. Harebell applies its templates as written, and a change made outside them is not in any template, so a later update can overwrite it or fail on it. If something in your account needs to be different, tell Harebell so the change can be made in the template for everyone.
How you can see what Harebell did#
Nothing Harebell does in your account is hidden from you. Every change appears as a stack event in your CloudFormation console. Every AWS call Harebell makes is recorded in your account's CloudTrail, which is AWS's log of API calls, under the harebell-control role, with session tags that say who or what caused the call. That means a security reviewer can ask "what did Harebell change in our account last Tuesday?" and answer it from your own logs, without asking us. The audit trail describes the records Harebell keeps about apps and people.
A typical week looks like this for an admin such as Sally Chen at Initech: nothing. Harebell releases something, the platform stacks update within about ten minutes, and the stack events are there if she looks. She only has a task when the access card appears, and the card says so.