What you’ll get: After connecting GitLab, ewake can correlate production issues with recent merge requests and deployments, surface the diff that likely caused a regression, and analyse infrastructure-as-code changes (Terraform, Kubernetes manifests) alongside application code.
Prerequisites
- Owner access to your top-level GitLab group (GitLab.com) or administrator access (self-managed), required to create a service account
- Access to your ewake dashboard
Connect ewake with a dedicated service account rather than a personal access token. A service account isn’t tied to an individual, so access survives staff changes, stays least-privilege and auditable, and won’t break when someone leaves or rotates their own tokens. This is GitLab’s recommended pattern for integrations.
Configuration
Follow the steps for your GitLab deployment.- GitLab.com (SaaS)
- Self-managed
1
Create a service account
As a top-level group Owner, use Search or go to to open your group, then go to Settings → Service accounts → click Add service account.Enter a name (e.g.
ewake) and click Create service account.2
Create an access token for the service account
On the Settings → Service accounts page, find the service account, open the ⋮ (vertical ellipsis) menu → Manage access tokens → Add new token.Select the following scopes:
Set an expiry date and click Create personal access token.
Copy the token now, GitLab will not show it again after you leave this page.
3
Give the service account access to your projects
Add the service account as a member of each group or project you want ewake to monitor (Manage → Members → Invite members) with the Reporter role.
A token with no project membership reads nothing. Reporter is the minimum role required to read code, merge requests, and pipelines on private projects, and adding the service account at the group level covers every project inside that group.
4
Connect in ewake
In your ewake dashboard, go to Integrations → click the GitLab tile under Add more.
Click Test connection, then Save.
5
Check the projects
There is no project picker: ewake reads every project the service account is a member of. Click Overview on the GitLab card to see them listed under Projects. To add or remove a project, change the service account’s membership in GitLab.
We recommend including all projects with production services. Infrastructure repos (Terraform, Kubernetes configs) are particularly valuable for ewake’s root-cause analysis.
GitLab is connected. Ewake can now correlate incidents with merge requests and deployments.
Let ewake open merge requests (optional)
By default, ewake only reads GitLab. When this option is on, you can also ask ewake in Slack to open a merge request with a fix. The ewake team turns it on for your company.1
Create a token with the api scope
GitLab cannot add a scope to an existing token. On Settings → Service accounts, open the ⋮ menu of the service account → Manage access tokens → Add new token, and select:
write_repository is not enough: it allows git push only, and ewake writes through the GitLab API.2
Give the service account the Developer role
On each group or project where ewake may open merge requests, change the role of the service account from Reporter to Developer (Manage → Members). Keep Reporter on the projects that ewake should only read.
3
Reconnect in ewake
In your ewake dashboard, go to Integrations → click Overview on the GitLab card → Replace credentials, and paste the new token in Access token. Click Test connection, then Save changes. Then revoke the old token in GitLab.
What ewake does with this access:
- It creates branches named
ewake/…and commits only to those branches. - It opens the merge request. A person on your team reviews and merges it. Ewake never merges.
- It escapes GitLab quick actions (
/merge,/assign, …) in the merge request description. - It follows the merge requests it opened once the webhook below is set up. Without that webhook, no event reaches ewake and no reply arrives.
Let ewake follow its merge requests (optional)
With theapi token above, ewake also answers on the merge requests it opened. A comment, an approval or a failed pipeline starts a run, which replies in the thread and commits the change you asked for. GitLab carries those events to ewake through one webhook, which a person sets up once. The ewake team turns this on for your company.
1
Make the signing token in ewake
In your ewake dashboard, go to Integrations → click Overview on the GitLab card → under Webhook, click Set up the webhook. Ewake shows the URL and a signing token.
The signing token is shown once and never again. Copy it before you close the panel. A new token stops the old one at once.
2
Add the webhook in GitLab
Open the group that holds the projects ewake works in, then Settings → Webhooks → Add new webhook. Paste the URL from step 1 as the URL.
A group webhook needs Premium or Ultimate. On Free, add one webhook per project instead, and a Maintainer of the project has to do it.
3
Give it the signing token
Under Signing token, select Generate signing token, then replace the value GitLab made with the one ewake showed.
GitLab 18 and older have no signing token. On 16.11 and later, add a custom header named
Authorization instead, with Bearer and the same token as its value.4
Choose the triggers
Under Trigger, tick Comments, Merge request events and Pipeline events, then save.
Ewake now follows the merge requests it opened. It ignores every other trigger, and every event about a branch it did not open.
By default, ewake uses read-only access to GitLab. It writes only when merge requests are turned on, and then only to its own
ewake/… branches and the merge requests it opens.Track deployments from GitLab CI/CD →
Send deployment events to ewake directly from your CI/CD pipeline.
What does ewake access in GitLab? →
Full read-only permission breakdown for the GitLab integration.