GitLab
Connect GitLab projects to see access impact in merge requests and pipelines, and to review remediation as merge requests.
The GitLab connection does for merge requests what the GitHub connection does for pull requests. AccessRoot analyzes infrastructure changes in the projects you choose, reports the access impact in the review, and, if you enable it, prepares remediation as a merge request. Your team still decides what is approved and merged.
The GitLab integration is documented here at the level of the principles it shares with the other connections. Product screens and permission details for GitLab are shown during connection setup in your workspace.
What the connection does
- Access analysis in merge requests. When a merge request changes Terraform or OpenTofu infrastructure, AccessRoot evaluates the proposed plan against the current access model and reports which identities gain, lose or change access.
- Pipeline checks. The result is published as a check in the pipeline and the review, so it appears where your team already looks.
- Access findings. Each finding names the identity, resource and permission involved and links back to the configuration that introduced it.
- Reviewable remediation. When remediation merge request creation is enabled, AccessRoot prepares a targeted change as a merge request for your team.
The analysis itself is the same as on GitHub. See Access Diff for what a finding contains.
Connect GitLab
- Open Settings › Connections and choose GitLab under Source control.
- Authorize the connection and select the projects AccessRoot may read. Choose only the ones that hold infrastructure code.
- Confirm the connection in Settings › Connections. It is listed with the projects you selected, in the same way the GitHub connection lists its repositories.
As with every integration, the connection is scoped to what you authorize, requests only the permissions its purpose needs, and records its changes in Settings › Audit log.
Permissions
The permissions follow the same separation as GitHub:
- Reading changes and plans, and publishing access results, are used for analysis.
- Creating remediation merge requests is a separate, additional permission that is only used when you enable it.
- None of the permissions lets AccessRoot change cloud IAM, merge a merge request or bypass your approval rules.
Your project settings, such as required approvals and whether a pipeline must succeed before merging, decide whether an access finding blocks a merge request. AccessRoot does not override them.
Revoke a connection
Administrators can change the projects in scope or revoke the connection at any time. Revoking stops new collection through that connection. In the sample audit log, the event reads “Connection revoked” for GitLab · legacy-infra, with the note “collection stopped”. Metadata that was already collected stays subject to your workspace retention and deletion settings. See Workspace and audit.
Related
- Terraform and OpenTofu explains how plans are evaluated.
- Remediation explains how fixes are prepared and verified.
- Permissions and data lists what every connection can and cannot do.