Skip to content

New REST endpoint GET allowlist of CI_JOB_TOKEN access settings

What does this MR do and why?

  • This MR works towards the another task of the issue (feature) #351740 (closed)

🛠 with at Siemens

Screenshots or screen recordings

  • New REST endpoint for allowlist of CI_JOB_TOKEN access settings
    • GET "api/v4/projects/:id/job_token_scope/allowlist/inbound"
  • The response is paginated
  • The response contains a list of projects (basic project object)

How to set up and validate locally

  1. Create a personal access token with the respective permissions
  2. Ensure the user of the personal access token is at least maintainer of the project
  3. Execute the following curl commands
curl --request GET \
  --url http://127.0.0.1:3000/api/v4/projects/7/job_token_scope/allowlist/inbound?private_token=<personal_access_token_of_project_maintainer>

TODO

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 #351740 (closed)

Edited by Gerardo Navarro

Merge request reports