Skip to content

Add endpoint to call verified namespace service

What does this MR do and why?

Parent issue

Adding an endpoint to run the VerifyNamespaceService. This endpoint will be run by the Gitlab customer support only.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots or screen recordings Before calling the endpoint: Screenshot_2024-05-14_at_18.51.31

Authorised: Screenshot_2024-05-14_at_18.52.29

Screenshot_2024-05-14_at_20.50.11

When not a root namespace is passed & invalid verification level: Screenshot_2024-05-17_at_15.12.34

When a non root namespace is passed: Screenshot_2024-05-14_at_15.16.44 When invalid verification level is passed: Screenshot_2024-05-14_at_15.17.04 When non existant namespace path is passed: Screenshot_2024-05-14_at_18.49.50 When caller of this endpoint does not have the credentials to do so: Screenshot_2024-05-15_at_13.17.15 Non Gitlab.com instance Screenshot_2024-05-15_at_18.24.22

How to set up and validate locally

Follow steps described in !149532 (merged)
Run endpoint via http://127.0.0.1:3000/-/graphql-explorer

mutation {
  verifiedNamespaceCreate(input: { namespaceId: "root-level-group", 
    verificationLevel: "gitlab_maintained"
    }) {
    errors
  }
}
Edited by Kasia Misirli

Merge request reports