Rename Artifact Registry settings to Artifact Central
Title: Draft: [skip ci] Rename Artifact Registry settings to Artifact Central
What does this MR do?
Artifact Registry was renamed to Artifact Central. This MR renames the Linux package settings to match and keeps the old names working during the transition.
| Layer | Before | After |
|---|---|---|
gitlab.rb key |
gitlab_rails['artifact_registry'] |
gitlab_rails['artifact_central'] (old key deprecated) |
| Default attributes | artifact_registry = {} |
artifact_central = {}, plus the old one until 20.0 |
| Library and template | GitlabRails.artifact_registry_settings, @artifact_registry_settings |
GitlabRails.artifact_central_settings, @artifact_central_settings |
gitlab.yml |
artifact_registry: |
artifact_central: and artifact_registry:, identical contents |
The subkeys don't change: api_url and service_token_file in gitlab.rb, api_url and service_token.secret_file in gitlab.yml. Neither gitlab.yml block renders when api_url is unset.
How does the old gitlab.rb key keep working?
This follows the Piwik to Matomo rename (cdbf5feb):
- Fallback: a new
GitlabRails.parse_artifact_central_settingsstep copiesgitlab_rails['artifact_registry']togitlab_rails['artifact_central']when only the old key is set. - Both set:
artifact_centralwins. Reconfigure warns that the old key is ignored. - Deprecation warning: a
Gitlab::Deprecations.listentry for%w(gitlab gitlab_rails artifact_registry)warns at reconfigure from 19.7. The note names the new key. - Removal in 20.0: from 20.0, the same entry makes the package install and reconfigure fail early if the old key is still set. adding-deprecation-messages.md says removals should almost always land in a major release. 20.0 is the first major after 19.7.
Docs and the gitlab.rb.template example now use the new key. The docs have a history entry and a note about the deprecated key.
Must ship in 19.7
This MR must ship in GitLab 19.7, together with gitlab!272254. Without it, a 19.7 Linux package install renders only artifact_registry:, and Rails 19.7 would see no Artifact Central settings.
Rollout order
| Step | Change | When |
|---|---|---|
| 1 | This MR: new gitlab.rb key, old key deprecated, gitlab.yml renders both keys |
19.7 |
| 2 | gitlab!272254: Rails reads only artifact_central: |
19.7 (merge in either order) |
| 3 | Follow-up: stop rendering artifact_registry: in gitlab.yml |
After 19.7 |
| 4 | Follow-up: remove the gitlab_rails['artifact_registry'] default and fallback. Keep the deprecation entry. |
20.0 |
Steps 1 and 2 can merge in either order. Rails ignores unknown keys, so the extra artifact_central: key is harmless before !272254 lands.
Test plan
bundle exec rspec spec/chef/cookbooks/gitlab/recipes/gitlab-rails_spec.rb spec/chef/cookbooks/package/libraries/deprecations_spec.rb- New key renders under both
gitlab.ymlkeys. - Old key alone still renders under both keys.
- Both set: new key wins, and a warning is logged.
- Deprecation entry warns in 19.7 and blocks in 20.0.
- New key renders under both
- Not yet validated on a built package.
Related issues
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion.
Required
- MR title and description are up to date, accurate, and descriptive.
- MR targeting the appropriate branch.
- Latest Merge Result pipeline is green.
- When ready for review, MR is marked as ready (not a draft) and a reviewer is requested. Pick the reviewer suggested by the reviewer roulette, or one of the project maintainers.
For GitLab team members
If you don't have access to this, the reviewer should trigger these jobs for you during the review process.
- The manual
Trigger:ee-packagejobs have a green pipeline running against latest commit.- To debug QA failures, refer to the Investigate QA failures section.
- If
config/softwareorconfig/patchesdirectories are changed, make sure thebuild-package-on-all-osjob within theTrigger:ee-packagedownstream pipeline succeeded. - If you are changing anything SSL related, then the
Trigger:package:fipsmanual job within theTrigger:ee-packagedownstream pipeline must succeed. - If CI configuration is changed, the branch must be pushed to
dev.gitlab.orgto confirm regular branch builds aren't broken.
Expected (please provide an explanation if not completing)
- Test plan indicating conditions for success has been posted and passes.
- Documentation created/updated.
- Tests added.
- Integration tests added to GitLab QA.
- Equivalent MR/issue for the GitLab Chart opened.
- Validate potential values for new configuration settings. Formats such as integer
10, duration10s, URIscheme://user:passwd@host:portmay require quotation or other special handling when rendered in a template and written to a configuration file.
Reviewer checklist
- As soon as you begin reviewing, select Start a review on your first comment so the MR shows Reviewer started review.