← Writing

Nov 2026 · By Somesh Motupally · 6 min read

Harness FirstGen to NextGen: Migrating the Platform Without Losing the Security Gates

Harness CI/CD Platform Engineering

The problem

Our Harness estate grew up on FirstGen. That's where the pipelines live, where the delegates run, and — most importantly for us — where the account-level security templates live: the versioned, centrally maintained building blocks that put secret scanning, SAST, dependency scanning, and image scanning into every team's pipeline by default. That template system is the reason our security coverage is consistent instead of aspirational.

NextGen is where Harness has been investing for years, and FirstGen is in maintenance. So the question was never really whether to migrate. It's how — because a careless migration doesn't just move pipelines, it quietly drops the gates. The worst migration outcome isn't a broken build. It's a build that succeeds with the scanning silently missing, discovered months later by an auditor instead of by you.

Why a lift-and-shift doesn't work

FirstGen and NextGen are not two versions of the same product. They're two different platforms that happen to share a logo. NextGen is YAML-first with Git Experience as a core workflow; it organizes everything under an account → organization → project hierarchy that FirstGen doesn't have; the expression language, the delegate model, the connector model, and the template library are all their own things. Harness ships migration tooling, and it earns its keep on bulk, well-structured estates — but no converter changes the fact that the target model is different.

Templates are the sharpest example. A FirstGen template and a NextGen template solve the same problem — reusable, versioned pipeline logic — with different primitives, different scoping, and different ways of passing inputs. The intent of our template set ports perfectly. The syntax doesn't port at all. Anyone who budgets a FirstGen-to-NextGen move as a format conversion is budgeting for the wrong project.

The approach: platform first, templates second, pipelines last

The order matters more than the tooling. Ours runs in four stages:

Notice what's not on that list: a big-bang cutover weekend. Platforms that took years to build don't move in a weekend, and the attempt is exactly how security controls end up "temporarily" disabled and permanently forgotten.

Lessons learned

What's next

The end state we're aiming at is unglamorous and exactly right: the same security baseline, enforced the same way, on the platform that has a future — with the template set still the single place a new control gets added once and inherited everywhere. The platforms change. That design principle is the thing worth migrating most carefully.


If you're mid-migration from FirstGen, I'd like to hear what surprised you — get in touch.

Share this post: X LinkedIn

More from PipelineClear