Rename the artifact_registry settings key to artifact_central

What does this MR do and why?

Renames the Artifact Central settings key and its Prometheus counter, as part of the Artifact Registry to Artifact Central rename.

  • Settings key: gitlab.yml reads artifact_central: instead of artifact_registry:. This covers config/gitlab.yml.example, config/initializers/1_settings.rb, ArtifactRegistry::Configuration, and every spec that stubs the key.
  • Prometheus counter: gitlab_ci_artifact_registry_pull_credentials_total becomes gitlab_ci_artifact_central_pull_credentials_total. The metrics doc row is updated to match.
  • No fallback: The old key is not read. Artifact Central is in beta, so we break once instead of carrying two names.

Unchanged: Ruby module and file names (ArtifactRegistry::), the ci_artifact_registry_pull_credentials feature flag, and the secret file path /etc/gitlab/artifact-registry/.gitlab_artifact_registry_secret.

Deploy coordination

This MR breaks Artifact Central on any install whose gitlab.yml still says artifact_registry:. Without api_url, ArtifactRegistry::Configuration.configured? returns false, and every Artifact Central feature turns off.

Install What writes the key today What must change
GitLab.com k8s-workloads/gitlab-com sets global.appConfig.artifactRegistry in releases/gitlab/values/gprd.yaml.gotmpl and gstg.yaml.gotmpl. The vendored chart (vendor/charts/gitlab/{gprd,gstg,pre}/charts/gitlab/templates/_gitlab.yaml.tpl) renders it as artifact_registry:. .com must render artifact_central: before this MR deploys. Rails auto-deploys faster than chart versions get vendored, so the chart change (or a .com override) has to be live first.
Charts charts/gitlab/templates/_gitlab.yaml.tpl renders artifact_registry: from global.appConfig.artifactRegistry. Render artifact_central:. Ship in 19.7.
Omnibus files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb renders artifact_registry: from gitlab_rails['artifact_registry']. Render artifact_central:. Ship in 19.7.

Order:

  1. Chart (gitlab-org/charts/gitlab!5626 (merged)) and Omnibus (omnibus-gitlab!10130 (merged)) both render artifact_registry: and artifact_central:. Both merge before this MR, so old and new Rails work on every install method, and 19.7 never ships this MR without Omnibus.
  2. GitLab.com vendors that chart version (k8s-workloads), so .com renders artifact_central:.
  3. Caproni (gitlab-org/ops/artifact-registry e2e): bump GL_CHART_DEVEL_VERSION to a chart build that includes the chart MR, and make scripts/e2e/caproni-up.sh check for artifact_central:. Caproni runs CNG master images, so without this its Rails loses api_url when this MR merges.
  4. This MR merges.
  5. After 19.7, the chart and Omnibus stop rendering artifact_registry:.

Nothing in gitlab-com/runbooks references the old counter name, so no dashboard or alert needs an update.

References

Related to #630237

Related to gitlab-org/ops/artifact-registry#2072 (closed)

Screenshots or screen recordings

Not applicable. No UI change.

How to set up and validate locally

  1. In your GDK config/gitlab.yml, rename the artifact_registry: block to artifact_central:. If you have no block, the development default http://localhost:8080 applies.
  2. Restart Rails: gdk restart rails-web.
  3. In a Rails console, check the key resolves:
    Gitlab.config.artifact_central['api_url']
    ArtifactRegistry::Configuration.configured?
  4. Visit an organization's Artifact Central page and confirm it loads.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

🤖 Generated with Claude Code

Edited by Tim Rizzi

Merge request reports

Loading
Loading