Skip to main content
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.
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 does not follow the merge request yet: review comments and failed pipelines do not start a new run.
A protected branch rule or a push rule that covers ewake/* (for example, signed commits or a branch name format) blocks the write. When a write fails, ewake replies with what to change: the api scope, the Developer role, or the branch rule.

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.