Connect GitLab container registry - Administrator Guide - Cortex CLOUD

Cortex Cloud Posture Management Documentation

Product
Cortex Cloud Application Security > Cortex CLOUD
License
Cloud Posture Management
Creation date
2025-01-22
Last date published
2026-06-04
Category
Administrator Guide

Configure Cortex Cloud to scan your GitLab Container Registry without using administrator credentials. Use a GitLab Personal Access Token (PAT) to authenticate Cortex to access the GitLab Container Registry. This allows Cortex to list all container registries or images, and secure them from vulnerabilities, malware, and secrets.

How to connect GitLab registry

Follow the wizard to connect the GitLab Container Registry connector in Cortex Cloud.

  1. Navigate to SettingsData Sources & Integrations.

  2. On the Add Data Sources or Integrations page, click + Add New, search for GitLab Container Registry, then hover over it and click Add.

  3. The Instance Name is automatically populated. You can change it to a more meaningful name.

  4. Choose the Scan Mode, and then follow the steps provided for that mode to configure the connection.

  5. In Initial Scan Configuration, set your scanning process to focus on recently added or modified container images and exclude older ones that do not align with your current scanning objectives. This setting helps avoid unnecessary scans. Choose one of the following options:

    • All: Scans all container images, including all versions (tags), in all discovered repositories.

    • Latest Tag: Scans only images tagged 'latest' in all discovered repositories.

    • Days Modified: Scans container images created or modified in the last few days. You can select a range of up to 90 days for the scan.

  6. Select Save.

    When the Gitlab data source is saved successfully, a new data connector is created, and the initial discovery scan is started. The connection process may take up to 15 minutes.

  7. To check connector status and scan results, follow these steps:

    1. Navigate to SettingsData Sources & Integrations.

    2. Find the Gitlab Container Registry instance from the list of 3rd Party Data Sources connectors, or use Search.

    3. In the Gitlab Container Registry instance row, select View Details. The Gitlab Instances page appears.

    4. On the Gitlab Instances page, you can filter results by any heading and value.

    5. Select an instance name to open the details pane. The details pane contains the following granular information:

      Instance Details

      Description

      Status

      Shows the status of the connector: Connected, Error, Warning, Disabled, or Pending.

      Applet Status on Broker VM

      Shows the status of the Registry Scanner applet on the Broker VM page. This status is visible only when the Scan with Broker VM mode is selected.

      Repositories

      Shows the number of scanned repositories in the registry.

      Scan Mode

      Shows the selected scan mode for the data connector, such as Cloud Scan, Scan with Outpost, or Scan with Broker VM.

      Security Capabilities

      Shows a breakdown of the security capabilities enabled on the instance and their individual statuses. For example, select Registry Scanning when it shows a warning or error status to see the open errors and issues that contributed to the status.

  8. Next Steps.

    • After the scan is complete, you can view the list of scanned images on the Container Images Inventory page. For more details, see Container Image assets.Container Images

    • If you have selected the Scan with Broker VM option, then a Registry Scanner applet is created on the selected Broker VM or Cluster. For details, see Verify Registry Scanner connection.

      registry-scanner-applet-on-boker-vm.png