How a Rocket.Chat GitLab notification integration works
Developers usually want GitLab activity in the rooms where they already talk, and the platform owner has to decide how that flow reaches Rocket.Chat. The supported method is a Rocket.Chat incoming webhook paired with a GitLab script that Rocket.Chat provides. The script receives GitLab's webhook payloads and formats them for push, tag push, merge request, comment, issue, pipeline, job and wiki events. GitLab sends each event to your Rocket.Chat workspace over HTTP, so the integration is one-directional: GitLab posts into rooms, and nothing in Rocket.Chat acts on the repository. Events the script does not recognize are still posted, as generic messages containing the raw data, so the room may receive more detail than a team expects.
The most important infrastructure decision is the public URL requirement. GitLab can only deliver events if the Rocket.Chat workspace is reachable at a public address, which means your team must decide whether an internet-facing endpoint is acceptable for the workspace, or whether a different model fits your network policy. Confirm this with your security team before you configure anything, and check how the endpoint is exposed (reverse proxy, TLS, allowed source addresses) with the deployment team. Also confirm whether your GitLab instance can reach that address at all, since self-managed GitLab in a restricted network may face its own outbound limits.
Confidential issues are ignored by default, so a team that expects private security or HR issues to appear in a room should not assume they will. Treat this as a default to verify, not a control to rely on: check the script's configuration in your version, decide which projects and rooms receive which event types, and document who may change those settings. Keep the room list narrow for sensitive projects, and review the posted content, because a room's members will see whatever the script formats.
What you need before you configure the webhook
The GitLab integration depends on four things lining up: a Rocket.Chat workspace that GitLab can reach, an admin who can create the webhook, a GitLab owner who can add project webhooks, and rooms ready to receive messages. Check each one before you touch either side, because a gap in any of them looks like a silent failure later.
Public URL, DNS and TLS
Rocket.Chat's GitLab integration requires the workspace to be reachable at a public URL, so GitLab can deliver events to it over HTTPS. Confirm that the DNS name resolves to the right host, that the certificate is valid and trusted by GitLab's servers, and that the chain is complete. An internal-only hostname or a self-signed certificate will cause deliveries to fail without a clear error in Rocket.Chat.
GitLab integration docsOutbound reachability from GitLab
Each event is sent from GitLab to your Rocket.Chat endpoint, so the network path must allow inbound HTTPS from GitLab's egress addresses to Rocket.Chat. For self-managed GitLab, check that its outbound rules and any proxy settings allow the request. Test with a sample event after the firewall and load balancer rules are in place, not only with a browser request.
Admin account for the webhook
Creating an incoming webhook in Rocket.Chat requires an administrator or a user with the matching permission. Use a named service-style account rather than a personal login so the webhook's author and any later rotation do not depend on one employee. Record who holds that access, because the webhook token is effectively a credential for posting into rooms.
GitLab owner for project webhooks
Project webhooks in GitLab are added by a user with maintainer or owner rights on the project, and group-level hooks need owner rights on the group. Confirm who will create and maintain these hooks for each project, and agree which events are in scope, such as pushes, merge requests, pipelines, issues and wiki changes. Event scope decides how noisy each room becomes.
Target rooms and membership
Decide which Rocket.Chat rooms receive each event type before you create the webhook, and confirm the rooms exist with the right visibility. Private rooms need the posting identity to be a member, and confidential GitLab issues should not be routed to broadly joined channels. Document the owner of each room so that alerts have someone to act on them.
Supported Rocket.Chat version
Confirm that your Rocket.Chat release is on a supported line before you build on the integration. Rocket.Chat says versions past end of life get no security or bug fixes, and cloud services such as Marketplace stop working. Check the version durability documentation against your installed release, and plan an upgrade first if you are on an unsupported line.
Version durability docsConfigure the GitLab webhook in six steps
This sequence takes a Rocket.Chat workspace and a GitLab project or group from no connection to a verified test message in the intended room, with each step closed by a check you can repeat.
Confirm the public URL for Rocket.Chat
The GitLab integration needs GitLab to reach your Rocket.Chat workspace over a public URL, so the platform team confirms the address GitLab will call, the TLS certificate that serves it and that the address resolves from outside your network. If GitLab runs on a network that cannot reach Rocket.Chat directly, the team confirms the routing and firewall rules before going further. Done means that an external host can load the workspace login page over HTTPS at the exact address you plan to use in GitLab, and the team records that address for the later steps.
Enable the GitLab incoming webhook in Rocket.Chat
A Rocket.Chat administrator opens the integrations area, creates a new incoming webhook, selects the GitLab script and chooses the target room where notifications should appear. Confirm the exact menu names and script options in the Rocket.Chat GitLab documentation for your version, because labels change between releases. Choose a room that the intended audience can read, and decide whether the integration should post as a dedicated user or the default account. Done means the integration is saved, enabled and listed as active with the target room shown.
Copy the generated webhook URL and token
After saving, Rocket.Chat displays a webhook URL that includes a token. Copy it into your team's secrets store or a password manager, and do not paste it into tickets, chat messages or shared documents, since anyone holding it can post into the room. Note which room and integration owner the URL belongs to so you can rotate it later. Done means the full URL is stored in a controlled location and the integration still shows as enabled after you leave the page.
Add the webhook to the GitLab project or group
A GitLab maintainer or owner opens the project or group webhook settings, pastes the Rocket.Chat URL and selects the event triggers the team needs, such as push, merge request, pipeline, issue or wiki events. Choose a project-level webhook for a single repository, or a group-level webhook when several projects should share the same room. Confirm the trigger list against the Rocket.Chat GitLab documentation and decide how confidential issues should be handled before enabling issue events. Done means the webhook is saved with the chosen triggers and no other endpoint is attached by mistake.
Send a test event from GitLab
Use the test function in the GitLab webhook settings, or make a small, safe change such as a push to a test branch, to generate a real event. GitLab records the delivery attempt and its response code, so the owner can see whether Rocket.Chat accepted the request. If the delivery fails, check the public URL, TLS certificate and token before changing anything else. Done means GitLab shows a successful delivery for the test event and no error in the recent delivery log.
Confirm the message format and target room
Open the target room in Rocket.Chat and check that the test message arrived there, not in another room or a direct message. Review the formatting for the event type, and check that an event the script does not recognize appears as a generic message with raw data, so the team knows what unexpected payloads will look like. Record the outcome, including which triggers were tested and which remain untested, and hand the setup to the owners who will maintain the webhook. Done means the expected message appears in the correct room in a readable format for each tested trigger.
How a GitLab event reaches a Rocket.Chat room
The flow starts when a developer pushes code, opens a merge request or changes an issue in GitLab. GitLab sends the event as a webhook request across the public internet to the Rocket.Chat workspace, which must be reachable at a public URL. The incoming webhook script formats the payload and posts it to the target room. Two branches matter: confidential issues are dropped by default, and events the script does not recognize are posted as generic messages with raw data. Check the trust boundary at the public endpoint and decide which rooms receive which events before you enable the integration.
Event path from GitLab to a Rocket.Chat room, with the public trust boundary and two special branches.
Which GitLab events map to Rocket.Chat messages
This table maps each GitLab event type the Rocket.Chat script handles to what a room receives and the decision the team must make before enabling it. Read it as a routing plan: decide per event which room gets it, how noisy it will be, and whether it is needed at all. Confirm the exact fields in your version of the script before relying on them.
| GitLab event | What the room receives | Decision the team must make |
|---|---|---|
| Push | Commit activity for a branch, posted when code is pushed to a project | Which repositories post here, and whether busy shared branches go to a quiet room instead of the team channel |
| Tag push | A message when a tag is created, typically tied to a release | Whether release managers need a dedicated room or can share the repository channel |
| Merge request | Opened, updated, approved or merged events with links back to GitLab | Whether reviewers share one room per team or each project has its own channel to limit noise |
| Comment | Comments on commits, merge requests, issues or snippets | Whether comment traffic is worth the volume, since it often duplicates merge request events |
| Issue | Opened, updated or closed issue events, with confidential issues ignored by default | Which projects are public-facing enough to share, and whether confidential work needs an approved private route instead |
| Pipeline | Pipeline status changes such as running, passed or failed | Which room owns failures, and whether passing runs should be silenced to reduce noise |
| Job | Individual CI job status updates | Whether to subscribe at all, since job events are high volume; many teams rely on pipeline events instead |
| Wiki | Page creation or edit events from the project wiki | Whether documentation changes belong in a team room or a broader announcements room |
| Unknown event types | A generic message containing raw event data | Confirm the exact fields shown in your script version, and decide whether raw payloads should reach shared rooms at all |
Choosing which events each audience should see
This audience acts on push and merge request events, so it generates the highest message volume. Every push to an active branch produces a notification, and busy repositories can fill a room quickly. The goal is to surface the events that need a reviewer's attention without burying them in commit chatter.
- Push events: Consider limiting these to protected or default branches. Pushes to feature branches are often noise for anyone outside the author's team.
- Merge request events: Opened, updated and merged requests usually matter most to reviewers. Comments on merge requests can be high volume, so decide whether they belong in the same room.
- Room layout: A per-team or per-repository room suits this group, so reviewers see only the code they own.
- Confidential issues: This audience rarely needs issue events, so the default behavior of ignoring confidential issues mostly avoids the question here.
Before go-live, confirm with a test repository which events the script posts by default and how each one renders in the room.
Release and platform engineers care about whether builds succeed and whether deployments are moving. Pipeline and job events signal health, but job-level events can multiply quickly across many projects and runners, so the room needs a clear purpose.
- Pipeline events: Post pipeline outcomes for release branches and production pipelines. Failed pipelines on these branches are usually the most useful signal.
- Job events: Individual job events are the most granular and noisy. Many teams keep them out of shared rooms and rely on pipeline summaries instead.
- Room layout: A single operations or release room works well for a small number of pipelines. Larger platforms often split rooms by environment, such as staging and production.
- Confidential issues: Incident-related issues are sometimes confidential. Because they are ignored by default, responders should know that these issues will not appear in the room and must follow the incident process instead.
Ask the team which pipelines page someone at night and map only those to alerts, so the room does not become background noise.
Product managers, documentation writers and support leads track issues and wiki pages. Their events are less frequent than code events, so volume is usually manageable, but the content may be sensitive, which makes the confidential issue setting important.
- Issue events: Opened, updated and closed issues keep product planning visible. Filter by label or project if the GitLab instance hosts many unrelated backlogs.
- Wiki events: Wiki changes suit a documentation room, where editors can review what changed without opening GitLab.
- Room layout: A product or documentation room with restricted membership fits this group. Avoid posting into broad company rooms.
- Confidential issues: Confidential issues are ignored by default. If product teams expect to see them in chat, that expectation needs to be set explicitly, and the decision should be made with security and legal input rather than by changing the default casually.
- Unknown events: Unrecognized event types are posted as generic messages with raw data, which can expose more content than intended in a broad room.
Confirm with your security team who may read these rooms before enabling issue events in any shared channel.
Security controls for the webhook endpoint
The GitLab integration is only as safe as the webhook it creates. The controls below cover who holds the token, who can read the posts, what content reaches the room and what the public URL exposes. Each one should be decided before the first event is posted.
Webhook token ownership and rotation
The incoming webhook URL carries a token that lets any holder post into the target room. Store the full URL in GitLab as a secret project or group setting, not in a repository file, and limit who can view or edit the integration. Agree a rotation schedule with the team, and plan a rotation when someone with access leaves or the URL appears in a ticket, log or chat. Confirm in your environment how the token is regenerated and whether GitLab and Rocket.Chat both need updating at the same time.
GitLab integration docsRoom and member visibility
Every event posted through the webhook is visible to everyone who can read the target room, including people who joined later and, depending on room type, guests. Map each GitLab project to a room whose membership matches the access GitLab grants to that project. Keep security-sensitive repositories out of public channels, and review membership whenever a project's access model changes.
Confidential issues stay out by default
Confidential issues are ignored by the integration by default, which keeps internal security reports and unreleased vulnerability details out of channels. Do not change that default to make a room more complete without a decision from the security owner. Test with a confidential issue in a non-production room and confirm nothing is posted before you enable the integration for real projects.
Secrets in commits and job logs
Push, merge request, comment and pipeline payloads carry commit messages, branch names and job output that the script forwards as text. A token pasted into a commit message or echoed by a CI job will appear in the room and in every client's history. Enable secret detection in GitLab, mask CI variables, and avoid printing credentials in job scripts. Review a sample of posted payloads before you widen the rollout.
Exposure of the public URL
The integration requires the workspace to be reachable at a public URL so GitLab can deliver events. That endpoint accepts requests from the internet, so it needs TLS, the same hardening applied to the rest of the workspace, and monitoring for unusual request volume. Limit the webhook to the GitLab hosts you actually use, and treat a leaked URL as a reason to rotate immediately.
Alignment with workspace hardening
The webhook controls sit inside the wider Rocket.Chat hardening work, including rate limits, upload restrictions, password policy and patching against security advisories. Keep the webhook review in the same change process as those settings, so an edit to one area is checked against the others. Confirm current limits and settings against your Rocket.Chat version before you rely on them.
GitLab integration docsCommon failures and how to fix them
This table pairs each symptom you are likely to see with its probable cause, the check that confirms it and the fix. Work down the rows in order of what you observe, starting with whether any messages arrive at all. Most problems trace back to reachability of the public URL, a mismatch between the webhook settings and the GitLab trigger, or more than one integration posting the same events.
| Symptom | Likely cause | Check and fix |
|---|---|---|
| No messages arrive in the room | GitLab cannot reach the public URL of the Rocket.Chat workspace, so its webhook calls fail | Confirm the workspace is reachable from outside your network at the address GitLab calls. Check the webhook delivery log in the GitLab project settings for connection errors, then open the firewall, reverse proxy or DNS record that blocks the request. |
| No messages arrive, with TLS or certificate errors in GitLab | The certificate is self-signed, expired, issued by an internal CA or missing an intermediate certificate | Look for SSL verification errors in the GitLab webhook delivery details. Install a certificate from a chain GitLab trusts, include the full chain on the proxy, then send a test event again. Do not turn off verification as a permanent fix. |
| No messages arrive, with HTTP 401 or 403 responses | The token in the webhook URL does not match the integration in Rocket.Chat, or the integration was recreated and the old URL is still set in GitLab | Copy the current webhook URL from the Rocket.Chat integration and paste it into the GitLab webhook again. Send a test event from GitLab and confirm the response code changes to success. |
| Confidential issue events do not appear | The GitLab integration ignores confidential issues by default, which is expected behavior | Confirm this matches your policy before changing anything. If your team needs these events in a room, configure the script to include them deliberately, limit the room to members who may see the issue, and document the decision. |
| Unexpected raw-data messages appear | GitLab sent an event type the script does not format, so the integration posts it as a generic message with the raw payload | Identify the event name in the message and in GitLab's webhook log. If it is a new or rarely used event, decide whether it belongs in the room. Mute or remove it from the trigger list in GitLab, and review the payload for sensitive content before sharing it widely. |
| The same event posts twice | Two webhooks are set up for the same project or group, or the integration is configured at both levels | Open the project and group webhook lists in GitLab and the integrations in Rocket.Chat. Keep one webhook per event source, remove the duplicate, and send a test push to confirm a single message. |
| Messages go to the wrong room | The room or channel setting on the Rocket.Chat integration does not match the room where people are watching | Open the incoming integration in Rocket.Chat and compare its target channel with the room you expect. Update the setting, or create a separate integration for each room, then send a test event. |
| Messages stop after a Rocket.Chat or GitLab upgrade | The integration was tied to an older workspace address or script version, or the GitLab webhook settings changed during the upgrade | Recheck the public URL, the integration status and the GitLab webhook delivery log after each upgrade. Record the versions you run so you can compare behavior before and after a change. |
How to test the integration before the team relies on it
Test the incoming webhook end to end in a sandbox GitLab project before any production room depends on it. Create a dedicated test project, point the webhook at a throwaway Rocket.Chat room, and trigger one event of each type the integration will carry: a push, a tag push, a merge request, a comment, an issue, a pipeline, a job and a wiki edit. For each one, confirm that the message lands in the intended room, that the formatting is readable, and that the fields the team expects are present. Then trigger an event type the script does not format and confirm it appears as a generic message with raw data, so the team knows what that looks like before someone else sees it.
Test confidentiality on purpose. Create a confidential issue in the sandbox project and confirm that nothing about it appears in Rocket.Chat, since confidential issues are ignored by default. Check the same for any other content the team treats as sensitive, such as merge request descriptions or wiki pages that contain internal detail. If you change the default handling, repeat this check, because the failure mode is a silent leak rather than an error.
Test the credential and the network path. Rotate or revoke the webhook token in Rocket.Chat, then trigger an event and confirm that no message is posted. Restore the correct token and confirm delivery resumes. Then send a request to the workspace's public URL from a machine outside your network, because GitLab cannot reach the webhook if only internal clients can resolve it. Finally, keep a short record of the tested configuration: the workspace URL, the Rocket.Chat version, the GitLab version, the room, the token owner and the event list. Repeat the event test after any change to the workspace URL, the proxy or a Rocket.Chat upgrade, so a failure is caught by the test rather than by a missing alert.
Questions teams ask before setting up GitLab notifications
Can our team set up GitLab notifications in Rocket.Chat without outside help?
Yes, if someone on your team has Rocket.Chat administrator access, a GitLab project owner or maintainer role for each project, and the ability to change network settings where needed. The core setup is a Rocket.Chat incoming webhook, a script that formats GitLab payloads, and a webhook entry in each GitLab project. The harder part is usually the surrounding work: confirming that the workspace is reachable at a public URL, agreeing on which rooms receive which events, and testing each event type. Teams that already run Rocket.Chat and GitLab with a clear owner for each usually finish this in-house. Teams without those owners often ask a partner to plan and verify it. Read the Rocket.Chat GitLab documentation before deciding.
How much effort does a GitLab notification setup take, and what drives it up?
No effort figure is published for this integration, so confirm the estimate against your own environment. Effort rises with the number of GitLab projects and groups, the number of event types you want (push, tag push, merge request, comment, issue, pipeline, job and wiki), the number of Rocket.Chat rooms and routing rules, and whether GitLab is self-hosted behind a firewall. Each additional project needs its own webhook configuration and a test. Event volume matters too, because noisy pipeline or comment events can make rooms unusable and need filtering decisions. Ask any partner for a fixed scope that lists projects, event types, rooms and the test plan.
Does the integration require Rocket.Chat to be reachable from the internet?
Yes. Rocket.Chat's GitLab integration requires the workspace to be reachable at a public URL, so GitLab can send events to it. If your Rocket.Chat instance sits on a private network only, you need a path that lets GitLab reach it, such as a published endpoint with TLS and access controls, or a reverse proxy in a DMZ. Self-hosted GitLab adds a second question: GitLab must be allowed to call the outbound address, which depends on your network and GitLab's outbound request settings. Ask your network owner which path is approved and how it will be monitored before you start.
Can GitLab confidential issues be posted to Rocket.Chat rooms?
By default, confidential issues are ignored by the GitLab integration, so they do not post to Rocket.Chat. Keep that default unless your policy explicitly allows confidential issue titles and details in a chat room with a defined membership. Changing this behavior affects who can see sensitive security or legal details, so involve the security owner and the room administrators in that decision. Check the room member list, retention settings and whether guests or external users are present. Test with a dummy confidential issue before relying on the behavior.
What do we need from our network, GitLab and Rocket.Chat owners?
You need three owners to agree on the work before it starts:
- Rocket.Chat administrators, who create the incoming webhook, choose the target rooms and the posting identity, and manage the script.
- GitLab project owners or maintainers, who add the webhook to each project and test events.
- Network and security owners, who confirm the public URL path, TLS, firewall rules and logging for inbound calls from GitLab.
Also confirm who approves changes to the script and who receives alerts when posts stop arriving. Without named owners, the webhook tends to fail silently after a change elsewhere.
Will an upgrade of Rocket.Chat or GitLab break the notifications?
It can, so test every upgrade. Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months, and an end-of-life version gets no security or bug fixes. GitLab ships a minor release each month, and it requires upgrades to pass through required upgrade stops, which since GitLab 17.5 fall at versions x.2, x.5, x.8 and x.11. Each upgrade can change payload formats, webhook behavior or the way the script is loaded, so plan a test event on a staging room after each one. Keep the script in version control and record which Rocket.Chat and GitLab versions it was tested against.
Will the integration handle events it does not recognize?
Yes, but the output may not be readable. Unknown event types are posted as generic messages with the raw data, which can include fields you did not intend to share in a room. Review which event types you enable, and use the room for only the events its members need. If a new GitLab feature sends an event you do not want in chat, disable that event type in the webhook configuration and check the room after your next GitLab upgrade.
How DeployOpen scopes and delivers GitLab notifications for Rocket.Chat
DeployOpen treats GitLab-to-Rocket.Chat notifications as a small, scoped integration: which GitLab events reach which rooms, how the webhook is exposed, and how confidential issues are handled are agreed in writing before any configuration starts. The work is delivered inside your own Rocket.Chat and GitLab environments, with documentation your team can operate afterward.
How we scope
- Inventory which GitLab projects, groups and event types should post, and which Rocket.Chat rooms should receive them.
- Confirm whether your Rocket.Chat workspace is reachable at a public URL and document the exposure decision with your security team.
- Agree in writing how confidential issues, unknown event types and wiki events will be treated before work starts.
How we build
- Create the incoming webhook integration, bind it to the target rooms and configure the GitLab script for the agreed event set.
- Configure GitLab project or group webhooks with the correct endpoint and secret, and test each in-scope event type end to end.
- Verify that confidential issue events are ignored by default and that any change to that behavior is tested in a non-production room first.
How we hand over
- Deliver a written configuration record covering integration settings, room mappings, event filters, exposed endpoints and owners.
- Document the rollback steps, how to add a new GitLab project and how to review which events are posted to which room.
- Walk through the runbook with the administrators who will maintain the integration after handover.
How we support
- Provide ongoing support, upgrade testing and periodic review of the webhook as Rocket.Chat and GitLab versions change, available as a retainer.
- Re-test the integration after Rocket.Chat or GitLab upgrades, since upgrade stops and version support windows can change event payloads and access.
- Ask us to repeat the exposure and access review when your public URL, reverse proxy or access controls change.

