Skip to main content

Check out Port for yourselfย 

Installation

This page details how to install Port's GitLab integration (powered by the Ocean framework).

This page outlines the following steps:

  • How to create an access token to give the integration permissions to query your GitLab instance.
  • How to configure and customize the integration before deploying it.
  • How to deploy the integration in the configuration that fits your use case.

Prerequisitesโ€‹

  • A GitLab account with permissions to create access tokens.
  • If you choose the real time & always on installation method, you will need a kubernetes cluster on which to install the integration.
  • Your Port user role is set to Admin.

Setupโ€‹

Configure access tokenโ€‹

To allow Port to fetch data from your GitLab instance, you need to create an access token. Port supports two types of tokens for authentication: personal access tokens and group access tokens.

Personal access token (PAT)โ€‹

A Personal Access Token (PAT) is suitable if you're the only one managing the integration and don't need frequent credential rotation.
To create a personal access token see the GitLab personal access token guide.

  • The token must belong to a user with access to the relevant GitLab resources (e.g., projects, groups).

Group access tokenโ€‹

A Group Access Token is recommended when multiple team members manage the integration or when it's set up at the group level.
To create a group access token, see the GitLab group access token guide.

  • Create the token in a group that has access to the relevant projects.
  • Set an appropriate expiration date and store it securely.

Service account tokenโ€‹

A service account token is recommended where credentials must remain stable and unaffected by changes in human user membership.

To set up the account and generate a personal access token, see the GitLab service account guide.

  • Add the service account to the relevant projects or groups with sufficient permissions (e.g., Developer or Maintainer).
Required scopes

The following scopes are required based on your usage.

  • To enable real-time updates using webhooks, the token must include the api scope (required for managing webhooks).
  • If you're not using realtime updates, the token needs read_api and read_repository scopes.

Configure Realtime webhook eventsโ€‹

tip

The baseUrl parameter is used specifically to enable the real-time functionality of the integration.

If it is not provided, the integration will continue to function correctly. In such a configuration, to retrieve the latest information from the target system, the scheduledResyncInterval parameter has to be set, or a manual resync will need to be triggered through Port's UI.

Deploy the integrationโ€‹

Choose one of the following installation methods:

Using this installation option means that the integration will be hosted by Port, with a customizable resync interval to ingest data into Port.

Live event support

This integration supports live events, allowing real-time updates to your software catalog without waiting for the next scheduled sync.

Supported live event triggers

Groups:

  • group_create
  • group_destroy
  • subgroup_create
  • subgroup_destroy

Projects:

  • push

Issues:

  • issue

Merge Requests:

  • merge_request

Files and Folders:

  • push

Members:

  • user_remove_from_group
  • user_update_for_group
  • user_add_to_group

Jobs:

  • build

Pipelines:

  • pipeline
Self-hosted installation

Alternatively, you can install the integration using the Real-time (self-hosted) method to update Port in real time using webhooks.

Installation

To install, follow these steps:

  1. Go to the Data sources page of your portal.

  2. Click on the + Data source button in the top-right corner.

  3. Click on the relevant integration in the list.

  4. Under Select your installation method, choose Hosted by Port.

  5. Configure the integration settings and application settings as you wish (see below for details).

Application settings

Every integration hosted by Port has the following customizable application settings, which are configurable after installation:

  • Resync interval: The frequency at which Port will ingest data from the integration. There are various options available, ranging from every 1 hour to once a day.

  • Send raw data examples: A boolean toggle (enabled by default). If enabled, raw data examples will be sent from the integration to Port. These examples are used when testing your mapping configuration, they allow you to run your jq expressions against real data and see the results.

Integration settings

Every integration has its own tool-specific settings, under the Integration settings section.
Each of these settings has an โ“˜ icon next to it, which you can hover over to see a description of the setting.

Port secrets

Some integration settings require sensitive pieces of data, such as tokens.
For these settings, Port secrets will be used, ensuring that your sensitive data is encrypted and secure.

When filling in such a setting, its value will be obscured (shown as โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ข).
For each such setting, Port will automatically create a secret in your organization.

To see all secrets in your organization, follow these steps.

Limitations

  • The maximum time for a full sync to run is based on the configured resync interval. For very large amounts of data where a resync operation is expected to take longer, please use a longer interval.

Port source IP addresses

When using this installation method, Port will make outbound calls to your 3rd-party applications from static IP addresses.
You may need to add these addresses to your allowlist, in order to allow Port to interact with the integrated service:

54.73.167.226  
63.33.143.237
54.76.185.219