Set the GitLab webhook secret
A webhook lets GitLab tell Astrolabe right away when something happens, for example a pipeline that failed, instead of Astrolabe finding out a few minutes later. Astrolabe only trusts a call signed with a secret you both know.
You do it once, as an administrator.
Before you start
Choose a secret: a long random text. You enter the same one in GitLab.
🔧 Save the secret in Astrolabe
-
In the left sidebar, at the bottom, click Administration.
-
Under PLATFORM, click Company connections.
-
Click the Webhooks tab.
-
On the GitLab card, click Configure.
-
In the window Configure GitLab Secret, next to Webhook URL, click Copy address. The button says Copied. Keep that address: you paste it in GitLab below.
-
Fill in the field:
Field What to enter Example Webhook URL Nothing to type: the address GitLab calls, copied in the previous step https://astrolabe.acme.example/api/orion-events/gitlabWebhook Secret The secret, which verifies the webhook requests a-long-random-text -
Click Save Secret.
-
In the banner The configuration has changed., click Reload.
The card now says No call received since Astrolabe started. and offers Manage.
Click Manage. Replace lets you type a new secret, Delete removes it. The window shows the address again each time.
In your GitLab project, add a webhook: the address you copied is its URL, and the secret is its token. This step was not checked on a live instance.
✅ That's it!