Prerequisites
Before configuring the catalog provider, make sure the GitLab integration is configured in Portal under App Settings > Integrations. The GitLab token used by the integration must have theread_api scope and access to the groups and users you want Portal to ingest.
Configure the GitLab Org Provider in Portal
This setup uses the same Catalog Settings > Providers flow covered in Setup GitLab Discovery. If you already configured GitLab auto-discovery, use the same host and provider settings as your starting point.- In Catalog Settings, go to the GitLab provider
- Add a new provider configuration
- Fill in the required provider details:
Provider ID- Usedefaultto get startedHost- Use the defaultgitlab.comvalue for GitLab SaaS, or your self-managed GitLab hostnameGroup- For GitLab.com, enter the group path that contains the users and groups Portal should ingestSchedule- Use the default schedule to get started, then adjust the refresh frequency and timeout later if needed
- Save the provider configuration
Enable the GitLab Org Module
- In Portal, go to Plugins
- Open Catalog
- Select Modules
- Open
@backstage/plugin-catalog-backend-module-gitlab - Under the provider key you want to enable, set
orgEnabledtotrue - Save the module configuration
Notes
For GitLab.com, useGroup to limit ingestion to your organization or team path. For self-managed GitLab, the group can be used to narrow ingestion when you do not want Portal to scan the whole instance.
The upstream Backstage provider supports additional options for group relations and user filtering. See the Backstage GitLab Organizational Data documentation for more details.