GitLab Setup
Connect albus to GitLab.com or a self-managed instance (issues, merge requests, webhooks).
Overview
The GitLab integration links a albus project to a project on GitLab.com or your own instance. Tasks sync with issues, and webhooks keep albus updated when issues, merge requests, or pushes change.
You need:
- GitLab URL:
https://gitlab.com, or e.g.https://gitlab.example.com. - Access token with the
apiscope and at least the Developer role on the target project. - Project path: the full path including any groups, same as in the GitLab UI.
Access token
- In GitLab, open Settings → Access tokens → Add new token (personal, project, and group tokens all work).
- Enable the api scope and pick a role of Developer or higher.
- Copy the token and store it securely; paste it into albus’s GitLab integration settings and leave Token type on Personal, project or group access token.
To use an OAuth2 token you already hold, switch Token type to OAuth2 token; albus then sends it in Authorization instead of PRIVATE-TOKEN. GitLab expires OAuth2 tokens two hours after they are created, so an access token is the better fit for a long-lived link.
Webhook in GitLab
albus verifies incoming webhooks with a secret token stored per integration, which GitLab sends back in a header rather than signing the payload, so serve albus over HTTPS.
Where to create the webhook in GitLab
- Log in to GitLab and open the same project you linked in albus (
group/project). - Open the project Settings.
- In the left sidebar, open Webhooks (under the “Settings” section).
- If you do not see it, you need at least the Maintainer role on that project.
- Click Add new webhook.
Direct URL pattern (replace host and project path):
https://<your-gitlab-host>/<project path>/-/hooks
Example: https://gitlab.com/acme/my-app/-/hooks
Configure the webhook
-
Connect the project in albus Project → Integrations → GitLab and save.
-
Copy the Webhook URL and Secret token shown in albus (after saving).
-
In GitLab: Settings → Webhooks → Add new webhook.
-
Set URL to the albus webhook URL.
-
Set Secret token to the exact value from albus.
-
Leave Enable SSL verification on, unless your albus host uses a self-signed certificate.
-
Enable triggers:
- Push events
- Issues events
- Comments
- Merge request events
-
Save and use Test → Push events to confirm a
200response from albus.- If albus runs on a private address, an administrator must first enable Admin → Settings → Network → Outbound requests → Allow requests to the local network from webhooks and integrations.
The webhook URL includes your integration id, for example:
https://your-project-host/api/gitlab-integration/webhook/<integrationId>
Configure automation
Open Workflow → Automations in the albus project and choose the destination column for each GitLab event you want to move tasks. If you previously relied on GitLab's default or legacy status transitions, check these mappings after upgrading. An event set to Don't move leaves existing tasks in their current column.
GitLab on a private network
By default albus refuses a GitLab URL that resolves to a private or loopback address. If your instance is only reachable inside your network, set KANEO_ALLOW_PRIVATE_WEBHOOK_DESTINATIONS=true on the API. The same variable lifts the check for Gitea, notification destinations, and import sources, so only enable it on a trusted deployment.
Without this variable the GitLab URL must use https, since the access token is sent with every request.
What is not synced
- Confidential issues. They are skipped on import and ignored when they arrive through the webhook. If an issue is made confidential later, its task keeps the last public content and stops receiving updates.
- Internal notes and comments on confidential issues.
The Confidential issues events and Confidential comments triggers can stay off.
Disconnecting
Disconnecting removes the integration and its links to issues and merge requests; the tasks stay. Connecting again creates a new webhook URL and secret token, so update the webhook in GitLab afterwards.