> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GitLab

> Connect GitLab.com to Tembo on Kubernetes, with a service account or an OAuth application.

Tembo connects to GitLab.com with a service account or through an OAuth application. GitLab Self-Managed and Dedicated aren't supported; contact [support](https://docs.tembo.io/support.md) before planning to use them.

## Step 1: Choose how to connect

* **Service account** (simplest): no app to create. Create a token with the `api` scope for an account with the Maintainer role on the projects Tembo should access, and skip to Step 3.
* **OAuth**, for personal accounts: create a GitLab.com OAuth application with the redirect URI `https://<your-host>/api/oauth/gitlab/callback` and these scopes: `api`, `profile`, `openid`, `read_api`, `read_user`, `read_repository`, `write_repository`, `read_observability`, `write_observability` and `email`.

## Step 2: Give Tembo the OAuth credentials

For OAuth only. Store the application's credentials in a Secret:

```bash theme={null}
read -s GITLAB_CLIENT_SECRET
kubectl -n tembo create secret generic tembo-gitlab \
  --from-literal=gitlab.clientId=<Application ID> \
  --from-literal=gitlab.clientSecret="$GITLAB_CLIENT_SECRET"
unset GITLAB_CLIENT_SECRET
```

Add it to `configSecrets` in your values, keeping any existing entries, and [apply the change](https://docs.tembo.io/features/self-hosted/kubernetes/configuration.md#apply-changes):

```yaml theme={null}
configSecrets:
  - tembo-gitlab
```

The chart generates the webhook secret, `gitlab.webhookSecret`, for you.

## Step 3: Connect GitLab

1. In Tembo, open **Settings > Integrations** and connect the service account, or install GitLab through OAuth.
2. Check that your projects appear in Tembo, and start a session that opens a merge request.

Tembo registers project webhooks at `https://<your-host>/api/webhook/gitlab`, or your [public API host](https://docs.tembo.io/features/self-hosted/kubernetes/networking.md#public-api-host). GitLab must be able to reach it. If merge request comments or pipeline events don't arrive, check the project's webhook deliveries in GitLab.

See the [GitLab guide](https://docs.tembo.io/integrations/gitlab.md) for using it.

***

## Need Help?

If you run into any issues, contact [support@tembo.io](mailto:support@tembo.io).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.