> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superblocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Image mirroring and scanning

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](#verify-image-signatures).

## What image mirroring adds

| Capability | What it does |
| - | - |
| [Images in your registry](#how-images-are-copied) | Your instance pulls images only from Amazon ECR in your account |
| Your own scanning | Scan every image with your own tools, such as Amazon Inspector or Wiz, before and after it deploys |
| [Vulnerability exceptions](#vulnerability-exceptions) | Each release's reviewed vulnerability exceptions are copied into your account, so your scanners can apply the same exceptions and flag anything new |
| [Scan gate](#scan-images-and-block-deployments) | Your scan results can block a deployment |

## 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](https://docs.superblocks.com/enterprise/cloud-prem/deployment-guide.md#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:

```
/superblocks/ecr/scan-status/<image>/<tag>
```

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:

```json theme={null}
{
  "status": "approved",
  "reason": "No critical or high vulnerabilities",
  "image_digest": "sha256:a1b2c3...",
  "image_tag": "sha-abc123",
  "updated_at": "2026-11-30T18:30:00Z",
  "counts": { "MEDIUM": 2, "LOW": 5 },
  "scan_engine": "enhanced"
}
```

| Field | Required | Description |
| - | - | - |
| `status` | Yes | `approved`, `blocked`, or `pending`. Only `approved` passes |
| `reason` | Yes | Why the image was approved or blocked. It appears in the deployment log |
| `image_digest` | No | Digest of the scanned image |
| `image_tag` | No | Tag of the scanned image |
| `updated_at` | No | When the verdict was written, in ISO 8601 |
| `counts` | No | Vulnerability counts by severity |
| `scan_engine` | No | The scanner that produced the 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:

| Mode | Behavior |
| - | - |
| Off (default) | The gate doesn't run |
| Audit | The gate checks every image and reports what it would block, but deployments proceed. Use it to test your scanning pipeline |
| Enforce | The gate blocks the deployment if any image isn't approved |

Restrict who can write verdicts

The gate trusts every verdict under `/superblocks/ecr/scan-status/`. Anyone who can write those parameters can approve an image. Restrict `ssm:PutParameter` on that path to your scanning pipeline. The deployer can only read them.

### 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](#vulnerability-exceptions) file has an expiry date, which we set by our [remediation timelines](#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:

| Severity | Fixed within | Examples |
| - | - | - |
| Critical | 15 days | Privilege escalation to admin, remote code execution, unauthorized access to sensitive data, such as SSRF, XXE, SQL injection, and authentication bypass |
| High | 30 days | Vulnerabilities that affect the security of the platform, such as lateral authentication bypass and stored XSS |
| Medium | 90 days | Vulnerabilities that affect multiple users and need little or no user interaction, such as reflected XSS and open redirects |
| Low | 180 days | Vulnerabilities that affect a single user and need user interaction or significant prerequisites to trigger |

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:

```
s3://superblocks-cloud-prem-assets-<account ID>-<region>/vuln-exceptions/<release tag>/vuln-exceptions.yaml
```

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:

```yaml theme={null}
superblocks/alpine:
  vulnerabilities:
    - id: CVE-2026-12345
      statement: "HIGH; fix available. Pending image update. pkg: openssl"
      expired_at: "2026-12-30T00:00:00Z"
```

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](https://docs.sigstore.dev/cosign/verifying/verify/) CLI.
* **In the Rekor log:** Signatures are recorded in the public [Rekor](https://docs.sigstore.dev/logging/overview/) 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:

| Setting | Type | Default | Description |
| - | - | - | - |
| `enable_customer_ecr` | Boolean | `false` | Turns on image mirroring into Amazon ECR in your account |
| `ecr_registry_prefix` | String | `superblocksteam` | The prefix the repositories live under |

Your deployment team sets these for your deployment:

| Setting | Default | Options |
| - | - | - |
| Images kept per repository | 10 | Any number |
| Scan gate | Off | Off, audit, or enforce |

## Related pages

* [IAM permissions boundaries](https://docs.superblocks.com/enterprise/cloud-prem/configure/permissions-boundary.md)
* [Optional configurations](https://docs.superblocks.com/enterprise/cloud-prem/configure/index.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.