Skip to content

Add inbound token access feature - UI

Payton Burdette requested to merge 375782-inbound-ci-job-token into master

What does this MR do and why?

This MR adds the ability in the UI to allow certain projects access to your project by a CI_JOB_TOKEN. This code is behind the feature flag :ci_inbound_job_token_scope.

Things to note while reviewing this MR...

  1. The code is written in a way so we can easily remove the outbound access in %16.0
  2. The inbound_token_access.vue component is essentially a carbon copy of the outbound component. Just some copy changes and mutation/query structure changes.
  3. You'll see some code repeated, but this is okay. Since we will be removing the outbound logic in an upcoming milestone.
  4. At first I didn't know we were removing the feature completely, so I tried to open an MR that made the two live together a little more nicely. But it's not needed anymore...

Screenshots or screen recordings

flag off flag on
Screen_Shot_2023-02-01_at_10.48.18_AM Screen_Shot_2023-02-03_at_10.21.24_AM

How to set up and validate locally

  1. Enable the flag Feature.enable(:ci_inbound_job_token_scope)
  2. Project > Settings > CI/CD > Token Access

MR acceptance checklist

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

Related to #375782 (closed)

Edited by Payton Burdette

Merge request reports