Artifact Central configuration

  • Tier: Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed
  • Status: Beta

This integration connects GitLab to an Artifact Central deployment. Artifact Central also needs the IAM Data Access Service integration.

On GitLab Self-Managed, Artifact Central is in closed beta. Use it only with help from GitLab engineering.

Configuration

The Artifact Central connection can be configured through the Helm chart values under global.appConfig.artifactRegistry.

The integration is disabled by default.

When the block is unset, the chart renders no artifact_registry or artifact_central section into gitlab.yml and mounts nothing.

When the integration is enabled, the chart renders the same settings under both artifact_registry and artifact_central in gitlab.yml. GitLab is renaming the key to artifact_central in merge request 272254. The chart removes the artifact_registry key after GitLab 19.7. The values key stays global.appConfig.artifactRegistry.

Basic configuration

yaml
global:
  appConfig:
    artifactRegistry:
      enabled: true
      apiUrl: https://artifact-registry.example.com
      authToken:
        secret: gitlab-artifact-registry-credential
        key: token

Configuration options

OptionTypeDefaultDescription
enabledbooleanfalseEnable or disable the Artifact Central integration
apiUrlstringService root of the Artifact Central deployment. Required when enabled. Must be an origin: scheme, host, and optional port, with no path
authToken.secretstringKubernetes secret name holding the shared service token. When unset, no token is mounted and calls that require one fail closed
authToken.keystringtokenKey in that secret

apiUrl is the service root, not an API base: GitLab appends its own path to the value, so a value carrying a path composes the wrong request URL.

Secret generation

The chart does not generate the service token. The same value has to be configured on the Artifact Central service, which validates incoming requests against its own copy, so a token minted here would authenticate against nothing.

Create the secret before enabling the integration, and name it in authToken.secret:

shell
kubectl create secret generic gitlab-artifact-registry-credential \
  --from-literal=token="<the same token the Artifact Central service is configured with>"

The token is projected into the webservice, Sidekiq, and toolbox pods at /etc/gitlab/artifact-registry/.gitlab_artifact_registry_secret, which is the path rendered into gitlab.yml as artifact_registry.service_token.secret_file and artifact_central.service_token.secret_file.

apiUrl and the token are independent: an endpoint can be configured before the token exists. GitLab then fails closed on the calls that authenticate as the service rather than refusing to start.

Important notes

  • Configuration options, the service endpoint, and the authentication mechanism may change in later releases while the feature is in beta.
  • Report issues or feedback to the GitLab Package - Container Registry team.