Skip to content

Add allow_runner_registration_token application setting

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR creates a database migration to add a allow_runner_registration_token setting to application_settings table (default: true), as per https://docs.gitlab.com/ee/architecture/blueprints/runner_tokens/#details. It also exposes the setting in the REST API. It will be followed by a similar MR to add the setting to the root namespaces.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Verify that the setting is indeed present in the /application/settings endpoint response, and has the default true value:

$ curl -s http://gdk.test:3000/api/v4/application/settings -H "private-token: $GITLAB_GDK_TOKEN" | jq '.allow_runner_registration_token'
true

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Pedro Pombeiro

Merge request reports