GitLab security hardening

A self-managed GitLab instance is only as secure as its sign-up, identity, runner, token and patch settings. This page shows what to configure, in what order, how to verify it and what to hand over.

On this page

Why GitLab security hardening is a project, not a settings checklist

A self-managed GitLab instance holds your source code, CI/CD variables, deploy keys and the tokens that reach production, so its default and administrative choices define your attack surface. Hardening is therefore a program that spans several layers at once: application settings such as sign-up restrictions and two-factor enforcement, the gitlab.rb configuration file, the operating system under it, the runners that execute jobs, the identity provider behind sign-in, and the patch cadence that keeps all of them current. GitLab describes its hardening guidance as a work in progress that should be rolled out gradually, which is a signal to plan the work in stages rather than treat it as a one-time pass through a list.

The difficulty is that these layers interact. A tighter token policy can break a deployment job that relies on a long-lived credential. Restricting runner scope or protecting variables can stop a pipeline that only runs on protected branches from finding its secrets. An OS-level change, such as a firewall rule or a file permission on the configuration directory, can stop backups or object storage access without any visible error in the GitLab interface. Each change needs a test against real pipelines and integrations, a rollback path and an owner who knows which teams will notice if it fails. Confirm with your own team which pipelines, webhooks and service accounts depend on the settings you plan to tighten before you change them.

The third difficulty is evidence. Auditors and your own risk committee will ask what the configuration was on a given date, who changed it, and whether the change went through review. That means keeping configuration under version control, reviewing audit events on a schedule, recording each patch you apply against the release cadence, and retesting after every upgrade, since upgrades can reset or deprecate settings. Ask any partner you consider how they will baseline your instance, track drift and hand over the documentation, and whether the scope of that work is written out before it starts.

Which GitLab components and settings carry the security surface

A self-managed GitLab instance exposes risk in several places at once: how users sign in, how the server and operating system are configured, how CI/CD jobs run, and how long-lived credentials are issued. Review these six areas together, because a strong sign-in policy does little if a runner shares a host with sensitive jobs or a broad access token outlives the person who created it.

Application sign-up, sign-in and 2FA

These settings decide who can create an account, how sessions expire, whether two-factor authentication is required, and who can see projects and groups. Check sign-up restrictions, the required two-factor policy, session lifetimes and the default visibility level for new projects and groups. Confirm these in the Admin Area, because a permissive default set at install time often remains unchanged for years.

Hardening guide

gitlab.rb and gitlab-ctl configuration

The /etc/gitlab/gitlab.rb file controls the Linux package, including external URL, TLS, database and object storage settings, and the secrets file that must be backed up separately. Review which services listen on which interfaces, how logs are retained, and who can read the file. Keep the configuration under version control so changes are reviewed and traceable.

Operating system and network exposure

The host operating system, firewall rules and reverse proxy define what an attacker can reach before GitLab authentication applies. Limit inbound ports to HTTPS, SSH for Git and any required administrative access, and restrict database and Redis ports to the GitLab components that need them. Patch the operating system on a schedule that matches your GitLab patch cadence.

GitLab Runner executors and tags

Runners execute CI/CD jobs, so a compromised job can reach any secret or host the runner can access. Choose the executor type deliberately, isolate runners for sensitive projects, and use tags to keep protected jobs on dedicated runners. Protected variables are only exposed to jobs running on protected branches or tags, so confirm that release pipelines follow that rule.

Runner docs

Personal, project and group access tokens

Tokens grant API and repository access without a password, and they often outlive the people or automation that created them. Inventory which token types exist, set expiration dates, and review tokens owned by bot accounts and departed users. Ask who can create project and group tokens, and whether your organization requires expiry on every token.

Audit events and Ultimate features

Audit events record administrative and permission changes, which lets you trace who changed a setting or granted access and when. Confirm that events are retained long enough for your review cycle and forwarded to your logging system. Application security testing, vulnerability management and compliance features are listed on the Ultimate tier, so check the pricing page before assuming they are available on your edition.

Pricing page

Which hardening choices to make before changing settings

This table compares the main hardening decisions for a self-managed GitLab instance, with the situations where each option fits and the operational cost it carries. Read each row before changing settings, because several choices affect developer workflow and CI behavior, not only security posture. The main takeaway is that stricter options usually shift cost to admin time and pipeline breakage, so decide them with the teams who will live with them.

DecisionOptionWhen it fitsOperational cost
Sign-upOpen sign-upPublic-facing or community instances with low sensitivityAccounts multiply quickly and need periodic review and cleanup by admins
Sign-upInvite-only or admin-created accountsRegulated or internal instances where every user must be vettedAdmin time for onboarding requests and a slower path for contractors
Sign-inLocal accounts with 2FASmall teams without an identity provider or during early setupUsers manage their own recovery codes, and offboarding depends on admins remembering to disable accounts
Sign-inFederated sign-in with 2FA enforced at the identity providerOrganizations that already run central identity and need joiner-mover-leaver controlIntegration work and group mapping, plus lockout risk if the identity provider fails and no break-glass path exists
CI runners for untrusted codeShell executor on shared hostsRarely appropriate when merge requests from outside contributors can run jobsJobs can reach host files and credentials, so a malicious pipeline can affect other projects
CI runners for untrusted codeDocker or autoscaling executors in isolated capacityProjects that run code from forks, external contributors or mixed trust levelsMore infrastructure to build and patch, plus slower job starts when autoscaled capacity is cold
Runner scopeShared instance runnersLow-risk internal projects with uniform build needsOne compromised or misconfigured project can affect jobs from many teams
Runner scopeProject or group-scoped runnersSensitive projects that need their own secrets, network paths and imagesDuplicate runner fleets to manage and more registration tokens to control
TokensLong-lived personal or project access tokensLegacy automation that predates shorter-lived optionsRotation is manual, and a leaked token stays valid until someone notices and revokes it
TokensShorter-lived tokens with scheduled rotationAutomation and service accounts that the team can rotate on a routinePipeline breakage on rotation days if secrets are not updated in every consumer
Audit and compliance featuresFree tierTeams that need core source control and CI without advanced audit or compliance reportingEvidence collection for assessments is manual, including exporting logs and documenting settings
Audit and compliance featuresPremium or UltimateOrganizations that need advanced CI/CD, priority support or security and compliance reportingPer-user licensing, and Ultimate is custom priced, so confirm which features each tier includes in writing

How to harden a GitLab instance in order

This sequence takes a self-managed GitLab instance from an unknown starting state to one with restricted access, enforced 2FA, bounded tokens, a hardened configuration and host, isolated runners, a patch cadence and reviewed audit events. Each step closes with a check you can repeat later.

  1. Baseline the instance and back up secrets

    Record the current GitLab version, edition, sign-up settings, admin accounts, runner list and installed configuration before changing anything. Back up the application data with the gitlab-backup tool and separately save the secrets file and the gitlab.rb configuration, since a data backup alone cannot restore encrypted values. The step is done when you can restore the secrets and configuration to a test host and the instance starts with the same encryption keys, and the baseline is written down so later changes can be compared against it.

  2. Restrict sign-up and enforce two-factor authentication

    In the Admin area, turn off open sign-up unless your business needs it, and set the approval or domain restrictions that fit your identity model. Enable two-factor authentication for all users, then decide whether to make it mandatory and with what grace period. Confirm the result with a test account that has no 2FA enrolled: a login attempt should be refused or redirected to enrollment, and an unauthenticated sign-up attempt should be blocked by your rules. Your identity provider settings are covered in the SSO topic, so align the two before you enforce.

  3. Set token expiry and session policy

    Review personal, project and group access tokens, and set expiry dates and session lifetimes in the Admin area. Remove tokens belonging to departed users and tokens with broader scopes than their job needs. Set an inactivity timeout that suits your risk profile. Confirm the policy by creating a test token and checking that it carries an expiry date, and by verifying that an idle browser session ends after the configured time.

  4. Harden gitlab.rb and the host operating system

    Apply the settings from GitLab's hardening guidance to gitlab.rb, such as the external URL served over HTTPS, cookie and header settings, and any options that limit outbound connections or exposed services, changing one group at a time. Then apply OS-level controls to the host: restrict SSH access, keep the operating system patched, limit listening ports and align file permissions with the GitLab documentation. Your security team may map these controls to the NIST SP 800-53 families they already track. The step is done when gitlab-ctl reconfigure completes cleanly and an external port scan shows only the services you intended to expose.

  5. Isolate runners and protect CI variables

    Place runners on hosts separate from the GitLab application servers, and prefer ephemeral executors where the platform supports them. Mark sensitive CI/CD variables as protected and masked, and restrict them to protected branches and tags. Limit which projects can use shared runners, and avoid the shell executor for untrusted code. Confirm the control with a test: a job running on an unprotected branch should be unable to read a protected variable, and its output should not reveal masked values.

  6. Set the patch cadence against the maintenance policy

    Read GitLab's maintenance policy and decide how quickly you will apply monthly minor releases and twice-monthly patch releases, based on your own risk tolerance and change process. Plan each upgrade against the required upgrade stops at x.2, x.5, x.8 and x.11, since GitLab does not let you skip them. Keep the Runner version aligned with GitLab, and test each upgrade on a staging copy restored from your latest backup. The step is done when you have a written cadence, a staging environment that matches production, and a rollback plan tied to a verified backup.

  7. Enable and review audit events

    Turn on audit event logging for administrative and group-level actions, and confirm which events your version records. Forward logs to a central store that your security team can query, and define who reviews them and how often. Test the setup by making a harmless admin change, such as a settings update on a test group, and confirming that the event appears in the log with the user and time. Repeat the review after each upgrade, since event coverage can change between releases.

How hardening differs for single node, high availability and air-gapped installs

A single-node Linux package install keeps GitLab, PostgreSQL, Redis and Sidekiq on one host, so the operating system and the application share one trust boundary. Hardening focuses on the host itself: a minimal OS image, restricted SSH access, a host firewall that exposes only HTTPS and SSH from approved networks, and file permissions on the configuration directory. The main risk is that one compromise reaches everything, including the database and the secrets file.

  • OS baseline: Apply a documented benchmark profile to the host and record deviations, rather than relying on a default image.
  • Secret storage: Keep /etc/gitlab/gitlab-secrets.json and /etc/gitlab/gitlab.rb readable only by root, and copy them to a separate encrypted location, because the instance is the only copy.
  • Runner placement: Run runners on separate hosts, not on the GitLab node, so job code never shares a host with the database.
  • Patch delivery: Apply patch releases on a fixed window, with a snapshot taken before each upgrade stop.
  • Audit events: Forward logs off the host, since a single node is the first place an attacker would erase them.

Before sign-off, confirm the secrets backup restores on a separate host and that the host firewall rules match the documented ports.

Access control and secrets handling for a hardened GitLab

Access control and secrets handling are where most self-managed GitLab exposure starts, because a single over-privileged account or a leaked token can reach every project and pipeline. The cards below cover the decisions that connect identity, runner placement, secret storage, network reach and token lifetimes, and what to confirm in each area against the hardening documentation before you sign off.

Protect root and limit admin access

The root account and any instance administrators control every project, user and setting on the instance, so they are the first accounts an attacker targets. Keep the number of administrators small, give most staff ordinary accounts, and make sure the root password is stored offline with a named owner. Confirm in the hardening guide which sign-up and admin-area settings you should restrict, and review the admin list on a fixed schedule.

Hardening guide

Protected branches and variables

Protected variables expose their values only to jobs running on protected refs, so a feature branch pushed by a contributor cannot read production deployment credentials. Pair them with protected branches so only maintainers can push or merge to the refs that deploy. Test the rule with a throwaway branch and confirm that an unprotected job cannot print the variable.

Isolate runners by trust level

Jobs from untrusted merge requests should not run on the same hosts, Docker daemons or caches as deployment runners. Separate runner pools by trust level, use ephemeral or autoscaled executors where your platform allows them, and avoid sharing the build cache between pools. Confirm the runner settings against the Runner documentation and keep Runner versions aligned with the instance.

Runner docs

Store gitlab-secrets.json and database credentials

The gitlab-secrets.json file and the gitlab.rb configuration hold keys that encrypt data inside the database, so losing them can make restored backups unreadable. Store these files with restricted permissions, keep an encrypted copy outside the instance, and limit who can read the database credentials used by the Linux package. Confirm which secrets must travel with each backup in the backup and restore documentation.

Backup and restore docs

Limit network exposure of the instance

Decide which networks can reach the web interface, the SSH endpoint, the registry and the runners' API connection. Place the instance behind a reverse proxy or load balancer under your control, restrict administrative paths to internal networks, and keep runners on private segments where they can reach the instance but not the open internet. Verify the exposure with an external scan and an internal one after each change.

Scope and expire access tokens

Personal, project and group access tokens, along with runner registration tokens, all grant access that outlives the person or pipeline that created them. Ask for a policy that sets narrow scopes, short expiry dates and a named owner for each token, and that revokes tokens when someone leaves. Confirm which token types your version enforces expiry on and review active tokens regularly.

What drives the hardening effort and how to keep it down

This table lists the factors that most change how much work a GitLab hardening project takes, with a way to reduce each one. Read each row as a decision point: the more of these factors your instance has, the more it helps to standardize and test changes before they reach production.

DriverWhy it changes effortHow to keep it down
Number of users and groups affected by sign-up and 2FA changesRestricting sign-up, enforcing two-factor authentication and changing sign-in methods affect every account, and locked-out users generate support load.Confirm the identity source first, announce enforcement dates to groups, and use a staged rollout by group rather than one switch for all users.
Number of projects and runners with shared configurationEach project inherits or overrides protected branch, variable and runner settings, so drift multiplies the review work.Standardize runner templates and group-level settings, and document the few exceptions that are allowed.
Existing integrations and bots that use tokensPersonal, project and group access tokens used by pipelines, bots and chat tools must be inventoried before expiry or scope changes break them.Export a token inventory, assign owners, move automation to project or group tokens with the narrowest scope, and set rotation dates before enforcing token policies.
Compliance scope, such as NIST SP 800-53 mappingEach control you claim needs a configuration decision, an owner and evidence. A larger control set means more mapping and more evidence to collect.Limit the initial scope to the controls your assessor or policy requires, map settings to them once, and reuse the same evidence across reviews.
Air-gapped or multi-node topologyOffline installs need packages and patches transferred by hand, and each node in a multi-node setup needs the same OS and GitLab settings applied and verified.Keep one configuration source of truth for gitlab.rb and OS settings, and script the apply and check steps so every node receives the same result.
Number of environments to test inEach change must be tested on a non-production instance that matches production versions and settings, and a missing test instance adds risk and rework.Maintain a test instance on the same GitLab version as production, promote changes in order, and keep a short list of checks to rerun after each change.

How NIST SP 800-53 oriented configuration maps to GitLab settings

Which GitLab settings serve as evidence for access control?

The main evidence for access control is the set of instance-level sign-up, visibility and permission settings, plus the records showing who holds administrator and group roles. Start by recording whether self-service sign-up is disabled, whether new projects default to private visibility, and whether group owners are limited to named people. Export the user list, group membership and project member roles on a set schedule so you can show who had access at a given date. Where you use an external identity provider, keep the configuration that maps groups to roles, since that mapping is the access decision. DeployOpen prepares these settings and exports as evidence. Independent assessors decide whether the access control design meets your requirements.

How do identification and authentication controls show up in GitLab?

Identification and authentication evidence comes from the sign-in configuration: two-factor enforcement for all users, password and session policy, and the identity provider settings that handle single sign-on. Record which authentication methods are enabled, such as LDAP, SAML, OAuth 2.0 or smart card, and keep the configuration files that show them. Save the two-factor enforcement setting and a report of users without two-factor enabled, taken at regular intervals. For service access, record how personal access tokens, deploy tokens and group tokens are created, scoped and expired. Ask your identity team to confirm which provider is the system of record for each user. DeployOpen can prepare this evidence, but the assessor determines whether the controls are adequate.

What does configuration management evidence look like for a self-managed GitLab?

Configuration management evidence is a versioned record of how the instance is set up and how changes are approved. Keep gitlab.rb and related configuration under version control, with a review step before each change. Record the operating system hardening baseline you applied and the date it was last checked. Keep the GitLab version and the Runner versions in an inventory, and note that the Runner guidance is to keep major and minor versions aligned with GitLab. Track application settings changes through the audit log so that each change has a timestamp and an actor. Store the secrets and configuration files separately from routine backups, with restricted access. Confirm with your change management owner how approvals are recorded.

Which audit and accountability records does GitLab provide?

GitLab produces audit events for changes to groups, projects, users and instance settings, and you should confirm the exact event coverage for your version in the product documentation. Route these events to a central log store so they survive instance problems and cannot be edited by instance administrators alone. Define retention in line with your policy, and test that you can search events by user, date and object. Also keep the logs produced by the Linux package services and the operating system, because some questions about administrative actions can only be answered from host logs. DeployOpen can set up the log routing, retention and review routine, and prepare sample records for the assessor. Retention periods and alert rules are decisions for your own policy owners.

How does system and communications protection map to GitLab settings?

This family covers encryption in transit, network boundaries and how the instance talks to runners, storage and other services. Evidence includes the TLS configuration in gitlab.rb, the certificates in use and their renewal records, and the firewall rules that limit which hosts can reach PostgreSQL, Redis, Gitaly and the runner network. Record how outbound connections are limited, especially for runners and webhooks. In an offline or air-gapped deployment, document the transfer path for packages and images, since GitLab documents separate guidance for running its security scanners in offline environments. Keep the diagram of network zones current, because assessors often start there. Confirm each setting against the version you run, since defaults change between releases.

How do flaw remediation records work in a GitLab hardening program?

Flaw remediation evidence is a record of how quickly you apply patches and how you track vulnerabilities to closure. GitLab ships a minor release on the third Thursday of each month and patch releases twice a month. Its maintenance policy says security fixes are backported to the previous two monthly releases as well as the current stable release, while bug fixes go only to the current stable release. Keep a dated log of each upgrade, the version applied, and any required upgrade stop you passed through, such as x.2, x.5, x.8 and x.11 releases. Track vulnerability findings from scanning in the vulnerability management features, which are part of the Ultimate tier, or in your own ticketing system if you use another tier. Your remediation timelines are a policy decision you must set and confirm.

How to test that the hardening holds and fails safely

Every hardening change needs a test that proves it works and a rollback that proves it can be undone. Run these checks after each change, not once at handover, and record the result next to the change so the evidence survives staff turnover. Start with sign-up: attempt to create an account with sign-up restricted and confirm it is refused, then attempt it with an email domain outside your allow list. Next, log in with a test account that has no two-factor method enrolled and confirm the instance blocks access if you have enforced 2FA. Keep the test accounts in a separate group so the checks do not disturb real users.

For tokens, create a personal access token with an expiry date already in the past, and one scoped to more than the job needs, then confirm the API rejects the first and that the second cannot perform actions outside its scope. For CI/CD, push a branch that is not protected and run a job that reads a protected variable. The job should receive no value. Then confirm that runners tagged for untrusted workloads cannot open network connections to deployment hosts, using a test job that attempts the connection and records the failure. Run this check from the network side as well, since a job-level test alone does not prove the firewall rules hold.

After admin actions such as changing a sign-up setting, adding a user to a group or altering a runner, confirm the entries appear in the audit events. Then test failure handling. Apply a deliberately invalid change to gitlab.rb in a non-production instance, run gitlab-ctl reconfigure, and restore the previous file from your saved configuration backup. Confirm the instance returns to a healthy state. Confirm the backup of /etc/gitlab (including gitlab-secrets.json) is current before you start.

Re-run the full set after each patch release, because security fixes can change defaults or behavior. Check the GitLab maintenance policy for the current patch cadence, and confirm with your own change calendar how much time you need for a retest window. Ask your team or partner to record which checks passed, which were skipped and why.

What to monitor, back up, patch and document after hardening

This table lists the recurring tasks that keep a hardened GitLab instance hardened, with a suggested owner and review frequency for each. Treat the owners and cadences as starting points to adapt to your own change process and risk appetite. The main takeaway is that hardening decays without a named owner and a dated review.

Ongoing itemSuggested ownerSuggested frequency and what to check
Review audit events and admin activitySecurity operations with GitLab administratorsReview on a set schedule. Check admin role changes, sign-in policy edits, group visibility changes and project membership grants.
Monitor failed logins and token creationSecurity operationsReview regularly and alert where your logging stack allows. Look for bursts of failed sign-ins, new personal access tokens and tokens created by service accounts.
Back up configuration and secrets separately from dataPlatform engineeringConfirm the schedule and test restores periodically. Store the secrets and configuration files apart from the gitlab-backup archives, as the backup documentation describes.
Track GitLab releases against the maintenance policyPlatform engineering with the change boardCheck monthly minor releases and twice-monthly patch releases. Confirm which versions receive security backports, since these cover the previous two monthly releases.
Plan required upgrade stopsPlatform engineeringReview the upgrade path before each planned upgrade. Confirm the next required stop (for example x.2, x.5, x.8 or x.11) and test the path in a non-production copy.
Keep Runner versions aligned with GitLabPlatform engineering or the team running CIAlign Runner major and minor versions with the GitLab instance at each upgrade. Confirm runner images and host operating system patches on the same cycle.
Maintain a change log mapping settings to controlsCompliance lead with the GitLab administratorRecord each hardening setting, its reason, the control it supports and the date changed. Re-check the log after each upgrade, since defaults and settings can change.

Questions teams ask before hardening GitLab themselves or hiring help

How much effort does a GitLab hardening project take?

The effort depends on how much of the instance is in scope, and no duration can be given until the scope is written down. The main drivers are the number of users and groups, how many CI/CD runners and executor types you run, how many identity sources and admin paths need review, and whether the instance is a single node or a multi-node setup. Hardening covers several layers: application settings such as sign-up restrictions and two-factor authentication, configuration in gitlab.rb, the host operating system, runner isolation, token policies, audit events and patch cadence. Each layer adds review, change and verification work. Ask any partner to break the quote down by layer, and ask which items are one-time changes and which need ongoing review.

Can our team harden GitLab without a partner?

Yes, many teams do this in-house, provided they have someone who owns the Linux host, someone who owns GitLab administration and someone who can review the results against their own policy. The GitLab hardening documentation at GitLab hardening recommendations is the natural starting point, and it notes that the guidance is a work in progress to be rolled out gradually. A partner adds the most value where the team lacks time, has no independent tester for runner isolation or token exposure, or needs evidence in a form an assessor will accept. DeployOpen plans, implements and documents this work inside your infrastructure, and prepares the evidence for your compliance assessment, but it does not issue audit reports.

What do our admins and security team need to provide?

Hardening needs access and decisions from both groups. Admins need root or equivalent access to the GitLab host, the ability to change gitlab.rb and restart services in a maintenance window, and a current backup before any change. The security team needs to set the policy that the configuration should enforce, such as who may create accounts, which authentication methods are allowed, how long tokens live and which runner tags may run protected jobs. Both groups should name an owner for the decision log, since many settings interact. Ask the partner to list these inputs in the written scope so that no step waits on an unnamed person.

How long does a GitLab hardening project take?

The duration depends on scope and cannot be stated without a written scope. Teams usually ask this question once they know the instance size, the number of runners and the identity setup, because those determine how much review and testing is needed. Ask for a timeline that separates assessment, changes, verification and handover, and check whether it includes time for a change window and for rolling settings out gradually. Also ask what happens if an upgrade or a patch release lands during the project, since the GitLab maintenance policy sets a regular release rhythm that your change plan has to follow.

Will hardening break our CI/CD pipelines?

It can, if changes are made without checking jobs first. Settings that affect protected variables, runner tags, job token scope, container image sources or default pipeline permissions can cause jobs to fail or to lose access to a secret. The safe approach is to apply changes to a staging instance, run representative pipelines for each runner type and project group, and keep a rollback path for each gitlab.rb change. Ask whether the plan includes a list of pipelines that depend on each restricted setting, and whether runner configuration is covered, because runner isolation is one of the areas most likely to change job behavior.

What do Free, Premium and Ultimate change for audit and security features?

According to the GitLab pricing page, GitLab Free costs 0 dollars, Premium costs 29 US dollars per user per month billed annually, and Ultimate is custom priced. All three tiers are available for self-managed installations. The pricing page lists advanced CI/CD and priority support for Premium, and application security testing, software supply chain security, vulnerability management and compliance features for Ultimate. Some hardening controls, such as the core configuration settings and audit events, depend on what your installed tier exposes, so confirm which audit and security features your chosen tier includes before you finalize the control list. Ask the vendor or partner to map each required control to a tier in writing.

Does DeployOpen issue a certification for our GitLab instance?

No. DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, so your assessor or certification body can review them. For a GitLab instance, that can include configuration records, the hardening decision log, access and audit event settings, and the results of security testing and retesting. Independent auditors and certification bodies make the assessment decision. Ask your auditor in advance which evidence format they expect, so the hardening work is documented in a way they can check.

How DeployOpen scopes, hardens and hands over a GitLab instance

This sequence takes a self-managed GitLab instance from an agreed written scope to a hardened configuration that your team can operate, verify and keep current. Each stage ends with a named output so you can confirm progress before the next one starts.

  1. Agree a written fixed scope

    Before any change is made, DeployOpen and your team agree the scope in writing: which GitLab instance and hosts are in scope, the installation method in use, which tier is running, the identity provider, the runners and the controls your auditors or security team need to see. DeployOpen then quotes from that written scope, because it publishes no price list. The step is done when both sides have signed off the scope document and the list of out-of-scope items, including any retainers for patching or continuous testing.

  2. Review the baseline configuration

    DeployOpen reviews the running instance without changing it. The review covers application settings such as sign-up restrictions and two-factor requirements, the gitlab.rb configuration file, operating system settings on each node, runner registration and executor types, protected variables, token lifetimes and the current audit event configuration. It also checks the installed version against the maintenance policy and the upgrade stops, so patch timing is known from the start. The output is a baseline report that lists each setting, its current value, the recommended value and the reason for the gap.

  3. Agree the change plan with owners

    Each finding from the baseline becomes a change item with an owner, a risk rating and a rollback note. Items that could break pipelines, such as tightening runner tags or restricting token scopes, are grouped and scheduled so developers are warned in advance. GitLab's hardening guidance is described as a work in progress meant to be rolled out gradually, so DeployOpen sequences changes in stages rather than applying every recommendation at once. The step is done when your change owners have approved the plan and the rollback notes.

  4. Apply changes inside your infrastructure

    DeployOpen applies the approved changes inside your own cloud accounts, data centers or isolated network, using your change process and access controls. Work covers gitlab.rb edits with reconfigure runs, operating system hardening, runner isolation, token policy changes, and identity and two-factor settings. A backup is taken before each change set, and each change is recorded with the time, the operator and the setting touched. The step is done when the change log matches the approved plan and the instance passes its post-change health checks.

  5. Test the hardened instance

    DeployOpen runs security testing against the changed instance, covering the web interface and API, the sign-in and token paths, runner exposure to job code, and access to projects, groups and secrets. Findings are rated, fixed where they fall in scope, and retested. Your team should confirm that testing is allowed under your own policies and that test accounts are removed afterwards. The step is done when the findings report shows each issue as fixed, accepted with a named owner, or out of scope, and the retest results are attached.

  6. Hand over configuration, runbooks and evidence

    DeployOpen hands over the final configuration, a mapping from each control to the setting or log that supports it, the audit event settings, and runbooks for routine tasks such as token rotation, adding runners, reviewing audit events and running restores. The evidence pack is organized so your compliance or security team can review it. DeployOpen prepares this evidence for assessment but does not issue audit reports or certifications, so your team should confirm with its auditor which artifacts they will accept. The step is done when your operators walk through the runbooks and confirm they can perform each task.

  7. Continue with optional retainers

    After handover, you can keep patching and continuous testing under a retainer. Patching follows GitLab's published cadence of monthly minor releases, twice-monthly patch releases and required upgrade stops, and security fixes are backported to the previous two monthly releases. Continuous testing repeats the security review against changes over time. Ask for the retainer scope in writing, including which releases are covered, how emergency patches are handled and how evidence is refreshed. The step is done when the retainer scope and the first patch window are agreed in writing.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.