> For the complete documentation index, see [llms.txt](https://docs.carto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carto.com/carto-self-hosted/configuration/security/authenticated-image-pulls.md).

# Authenticated image pulls

Pull CARTO Self-Hosted container images with the service account key in your customer package

From December 10, 2026, the CARTO Self-Hosted container registry (`us-docker.pkg.dev/carto-onprem-artifacts` and the legacy `gcr.io/carto-onprem-artifacts`) requires authentication.

Which section applies to you:

| Your deployment                                                                                                                                                             | Section                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Single Virtual Machine deployment](https://docs.carto.com/carto-self-hosted/planning/deployment-methods/single-vm.md) (Kots, Embedded Cluster with Admin Console)          | [Single Virtual Machine and Standard Orchestrated container deployments (Kots)](#single-virtual-machine-and-standard-orchestrated-container-deployments-kots) |
| [Standard Orchestrated container deployment](https://docs.carto.com/carto-self-hosted/planning/deployment-methods/kubernetes-kots.md) (Kots, Kubernetes with Admin Console) | [Single Virtual Machine and Standard Orchestrated container deployments (Kots)](#single-virtual-machine-and-standard-orchestrated-container-deployments-kots) |
| [Advanced Orchestrated container deployment](https://docs.carto.com/carto-self-hosted/planning/deployment-methods/kubernetes-helm.md) (Kubernetes with Helm)                | [Advanced Orchestrated container deployment (Helm)](#advanced-orchestrated-container-deployment-helm)                                                         |
| Advanced Orchestrated (Helm) with images copied to your own registry                                                                                                        | [Images copied to your own registry](#images-copied-to-your-own-registry)                                                                                     |
| [CARTO Self-hosted Legacy](https://docs.carto.com/carto-self-hosted/carto-self-hosted-legacy.md) (docker-compose)                                                           | [CARTO Self-hosted Legacy (docker-compose)](#carto-self-hosted-legacy-docker-compose)                                                                         |
| [Analytics Toolbox Gateway](https://docs.carto.com/data-and-analysis/analytics-toolbox-gateway.md) deployed in your own cloud                                               | [Analytics Toolbox Gateway](#analytics-toolbox-gateway)                                                                                                       |

If you are unsure which one you run, contact <support@carto.com>.

## Single Virtual Machine and Standard Orchestrated container deployments (Kots)

On release 2025.7.16 or later, no action. Images come through `registry.self-hosted.carto.com`, authenticated by your license.

On releases older than 2025.7.16, upgrade to 2025.7.16 or later before December 10, 2026.

## Advanced Orchestrated container deployment (Helm)

{% hint style="info" %}
If you use [your own service account](https://docs.carto.com/carto-self-hosted/configuration/security/configure-your-custom-service-account.md), it must be registered with CARTO Support. In the manual steps, use its JSON key instead of `key.json`.
{% endhint %}

If a VPC Service Controls perimeter or another policy restricts access to the registry, contact CARTO support before you start.

If your `carto-secrets.yaml` no longer contains the key, contact support and we will send your customer package again.

### Chart for 2026.11.10 or later

The chart creates the pull secret from the key in `cartoSecrets.defaultGoogleServiceAccount`, including on installs that use GKE Workload Identity or EKS Pod Identity.

1. Find the chart version for app version 2026.11.10. Chart and app versions differ:

   ```bash
   helm repo update
   helm search repo carto/carto --versions
   ```

   Use a `CHART VERSION` whose `APP VERSION` is 2026.11.10 or later.
2. Upgrade with the files from your customer package:

   ```bash
   helm upgrade carto carto/carto -n <namespace> --version <chart version> \
     -f carto-values.yaml -f carto-secrets.yaml -f customizations.yaml
   ```
3. So that `kubectl preflight` and support bundles can pull their image too, add the chart's Secret to the namespace's `default` ServiceAccount:

   ```bash
   kubectl -n <namespace> patch serviceaccount default \
     -p '{"imagePullSecrets": [{"name": "carto-image-pull"}]}'
   ```

The chart's Secret is `<release>-carto-image-pull`, or `<release>-image-pull` when the release name contains `carto` (`carto-image-pull` for the release `carto`).

If the key is in an existing Secret (`cartoSecrets.defaultGoogleServiceAccount.existingSecret`), the chart does not create the pull secret. Follow the manual steps below.

### Manual pull secret: earlier charts, or the key in an existing Secret

Works on every chart version, including installs that use GKE Workload Identity or EKS Pod Identity.

1. Extract the CARTO service account key from the `carto-secrets.yaml` in your customer package:

   ```bash
   umask 077
   yq -r '.cartoSecrets.defaultGoogleServiceAccount.value' carto-secrets.yaml > key.json
   ```

   Check it: `jq -r .client_email key.json` prints a service account email.
2. Pick the registry host for your release. `helm list -n <namespace>` shows it in the `APP VERSION` column:

   | App version        | Registry host       |
   | ------------------ | ------------------- |
   | 2026.8.11 or later | `us-docker.pkg.dev` |
   | Earlier            | `gcr.io`            |
3. Create the pull secret for that host:

   ```bash
   kubectl -n <namespace> create secret docker-registry carto-registry \
     --docker-server=<registry host> \
     --docker-username=_json_key \
     --docker-password="$(cat key.json)" \
     --docker-email=unused@carto.com
   ```
4. Add to your `customizations.yaml`, merging into any existing `global:` block:

   ```yaml
   global:
     imagePullSecrets:
       - carto-registry
   ```
5. Apply it with the chart version you run today (`helm list -n <namespace>` shows it as `carto-<version>`):

   ```bash
   helm upgrade carto carto/carto -n <namespace> --version <version> \
     -f carto-values.yaml -f carto-secrets.yaml -f customizations.yaml
   ```
6. So that `kubectl preflight` and support bundles can pull their image too, add the secret to the namespace's `default` ServiceAccount:

   ```bash
   kubectl -n <namespace> patch serviceaccount default \
     -p '{"imagePullSecrets": [{"name": "carto-registry"}]}'
   ```
7. Delete `key.json` when you are done.

When you upgrade from a release before 2026.8.11 to 2026.8.11 or later, recreate `carto-registry` with `--docker-server=us-docker.pkg.dev` first.

### Images copied to your own registry

If you copy CARTO images into your own registry (`global.imageRegistry`), authenticate the copy job with the same key for the registry host it reads from, for example with the [`docker login` command](#carto-self-hosted-legacy-docker-compose).

If your organization does not allow service account keys, copy the images with your own identity. Contact support to set it up.

## CARTO Self-hosted Legacy (docker-compose)

Run once per host, as the user that runs docker compose, from the folder containing the `key.json` of your customer package. Use the registry host for your `carto-selfhosted` version:

| Version           | Registry host       |
| ----------------- | ------------------- |
| 2026.9.4 or later | `us-docker.pkg.dev` |
| Earlier           | `gcr.io`            |

```bash
docker login -u _json_key --password-stdin <registry host> < key.json
```

Repeat it on any host you add later, and for `us-docker.pkg.dev` when you upgrade to 2026.9.4 or later.

## Analytics Toolbox Gateway

The [Analytics Toolbox Gateway](https://docs.carto.com/data-and-analysis/analytics-toolbox-gateway.md) image moves to a public repository that needs no credentials:

```
us-docker.pkg.dev/carto-onprem-artifacts/public/at-gateway/cloud-run
```

Before December 10, 2026, redeploy your gateway with this image and the tag you use today, for example `latest`:

* Cloud Run:

  ```bash
  gcloud run services update <service> --region <region> \
    --image us-docker.pkg.dev/carto-onprem-artifacts/public/at-gateway/cloud-run:<tag>
  ```
* Azure Container Apps:

  ```bash
  az containerapp update --name <name> --resource-group <resource group> \
    --image us-docker.pkg.dev/carto-onprem-artifacts/public/at-gateway/cloud-run:<tag>
  ```
* Kubernetes: set this image in the gateway's Deployment.

If the gateway's network restricts egress, allow `us-docker.pkg.dev`.

## Verify your setup

Until December 10, 2026, the registry accepts anonymous pulls, so a successful pull is not proof. Run these checks instead.

**Advanced Orchestrated (Helm)**

1. Your pull secret lists the registry hosts:

   ```bash
   kubectl -n <namespace> get secret <secret> -o jsonpath='{.data.\.dockerconfigjson}' | base64 -d | jq '.auths | keys'
   ```

   With the chart for 2026.11.10 or later, `<secret>` is the chart's Secret (`carto-image-pull` for the release `carto`) and the output lists `us-docker.pkg.dev/carto-onprem-artifacts` and `gcr.io/carto-onprem-artifacts`. With the manual steps, `<secret>` is `carto-registry` and the output lists the registry host for your release.
2. Your workloads reference it:

   ```bash
   kubectl -n <namespace> get deploy -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.template.spec.imagePullSecrets}{"\n"}{end}'
   ```

   Every CARTO deployment shows that secret.

**CARTO Self-hosted Legacy (docker-compose)**

```bash
jq '.auths | keys' ~/.docker/config.json
```

The output lists the registry host for your version. Run it as the user that runs docker compose.

## Troubleshooting

| Symptom                                                                                                                     | Cause                                                                                                                 | Fix                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Pods in `ImagePullBackOff` or `ErrImagePull`, events show `unauthorized` or `denied`                                        | The secret is missing, is for the wrong registry host for your release, or is not listed in `global.imagePullSecrets` | Follow the [Advanced Orchestrated (Helm) steps](#advanced-orchestrated-container-deployment-helm) and check with [Verify your setup](#verify-your-setup) |
| `helm upgrade` warns `No CARTO service account is set, so the chart cannot create the image pull secret`                    | Your values have no key in `cartoSecrets.defaultGoogleServiceAccount`                                                 | Pass the `carto-secrets.yaml` from your customer package to `helm upgrade`                                                                               |
| `helm upgrade` warns `The CARTO service account is read from an existing Secret, which the chart cannot use to pull images` | The key is in `existingSecret`, which the chart cannot read                                                           | Follow the [manual steps](#manual-pull-secret-earlier-charts-or-the-key-in-an-existing-secret)                                                           |
| `docker compose pull` or `docker-compose pull` fails with `unauthorized` or `denied`                                        | `docker login` was not run for this user or host, or for the wrong registry host for your version                     | Run `docker login` for your registry host as the user that runs docker compose                                                                           |
| Pull still `denied` with the key from your customer package                                                                 | The key was revoked or replaced                                                                                       | Contact support                                                                                                                                          |
| Images copied to your own registry stop updating                                                                            | The copy job is not authenticated                                                                                     | Authenticate it with the same key                                                                                                                        |
| Single Virtual Machine or Standard Orchestrated (Kots) install fails to pull one image                                      | Release older than 2025.7.16                                                                                          | Upgrade to 2025.7.16 or later                                                                                                                            |
| Analytics Toolbox Gateway fails to pull its image                                                                           | The gateway uses the old image URL                                                                                    | Redeploy it with `us-docker.pkg.dev/carto-onprem-artifacts/public/at-gateway/cloud-run` and your tag                                                     |

## Where to get help

Contact <support@carto.com> and mention "registry authentication". Do not send `key.json` or your `carto-secrets.yaml`. Redacted command output is enough.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.carto.com/carto-self-hosted/configuration/security/authenticated-image-pulls.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
