GitLab has deprecated the use of registration tokens with gitlab-runner register. See https://gitlab.com/gitlab-org/gitlab/-/issues/380872
We'll need to refactor the registration command in our puppet module and upgrade gitlab-cloud-runner to use newer runner helm chart.
Estimated time frame for planned upstream changes
In GitLab 15.10 and later, you can use the new runner registration workflow.
In GitLab 17.0, we plan to disable runner registration tokens.
In GitLab 18.0, we plan to completely remove support for runner registration tokens.Relevant documentation:
Register with a runner authentication token
Migrating to the new runner registration workflow
Creating runners programmatically
Reusing a runner configuration
Runners registered with the same authentication token and different system_id values become grouped under a single runner. Grouped runners can be reused to run different jobs by multiple runner managers.
Installing GitLab Runner with Helm chart
In the legacy runner registration workflow, fields were specified with runner-registration-token, In the new runner registration workflow, you must use runner-token instead:
Automate runner installation and registration
Todos
- research API changes for runner registration API
- evaluate and test new registration workflow on test instance and some cloud runners
- write a script to create new registration tokens with proper settings https://gitlab.wikimedia.org/repos/releng/gitlab-settings/-/merge_requests/47
- add new tokens to private puppets (production, devtools, gitlab-runners project and cloud runners)
- update puppet code to use the new tokens and new workflow https://gerrit.wikimedia.org/r/c/operations/puppet/+/968988
- create migration plan for unregister, puppet-merge and register runners again
- migrate runners
- test instance
- migrate one Shared and one Trusted Runner
- Shared runners in WMCS
- Trusted Runners
- Cloud runners
- test a full reimage of a runner
- test sre.gitlab.reboot-runner and sre.gitlab.upgrade cookbook
- update wikitech docs with new registration workflow https://wikitech.wikimedia.org/wiki/GitLab/Gitlab_Runner#Adding_new_runners_(administrators)
- remove old tokens from private puppet and CI secrets
