CloudBoosterDocs

Getting started

The five steps of the console's Setup page: connect AWS, see a sample verdict, watch a repository, get a verdict on a merge request, and send alerts to Slack.

Getting started

CloudBooster Guard reviews every infrastructure change in a pull request (GitHub) or merge request (GitLab) before it merges. It plans the Terraform the change touches, resolves the plan against the cloud accounts you connected, and grades the change Critical, High, Watch or Clean. A change that would expose something dangerous to the internet can block the merge.

The console's Setup page walks you through five steps and ticks each one off when the console sees it done. While steps remain, owners and admins see Setup with its progress at the top of the menu, and a bar at the top of each page that names the next step. An owner or admin can skip setup for the whole workspace. Your progress is kept, and Help (?) › Setup brings it back.

1. Connect your AWS account

Create one read-only IAM role in your account with a CloudFormation stack. Guard assumes it to read your resources. It cannot change anything, and deleting the stack takes the access away.

Choose Read-only to have the account scanned on a schedule, or Read-only + live changes to also read its CloudTrail and see console and CLI changes within about 15 minutes. With live changes, if the account has no CloudTrail trail, a second small stack adds one. You can turn on live changes later from the account's Live changes tab.

When you connect the account, mark it Production or Not production. An exposure in production is graded more severely. Either choice is fine: a team with only non-production accounts finishes setup too. You can change the mark later on the account's Classification tab. See Marking an account production or non-production.

The step ticks once the account is connected (watching its CloudTrail, or read-only) and its first scan has run. The first scan records what is already there as the account's baseline. Scan now on the Setup page starts it.

Connect an AWS account explains what the role can read and how to create it.

2. See your first verdict

Once the first scan is done, Try a sample change picks a security group from your account, simulates opening SSH to the internet and judges it exactly as it would in a merge request. Nothing is changed in AWS. The sample is not recorded as an alert and not counted in your verdicts.

3. Connect GitLab or GitHub and pick repositories

Install the CloudBooster Guard GitHub App, or connect GitLab, and choose the repositories to watch. Guard then reviews every pull request on them and posts the cbxguard/review check, plus a comment when the verdict is not clean. On GitHub the App writes checks and pull-request comments. It never pushes code or changes your branches. The step ticks once a watched repository's webhook is active.

Connect a repository lists the exact permissions. Set up pull-request review covers webhooks, the repository config and the known limits.

4. Get a verdict on a merge request

Open any merge request that changes Terraform on a watched repository. The verdict appears in the merge request and on the Setup page, usually within 2 minutes, and the step ticks once the change is reviewed. A one-line change, such as a tag, is enough. Take me to my verdict opens it.

5. Send alerts to Slack (optional)

Connect Slack and choose a default channel, so alerts reach your team. The step ticks once a test message reaches the channel. Until then, alerts go to email or the digest. See Notifications.

Then: block merges

On a clean change, cbxguard/review reports Passed: no dangerous public exposure. When step 4's verdict does not arrive, Set up pull-request review, section 6 says what to look for.

When you are ready to block merges:

  • Arm the gate on the repository in Repositories. By default it blocks Critical only.
  • Make the check required in GitHub or GitLab, so a failing check stops the merge. See Make the check required.

A root with a remote backend (S3, Terraform Cloud and the like) is reviewed server-side: Guard swaps the backend for an empty local one and never reads your state. Some roots still cannot be planned without your credentials, for example roots whose data sources call the cloud or read another root's state (terraform_remote_state). Known limits lists them. For those, run terraform plan in your own CI and upload the plan: see Gate pull requests in CI.

On this page