Skip to main content

OCI Registries

Palette supports the configuration of multiple Open Container Initiative (OCI) registries. You can add a private OCI registry to Palette and use OCI artifacts in your cluster profiles. Palette only supports custom OCI registries that are hosting the following type of artifacts: Helm charts, Zarf packages, and Packs. You can also add an OCI registry as an image registry, which Edge clusters use to pull provider images.

Registries that comply with the OCI specification and support basic authentication are supported, although you can also add registries that do not require authentication. OCI-compliant registries with basic authentication are labeled as Basic. Palette also supports certain third-party registry providers, such as Amazon Elastic Container Registry (ECR), Azure Container Registry (ACR), and GitHub Container Registry (GHCR).

Supported Authentication Methods​

The following table describes the authentication methods supported for each OCI registry type.

ProviderDescriptionNo AuthenticationBasic (includes ACR)Amazon ECR
HelmOCI-based Helm Chart registries✅✅✅
ZarfOCI-based Zarf registries❌✅❌
PacksOCI-based Packs registries❌✅✅
ImageOCI-based provider image registries for Edge clusters✅✅✅
info

Anonymous authentication is not supported for GHCR.

Verified OCI Registries​

The following OCI registries have been verified by Palette. Other OCI registries may work but have not been verified.

  • Amazon ECR
  • ACR
  • GHCR
  • Harbor
  • JFrog Artifactory

Project-Level vs. System-Level Registries​

OCI registries are typically added at the project level from the Tenant Admin scope. When a registry is added using this method, it is available to all projects within the tenant.

If you are using self-hosted Palette or Palette VerteX, you can also add an OCI registry at the system level through the system console. All tenants and all projects within those tenants can use the OCI registry once it is added at the system level. To learn how to add an OCI through the system console, refer to the appropriate Palette or Palette Vertex guide.

OCI Packs Registry Configuration by Provider​

When configuring OCI pack registries in Palette through the UI, API, or Helm values, ensure that the configuration values align with the expected URL structure of the registry. This is especially important for registries that do not adhere to the standard Docker V2 API structure, such as JFrog Artifactory.

The following sections provide key rules and example configurations for some of the supported OCI pack registry providers.

Key Rules​

  • Palette resolves pack URL locations using the following pattern.

    <endpoint>/<basePath>/<baseContentPath>/spectro-packs

    Both <basePath> and <baseContentPath> are optional, and Palette omits any segment that you leave empty. If you leave both empty, Palette uses the following pattern instead.

    <endpoint>/spectro-packs
  • The spectro-packs path is appended automatically so you should not include it in the values for <endpoint>, <basePath>, or <baseContentPath>. Palette expects packs to be stored under the spectro-packs repository path in the OCI registry.

  • In general practice, set <baseContentPath> to the path segment that sits between the <endpoint> and spectro-packs. Leave empty if spectro-packs is at the repository root.

    For example, if your OCI registry URL is https://harbor.example.com/registry/palette-packs/spectro-packs, set <endpoint> to https://harbor.example.com and <baseContentPath> to registry/palette-packs.

  • Palette syncs only the content stored directly in the directory that <baseContentPath> specifies. Content stored at the repository root or in child directories nested below the specified path is not synced.

  • For registries with a non-standard API path like JFrog Artifactory, specify the API path in <basePath>, which is the Endpoint Suffix field in the Palette UI. For standard Docker V2 registries like Harbor, use the hostname only for <endpoint> and leave <basePath> empty.

  • Self-hosted registries require a base64-encoded PEM CA certificate in <caCert>.

Example Provider Configurations​

The following examples demonstrate how to configure OCI pack registries for different providers. Adjust the values as needed for your specific registry setup.

info

JFrog Artifactory pack registries are supported at the tenant scope only. Add them using the Palette UI or API. The ociPackRegistry Helm values of the self-hosted Palette and Palette VerteX charts do not support JFrog Artifactory.

  • The <endpoint> is the JFrog Artifactory hostname only.
  • The full Docker V2 API path is required, and it includes the repository key. Specify this path in the Endpoint Suffix field, which corresponds to <basePath> in the API. The repository key is spectro-packs-repo in this example.
  • The <baseContentPath> is the directory in the JFrog repository where the packs are stored, which is sample-dir in this example.
UI values example
Endpoint: https://artifactory.example.com
Endpoint Suffix: artifactory/api/docker/spectro-packs-repo
Base Content Path: sample-dir
API values example
{
"spec": {
"endpoint": "https://artifactory.example.com",
"basePath": "artifactory/api/docker/spectro-packs-repo",
"baseContentPath": "sample-dir",
"providerType": "pack",
"isPrivate": false,
"isSyncSupported": true,
"auth": {
"type": "basic",
"username": "<username>",
"password": "<password>",
"tls": {
"ca": "<pem-ca-certificate>",
"enabled": true,
"insecureSkipVerify": false
}
}
}
}

This configuration resolves to the following URL for spectro-packs.

https://artifactory.example.com/artifactory/api/docker/spectro-packs-repo/sample-dir/spectro-packs/

Limitations​

  • OCI Helm registries created before Palette version 4.5.0 do not support automatic synchronization. To enable automatic synchronization, you must re-register the OCI Helm registry with Palette.

  • OCI image registries do not support synchronization, and Amazon ECR image registries support only AWS Security Token Service (STS) authentication.

Next Steps​

Review the appropriate guide to add an OCI registry to Palette based on the type of content you want to expose in Palette. If your registry contains multiple content types that you want to use, you must add the registry for each type.