Client
A UK insurance broker group with around 1,100 staff and about 90 engineers building quoting and policy-administration software
Sector
Financial Services
Engagement
Build infrastructure review, emergency change design, secrets and runner redesign - seven-week programme.
What the client needed
The group ran one self-managed GitLab instance that nobody wanted to touch. Upgrades happened twice a year, the version was three releases behind, every employee could create public projects, and pipeline variables held cloud administrator keys that had been pasted in during a rushed migration. When a maximum-severity code execution flaw hit that product family in October, the platform lead asked a plain question: if we had to be on the fixed build by Friday, could we, and if someone got in first, what would they find?
How we worked
- Mapped what the GitLab host, its runners and its variable store could reach, from production deployment accounts to the document archive.
- Built a staging copy from a restored backup and proved the upgrade and rollback end to end, including timing, so the emergency path was known to work.
- Wrote a one-page emergency change procedure with named approvers, a go/no-go checklist and a 48-hour target from advisory to patched.
- Closed the easy doors first: public project creation limited to a named group, self-registration off, and administrator access put behind single sign-on with hardware keys.
- Replaced stored cloud keys with short-lived federated credentials issued per job, scoped to a single environment.
- Moved runners onto separate, disposable hosts with no route to the application server, and added alerts for new pipeline files from accounts outside the owning team.
Measured results
Results confirmed with the client. Names, counts and platform details withheld in line with our standard confidentiality terms.
- The instance moved to a supported release in the first fortnight and has since taken two security releases inside the 48-hour target.
- Standing cloud administrator keys in pipeline variables fell from dozens to none; every deployment now uses a credential that expires with the job.
- A compromised runner can no longer reach the GitLab application host or other teams' environments.
- A test pipeline change from an unexpected account reached the on-call engineer in under eight minutes.
- The rollback rehearsal took 35 minutes, which gave the change board the confidence to approve out-of-window upgrades.
"We treated the build server as plumbing. It turned out to be the most trusted machine we owned, patched like the least."
Working on something similar?
If this engagement looks like the kind of problem you are facing, we would be glad to compare notes by email.
Context and constraints
Delivery teams were mid-release, so builds could not stop for long. The GitLab host also ran two internal tools nobody had documented. We agreed to start with the work that asks nothing of developers: mapping reach, building the staging copy and rehearsing the upgrade, and to change access rules only once we could show who depended on what.
Why the build server is a bigger target than the code on it
The repositories were ordinary. The machine around them was not. It could read every project, run code on any runner, and hand out the variables that unlocked cloud accounts. A recent maximum-severity GitLab flaw (a CVSS 10 integer overflow in the pipeline regular expression compiler, fixed on 12 October) is a good example of the shape of the risk: the precondition, committing a pipeline file to a public project, was something nearly every employee at this client could do.
Where control really sits
The client first asked for faster patching. Faster patching mattered, but the larger gain came from shrinking what a compromised pipeline could reach. Short-lived credentials and disposable runners meant that even a successful attacker would have found very little worth keeping.
Lessons learned
First, rehearse the rollback before you need the upgrade; the 35-minute figure is what let the change board say yes. Second, write the emergency procedure when nothing is on fire. Third, inventory what the build system can reach before arguing about version numbers, because the answer is usually larger than anyone guessed.
If your pipelines can reach more than you would like, we would be glad to talk. Email sales@halfteck.com.