Skip to content

CI_JOB_TOKEN bot authorization backend

Proposal

Introduce a mechanism (when enabled via project settings) that limits the use of CI_JOB_TOKEN to the project where it originated from. By default, with this setting on, the CI_JOB_TOKEN won't be used outside the project's scope. However, project maintainers can add other projects to the CI_JOB_TOKEN scope. This way the token can be used across a list of selected projects. For example, to trigger multi-project pipelines, etc.

Backend Proposal

Iteration plan

  1. ship the PoC which represents the skeleton for the entire feature
  2. introduce a new table to track associations between projects (token scope)
  3. introduce CI/CD project setting to enable/disable the feature
  4. ship the GraphQL endpoints in parallel
Edited by Fabio Pitino