Gitlab Integration - Inbound

This section describes the process of integrating a new Gitlab server (HUB) with the ARC Registry application for the inbound API requests. The application uses the Gitlab Access Tokens to access the ARC repositories through Gitlab APIs.

Enable Gitlab Access Tokens

To enable ARC Metadata Registry application access the Gitlab server APIs, we need to enable the Gitlab Access Tokens as follows.

  1. Login to the GitLab server as admin.

  2. Goto the User Settings page through Edit Profile tab and click on the Access Tokens link from the navigation on the left side.

  3. Add a new Personal Access Token with the read_api scope. Make sure the expiry date is set to a longer duration.

  4. Copy the access token for the next step.

Setup Access Token in Registry Application

Use the access token from the above process to setup the same in the registry application. Below are the steps.

  1. Go to the install directory and take a copy of the add_gitlab_tokens.sh script.

  2. Edit the script and update the HOST and TOKEN variables to the Gitlab hostname and the access token respectively.

  3. Save the script with the hostname and execute the same. The script adds the new hostname and the token to access the Gitlab API to the Gitlab integration module.