✨ Software.com is now Antenna. Read more →
Skip to Content

GitLab

Our GitLab integration collects metadata about your organization’s activity across repositories, pull requests, and deployments. We never read, transmit, or store source code. Sensitive data, such as branch names and pull request titles, are always encrypted.

To classify the work in each merge request, we also collect its description, changed file paths, and commit headlines (the first line of each commit message) when it is merged or closed. We encrypt this saved copy at rest and use it only for classification. See Pull Request Classification for the full list.

Antenna supports both GitLab Cloud (your repositories are hosted on gitlab.com) and GitLab Self-Managed (your organization hosts and administers its own instance). Self-managed instances that aren’t reachable from the internet connect through a reverse proxy (recommended) or a private network (VPN). See Network Options to choose.

Permissions

We request only the necessary permissions to analyze Git metadata. Below is a description of the scopes requested when connecting to GitLab:

  • api: Read/write access to the API, including all groups and projects, the container registry, the dependency proxy, and the package registry.

Due to limitations in GitLab’s scopes, our platform requires api, not read_api, in order to install webhooks on each project. Please note that we never read, transmit, or store source code. We also do not edit or modify code or files.

You can learn more about scopes for authorized applications in GitLab’s documentation .

Connecting Self-Managed GitLab

Important

Before you begin: Please verify that you are an owner of the GitLab group you wish to connect to Antenna. If you’re not an owner, invite one to help set up your account. If your instance restricts access by IP address, add Antenna’s addresses first. See IP Allowlisting.

To connect a self-managed GitLab instance, select GitLab from our available integrations. You can add GitLab from your organization’s settings by navigating to the Settings view in the Antenna app and selecting the Connected Apps tab.

You will be asked to choose the type of GitLab instance your organization is running. Select Self-Managed.

Important

We authenticate to your GitLab organization using an OAuth connection. All groups to which you have access will be synced. If you don’t have access to all of your organization’s groups, invite an admin to set up the application on your behalf.

Follow the steps below to connect GitLab:

  1. Select a Group. You can install Antenna on any group.
  2. Select Settings, then Applications in the left sidebar.

GitLab applications

  1. Click Add New Application.

GitLab settings

  1. Enter the information below to create the new Group application:
    1. Name: Antenna
    2. Redirect URI: https://app.antenna.dev/gitlab_onboarding/create 
    3. Confidential: checked
    4. Scopes: api

Create application

Important

Due to limitations in GitLab’s scopes, our platform requires api, not read_api, in order to install webhooks on each project. Please note that we never read, transmit, or store source code. We also do not edit or modify code or files.

  1. Click Save Application to generate application credentials.
  2. Copy the Application ID and Secret. Store these credentials securely, as they can not be accessed again later. Only select Continue once you have these copied and stored securely.
  3. Navigate back to Antenna and paste the Application ID and Secret. Click Save.

GitLab application

  1. Activate your GitLab App. You will be redirected to authorize Antenna to access your account.

After connecting, you can manage your GitLab integration from the Applications page.

Manage applications

Network Options

If your GitLab instance isn’t reachable from the internet, choose one of two ways to connect it to Antenna:

OptionBest forWhat changes on your network
Reverse proxy (recommended)Most organizations. Fastest to set up, with nothing to install.A public hostname on a reverse proxy or load balancer that only accepts traffic from Antenna’s IP addresses.
Private network (VPN)Organizations with a compliance requirement that rules out any public hostname.An IPsec tunnel between your firewall and Antenna, scoped with our team.

Connecting via Reverse Proxy

Put a reverse proxy or load balancer in your DMZ that terminates TLS on port 443, accepts traffic only from Antenna’s IP addresses, and forwards it to your internal GitLab instance. The GitLab integration uses three paths:

  • Antenna calls your GitLab API to read groups, projects, merge requests, and deployments, and to manage the webhooks it installs.
  • Your GitLab instance sends webhook events to Antenna at https://app.antenna.dev/api/v1/webhooks/gitlab.
  • Your browser signs in to GitLab once, when you activate the application during setup.
RequirementDetails
Public DNS recordA hostname that resolves from the public internet, for example gitlab.example.com. Internal-only names do not resolve from our cloud.
Inbound TCP 443The URL you register must use https:// on the default port. URLs with a custom port are rejected. If GitLab listens on another port internally, terminate 443 at the proxy and forward to it.
Valid TLS certificateA certificate from a publicly trusted CA that matches the public hostname. Self-signed certificates and private CAs fail the TLS handshake.
IP restrictionRestrict ingress to Antenna’s five IP addresses. See IP Allowlisting.
API pathsPass these paths through unmodified and preserve the Authorization header: /.well-known/openid-configuration, /oauth/token, /api/v4/*, and /api/graphql.
Outbound webhooksAllow your GitLab instance to send HTTPS requests to app.antenna.dev on port 443.

Antenna uses the same URL for API requests and for the sign-in step in your browser. If the proxy only accepts Antenna’s IP addresses, resolve the same hostname to your internal instance from inside your network (split DNS), so both Antenna and your administrators can reach it.

To confirm the proxy works, run this from a machine outside your network:

curl -i https://gitlab.example.com/.well-known/openid-configuration

A 200 response with JSON means Antenna can reach your instance. A DNS failure, TLS error, or timeout points to the hostname, certificate, or firewall rules.

Connecting via Private Network (VPN)

Some organizations run GitLab on their own infrastructure with no cloud provider involved and need a dedicated, encrypted connection to Antenna instead of a standard internet-based integration. For these organizations, we support an AWS Site-to-Site VPN (IPsec) tunnel between your network and Antenna. You don’t need an AWS account, only a VPN-capable firewall or router.

Our GitLab integration works in both directions: Antenna calls your GitLab API to pull data, and your GitLab instance sends webhook events to Antenna. The tunnel setup accounts for both paths.

Important

This setup is intended for organizations with a compliance requirement for a private network connection. If you don’t have this requirement, use a reverse proxy instead.

What We Need From You

Send the following to your Antenna account contact to get started:

  • Public static IP of the firewall or router that will terminate the VPN tunnel on your end. This IP must be static.
  • BGP ASN, only if you want dynamic (BGP) routing. If you don’t provide one, we use static routing.
  • Internal CIDR range where your GitLab instance lives, for example 10.10.2.0/24.
  • GitLab internal hostname, for example gitlab.internal.yourco.com. This is the address Antenna calls. GitLab must answer HTTPS on port 443 at that hostname, with a certificate from a publicly trusted CA.
  • VPN device make and model, if available. This lets us send you a ready-made configuration template instead of generic parameters.
  • Confirmation that your firewall allows outbound UDP 500 (IKE), UDP 4500 (NAT-T), and ESP (IP protocol 50) to our tunnel endpoints.
  • Confirmation that your internal firewall or ACLs allow traffic from Antenna to reach your GitLab instance on the port above. We provide the specific source range once the tunnel is live.

What Happens Next

  1. We create the connection on our end using your public IP and routing preference.
  2. We send you a configuration file with pre-shared keys and tunnel endpoint addresses, matched to your device if you provided the make and model.
  3. You apply the configuration to your VPN device and set up both tunnel endpoints for redundancy.
  4. We confirm together that the tunnel is up.
  5. You point your GitLab webhooks at the private endpoint we provide, so webhook traffic stays inside the tunnel.
  6. We verify both API access and webhook delivery end to end.

Access is scoped to the specific GitLab endpoint and port you provide, not your full network.

IP Allowlisting

If your organization restricts access by IP address, you must allow traffic from Antenna before connecting a source such as your Git provider or LiteLLM proxy. All of our API requests come from a fixed set of load balancer IP addresses, so an active allowlist that does not include them will block data imports, and for Git providers, sign-in too.

Add all five addresses below. In tools that require CIDR notation, append /32 to each address (for example, 100.21.131.68/32).

IP addressDirection
100.21.131.68Inbound and outbound
54.200.57.76Inbound and outbound
52.37.32.106Inbound and outbound
44.241.124.75Inbound and outbound
54.69.112.12Egress (outbound requests from Antenna)

When an address is missing from your allowlist, the connection often looks successful while requests fail in the background with 403 errors and no data appears in your reports. If you are unsure whether an IP restriction is active, ask your provider administrator to confirm before connecting, or contact us at support@antenna.dev.

Questions? Email us at support@antenna.dev.

Last updated on