Business Tech

GitLab Premium makes code-owner review a condition of merging

A team can agree that a platform engineer should review changes to deployment files, then miss that step when the usual reviewer is away. GitLab Premium lets a project turn that agreement into a merge rule. Name the people who own the relevant files, require their approval on the protected branch and let GitLab hold the change until the required review is complete. GitLab Code Owners documentation

Where Premium adds control over a merge request

GitLab Free supports merge requests, optional approvals and built-in continuous integration and delivery. On Premium, a project can require a specified number or type of approvers. Use a CODEOWNERS file to assign ownership by file or directory. To make approval from those owners a requirement, protect the target branch and enable Code Owner approval for it. GitLab merge request approvals and GitLab Code Owners documentation

For example, assign the team that maintains deployment configuration as the Code Owners for that directory. In a pilot project, open a merge request that changes a file in it and check who can approve or merge the change. Check which users or automation accounts have direct push access to the protected branch, since a direct push skips the merge request and its approval flow. If you also enable “Pipelines must succeed”, check that a pipeline actually runs for each merge request. The pipeline check and the human approval serve different purposes. GitLab’s protected-branch example and GitLab pipeline merge checks

GitLab.com and Self-Managed have different costs to account for

GitLab.com Premium includes 10,000 compute minutes per top-level group per month and 500 GiB per project for the Git repository and Git Large File Storage. Runners execute CI/CD jobs. The compute quota applies to GitLab-hosted instance runners. GitLab says group and project runners are outside that quota, so a team using its own runners should budget for the machines and their upkeep. On GitLab Self-Managed, the organisation supplies its own infrastructure and configures runners and storage. GitLab plan comparison, compute-minute scope and repository and LFS storage limits

When to evaluate Ultimate

Premium covers the required reviewer and Code Owner workflow above. If your security team needs to require an approval based on the results of a security scan, or enforce CI/CD jobs across multiple projects through a centrally managed pipeline execution policy, GitLab documents those controls under Ultimate. Choose a representative project and check how each required policy would be applied before committing to a tier. GitLab merge request approval policies and pipeline execution policies