Skip to main content
By default, your Managed BYOC instance pulls its container images from the Superblocks registry. With image mirroring, Superblocks copies every image into Amazon ECR in your account, so your instance runs only images from your own registry. You can then scan every image with your own tools and block deployments on your scan results. Every image is already scanned and signed by Superblocks, and the deployer verifies those signatures before every deployment, with or without image mirroring. See Verify image signatures.

What image mirroring adds

How images are copied

Before each deployment, the deployer in your account copies the release’s images from the Superblocks registry into your ECR, along with their signatures. It creates each repository the first time it needs it. Repositories live under a prefix you choose, superblocksteam by default:
  • Superblocks images: <prefix>/<image>, such as superblocksteam/superblocks-server.
  • Third-party images: <prefix>/<source path>, such as superblocksteam/ghcr.io/kedacore/keda.
Repositories that Superblocks creates have immutable tags, are encrypted, and keep the 10 most recent images. Superblocks can push only to repositories tagged superblocks:owned = true, so repositories of your own under the same prefix aren’t touched.

Turn on image mirroring

  1. In the bootstrap’s settings file, superblocks.tfvars, set enable_customer_ecr = true. To use a prefix other than superblocksteam, also set ecr_registry_prefix. Then run the bootstrap.
  2. Send the bootstrap outputs to your deployment team.
  3. At the next deployment, Superblocks copies the images into your registry and switches your instance to it.

Scan images and block deployments

With the scan gate on, the deployer checks your verdict for every image before each deployment. Your scanner writes one verdict per image and tag to AWS Systems Manager Parameter Store, in your Managed BYOC region:
For example, /superblocks/ecr/scan-status/superblocks-server/sha-abc123 or /superblocks/ecr/scan-status/ghcr.io/kedacore/keda/2.21.0. Each parameter holds a JSON verdict:
An image is blocked if its verdict is missing, can’t be read, or isn’t approved. The deployment log lists every image the gate checked, and the reason for each one it blocked. The gate has three modes. Ask your deployment team to set the one you want:

Scanning pipeline requirements

Superblocks releases often, and some deployments roll back to an earlier release. So your deployments aren’t blocked by vulnerabilities that a release is already handling, your scanning pipeline must follow these rules:
  1. Give new vulnerabilities a 7-day grace period: Don’t block an image for a vulnerability until 7 days after it’s first published. Vulnerabilities are often disclosed after an image is built, and the grace period keeps a new disclosure from blocking an upgrade that’s already scheduled. This applies to actively exploited vulnerabilities too. We ship a hotfix for those, but a release without the fix may need to deploy before the hotfix can.
  2. Never change a verdict you’ve written: A verdict approves deploying that image at that time. Keep rescanning and monitoring your images, but don’t change an approved verdict to blocked. Rollbacks reuse the verdicts you wrote earlier, so a changed verdict can block recovery during an incident. Keep verdicts for at least the 5 most recent tags of each image.
  3. Judge exceptions by the release date: Each exception in the vulnerability exceptions file has an expiry date, which we set by our remediation timelines. Compare it to the date the release was published, not the date of the deployment. An exception that was valid when the release was published applies to that release, even if it has expired by the time you deploy. A later release that still includes the vulnerability after its exception expires is blocked.
Releases can also add images. New images have no verdict yet, so in enforce mode the deployment waits until you scan them. Your deployment team tells you about new images before the deployment. If you find a vulnerability you need fixed sooner, contact your deployment team instead of blocking images.

Remediation timelines

Superblocks fixes vulnerabilities within these timelines, from when the vulnerability is identified: If a vulnerability’s severity is raised, its timeline restarts from the time it’s raised. If its severity is lowered, its timeline still counts from when it was first identified.

Vulnerability exceptions

Superblocks reviews the known vulnerabilities in every release’s images. Some are accepted, for example while a fix is waiting on an upstream image. With each release, before it copies images, Superblocks copies that release’s vulnerability exceptions into an S3 bucket in your account:
For example, s3://superblocks-cloud-prem-assets-<account ID>-us-west-2/vuln-exceptions/v1.33.4/vuln-exceptions.yaml. The bucket is created for every deployment with image mirroring on. The file covers the images your deployment runs. For each image, it lists each accepted vulnerability, the reason it’s accepted, and the date the exception expires:
Have your scanner apply these exceptions, so its verdicts match the review Superblocks released with and it flags only vulnerabilities that are new.

Verify image signatures

Superblocks signs every image with a single key: its own images when they’re built, and third-party images when they’re copied into the Superblocks registry. The deployer verifies every image’s signature before it creates any Kubernetes resources, and the deployment stops if any image fails. You can check the signatures yourself:
  • With cosign: Ask your deployment team for the Superblocks public key, then verify any image in your registry with the cosign CLI.
  • In the Rekor log: Signatures are recorded in the public Rekor transparency log, so you can confirm that a signature exists for an image digest without relying on Superblocks.

Beta signature checks

Two more signature checks are in beta:
  • Your own signature: Sign approved images in your registry with your own key. Every deployment then requires both your signature and ours.
  • Checks when pods start: Image signatures are also checked when pods are created, not only during deployments, so an image started any other way is checked too.
If you’re interested in either one, talk to your deployment team.

Settings reference

You set these in superblocks.tfvars, the bootstrap’s settings file: Your deployment team sets these for your deployment: