Podcast about DevSecOps

#55 - Unpacking System Initiative with Paul Stack

Creating infrastructure is only the start; snapshots, migrations and incident fixes need workflows too.

18 min read

Our dialogue with Paul Stack resumes on DevSecOps Talks, almost two years after our initial podcast about his work on Pulumi (episode 25). As a warm-up, we talk about what prompted his move from Pulumi and his take on Open Terraform drama. The main topic of the episode is Paul’s current focus, System Initiative; we probe into its purpose, the progress so far, and the promise it holds for redefining how we think of doing Infrastructure as Code and DevSecOps workflows in general.

Discuss the episode or ask us anything on LinkedIn


The tools stop at “it exists”

Your infrastructure as code tool is good at one job. You declare what should exist, it makes the account match, and it tells you when the two have drifted apart. Past that it goes quiet. The ten instances are running. Now reboot them in a particular order, take a snapshot before the next change, move traffic to the new group and move it back if the graphs look wrong. None of it is one operation you can declare, so you orchestrate it with a second tool wrapped around the first, or you do it by hand in the console you told everyone not to open.

That gap has been there long enough that most of us stopped noticing it. Blue-green is the example everyone reaches for, and it is possible. HashiCorp’s own pattern wraps the green stack in a feature toggle and brings it up with -var=enable_green_application=true. You then shift the DNS weight across and drop the blue configuration once the traffic has moved. What you want to express is one operation. What you coordinate is several variable changes and several applies. The tools aren’t at fault. They were designed before the cloud looked like this, and the complexity they have absorbed since is its own kind of achievement. Terraform was nine years old when we recorded this, and what we ask of it has changed more than its shape has.

Paul Stack has spent two decades in infrastructure and has built two of these tools from the inside. He wrote Terraform providers on the HashiCorp team, spent years at Pulumi, and left when another evolution of the same idea stopped being interesting to him. He now works on assets and functions at System Initiative, the tool Adam Jacob, who wrote Chef, had been building in the background for four years and through four discarded versions. It went open source under Apache 2.0 in August 2023, with the announcement telling anyone who wants a production-grade replacement for their current tools to wait. The tutorial that ships with it calls the release an open beta. The argument behind it is worth following even if you never open the product.

Code is the artifact, not the intent

Start with the workflow every one of these tools assumes.

Why is a pull request a poor place to agree on infrastructure?

Because by the time something is code, the thinking that produced it happened somewhere else, and the file keeps none of it.

You express the change in code, open a pull request, someone reviews it, it merges, the pipeline pushes it into the world. One direction, with a cost nobody prices in.

The review is where you see it. You can’t ask anyone on the team, you have to find the person who knows the tool and the cloud underneath it. Anyone else reads the diff and tells you the TypeScript looks fine, or the DSL looks fine, and has no view on whether the intent is right. Paul calls that the 200% problem: to be useful you need the layer of abstraction plus the cloud it abstracts, rather than just the cloud.

So you get a wide base and a narrow tip. Everyone who should be in that chain was supposed to be able to take part. In practice a handful of people deploy the infrastructure and everybody else asks them to. We have said before that platform engineering is where infrastructure people go to die, and the mechanics are the ones DevOps set out to remove. Developers ask the platform team. The team goes away and does it. The result comes back over the wall. That is 2009 with better tooling.

This is also where we disagree. Andrey doesn’t buy the collaboration premise: in most companies he sees, one to three people do nearly all the infrastructure work, their paths rarely cross, and real-time multiplayer editing reads like a fix for coding rather than for infra. Paul’s answer is that the small group is the symptom. We invented a job that needs two bodies of knowledge, staffed it thinly, and then treated the result as the natural order.

One direction, and the console you told everyone not to open

That handoff has a technical twin, and it’s the one that bites you during an incident.

What breaks when the code is the only source of truth?

The world changes without consulting your code, so “source of truth” is a policy you enforce rather than a property you have.

Hence the rule: don’t touch the console, don’t SSH into the box, don’t change anything by hand. It’s a reasonable rule, because the moment someone breaks it the file and the account disagree. How long that stays invisible depends on what runs between applies. If the only thing comparing state to reality is your next terraform plan, nobody finds out until someone opens a pull request. That gap has had an answer since June 2022, when Terraform Cloud added drift detection: continuous checks against the state file, with notifications by email, Slack or webhook, in public beta on the Business tier. You switch it on, and it reports the difference rather than closing it. A terraform plan can still look clean and the terraform apply behind it still blow up.

Then Wednesday afternoon happens. Production is down, the fix is small, and main is carrying a week of infrastructure changes queued for Saturday’s window. Ship the one-line fix and everything else rides along with it. Or open the console and become the person who broke the rule.

System Initiative points the check the other way, though only partway by the time we recorded. What existed was refresh driven by your own edit: change something in the graph and every affected node re-evaluates its function, calls out to the API and asks whether the real state still matches. The team’s own write-up calls this integrated change control, where a change set holds a proposed state beside the real one and applying it reconciles your intent with the real-world state. What didn’t exist was the half that notices a change nobody made in the graph. Discovery and bidirectional updates were both on the tutorial’s list of what was coming next, and only that half would do the job a drift check does. The direction is the Formula One simulator: you don’t try the change on the car mid-race, you try it on a model that sensors keep tied to the real one. The sensors are the part still being built.

Nodes, edges, and what sits behind them

For the model to track the real thing, it has to carry more than a diagram does.

What is an asset in System Initiative?

A component plus the behaviours that belong to it: an EC2 instance together with create, update, delete and refresh.

Underneath it’s a hypergraph of functions feeding functions. Every property, validation and action is a TypeScript function whose inputs come from other elements on the graph, so an input that changes recalculates everything downstream of it. On screen you get nodes and edges, and the edge is the relationship itself. An instance attached to a target group is a whole attachment resource in your file and a line between two boxes on the canvas. Same fact, different amount of work to keep in your head. An S3 bucket is one asset with behaviours rather than a bucket plus an acceleration resource plus a replication resource plus whatever else got split out this year.

So does this make you a drag-and-drop operations person? Partly, and the reason is that you already whiteboard before you write code, translate the drawing into HCL, and then rebuild the drawing in your head every time you read the code back. The visual model is the one you had first.

What makes this credible is how plainly the limits get stated.

The planned fix is templates: select the boxes, right-click, extract, share the result inside your org or publish it. That isn’t shipped yet. Loops are the same story from the other end. Ten slightly different instances are one for_each block in Terraform and ten drags here, and Terraform didn’t start with that either. for_each arrived in 0.12.6 in 2019, five years in. Semantics first and ergonomics later is a defensible order to build in. It’s a bad thing to buy on.

Actions you can reorder

A model you can see is a diagram. What makes it an operations tool is what happens when you press go.

Can you run one step of a plan without the rest?

You pick which actions go out and in what order, because the change set hands you a queue instead of a sequenced plan.

The comparison needs care. Terraform has had targeted operations since 0.4 in April 2015, so terraform apply -target=aws_instance.web narrows a run to the resources you name and the ones they depend on. What it won’t do is let you reorder the operations inside that run, because the dependency graph decides them. System Initiative queues the actions a change set produces and lets you pick from the queue. You might have fifteen queued and care about one today.

Some of the order isn’t yours to change either. There’s no ingress rule before the security group it belongs to. The rest you can reorder, and dragging an action to the top of the list so it runs before anything else was being built while we talked. Results feed back in, so an action that produces a snapshot ID hands that ID to whatever needs it, because inputs flow down the graph.

That’s what makes behaviours more than a menu. An RDS component written the week we recorded had “take snapshot” on a right-click. Chain it and you get a workflow: snapshot, change the two values, apply. Push further and you reach the database migration, which is the honest test. Snapshot, stand up a new instance on the new version, restore, reconcile whatever happened in between, move the traffic. Most of those steps have a declarative form, and the blue-green pattern above shows the traffic shift does too. What your IaC tool doesn’t carry is the orchestration around the declarations: which one runs first, the one-off steps that never become resources, the point where you stop and check before the next apply. You write that part somewhere else. Rundeck solved that shape years ago with runbooks you could order and automate. The ambition here is runbooks plus a live model of the thing they operate on.

If the database needs restoring, your developers aren’t doing it, they’re asking the operations people. An action with a reviewed function behind it changes who can run the thing, not what the thing does.

Edit the function yourself

Choosing actions only matters if you can write the action, which is where the design takes its strongest position.

What do you do when AWS ships a feature your tool doesn’t cover?

You open the functions tab and edit the code in your own instance, rather than waiting for a vendor to regenerate a provider.

Full fidelity is the term for it, and the trade is explicit. Everything is a small TypeScript function, so everything is yours to change. Nobody has to pull the new API shape down, repackage it and ship it, so support arrives when you write it rather than when a provider release reaches you. Testing the function you changed is yours too, and that part doesn’t go away. The same door covers what no vendor will ever ship for you. Plenty of large organisations have to raise a ServiceNow ticket before a reboot or a deployment. ServiceNow has an API, so that call becomes part of the create path instead of a step somebody remembers.

The editor was catching up: tooltips over types shipped the week we recorded, with inline documentation, snippets and autocomplete behind them. The tell that it wasn’t finished is that Paul wrote his functions in his own IDE and pasted them in.

The licence is part of the same argument. The software went out under Apache 2.0 with no features held back, no competitive restrictions and no special rights retained, and the reasoning behind that is that 1% of a bigger pie beats 100% of this one, so the useful move is to get more people rebuilding these tools. Dagger and Wing get pointed at as other people already trying.

Sharing assets works as far as you would expect and no further. Build one in the editor, press contribute, and it goes to a central system where somebody checks it isn’t a Bitcoin miner before it becomes a built-in. Keep it internal instead, and workspace export and import was being built so you can back your assets up. What wasn’t there yet is the part you need before anyone goes near production. Approvals didn’t exist. Role-based access control was understood as necessary and unbuilt. Secrets were in progress, so credentials could stop living outside the product.

Discovery is the part worth watching

Everything so far assumes you’re modelling something new, and almost nobody is.

How would a tool like this learn about infrastructure you already run?

By running a function that asks the cloud what exists, then reconciling the answer against the model it already holds.

The hope is to get it out of the same machinery as the bidirectional pull, with no separate importer. If functions are already calling the API to check state, one of them could be “get me all the VPCs in this account”, and the comparison after that is mechanical: known, known, known, new, so where did that one come from and what does its model look like?

None of it existed yet, and the tutorial’s “coming next” list is where it sat, next to production deployments. The claim around it stays careful in a way worth copying. Every tool in this space has promised easy migration from the last one, and no such promise gets made here. The scenario on offer is smaller. Engineers keep writing Terraform, Pulumi or CDK. The people who need to see the whole estate pull it into a model instead of pushing changes out of one, which is the case after an acquisition, when you own another company’s infrastructure and nobody has the whole picture.

Our skepticism went the other way. From the user’s side this sounds like Backstage: a portal where people click, and someone else writes what the buttons do. The answer was that Backstage plus an IaC tool is two tools doing one job, and the hope is one. Drawing tools make the same point from the other side. Cloudcraft lets you lay the boxes out and generate Terraform from the diagram, and then you maintain the diagram and the Terraform and have to know both, which is the 300% version of the same problem. Getting back to one layer is the whole bet.

Where the rest of the market sat

Two weeks of October 2023 made the alternative directions easy to read side by side.

Pulumi announced a $41M Series C on 3 October, led by Madrona, taking it to $99M raised in total, on doubled revenue over the past year and more than 2,000 customers. A week later it shipped Pulumi ESC in preview: reusable environments that compose secrets from AWS KMS, Azure Key Vault, Google Cloud KMS, 1Password and HashiCorp Vault, consumable from Terraform, GitHub Actions and Docker as well as from Pulumi. Paul’s description was Puppet Hiera on steroids, and he means it warmly: he left on good terms and is clear the team is doing well. Both moves point the same way: toward a box of building blocks that a platform team assembles into a platform, which is the shape System Initiative argues against.

The fork got a cooler read.

Mixed feelings rather than opposition. Keeping the ecosystem alive is good, and the previews of things Terraform users have wanted for years, state file encryption among them, are real. A fork in the road also creates ambiguity, and the registry is where it bites first. HashiCorp’s registry terms now say it may only be used with Terraform, so OpenTofu stood up its own registry to unblock the alpha, with a permanent one to follow through an RFC. If you publish modules, that’s two registries to care about and a question about which side to serve. OpenTofu’s own answer to whether every provider and module will keep working is yes, which at that point was an intention rather than a measurement. The prediction came hedged: watch for the first large company to switch, and check in March 2024 whether anyone still calls this a hot topic.

What this means for teams

None of this is a buying decision. System Initiative was an open beta, modelled against AWS, and not for production, and the parts of the argument that transfer don’t need anyone’s product.

Four things worth doing this week:

  • List the changes that still happen outside your IaC. The snapshot before the migration, the reboot in a specific order, the traffic shift. That list is the orchestration your IaC tool doesn’t carry.
  • Count the people who can review an infrastructure pull request for intent. Then find out what keeps the rest out: the cloud itself, the tool’s layer on top of it, or how reviews get assigned. Spreading tool knowledge and changing the approval path fix different problems, so work out which one you have before you pick either.
  • Check how you would find out about a console change. Pick a resource, change a tag by hand, and see how long it takes for something to tell you. If the answer is the next apply, switch on whatever periodic drift check your platform offers before you go shopping for a new tool.
  • Try it on a scratch account rather than anything real. Model a VPC, drag the 25 assets, and see whether the visual model matches how you already think. You’re evaluating the mental model more than the product.

Common questions, answered

Can I replace Terraform with System Initiative right now?

No, and the people building it said so first. The open source announcement tells anyone after a production-grade replacement to wait, and the tutorial shipped with the open beta lists production deployments among the things still to come. Approvals and role-based access control aren’t built, secrets handling is in progress, and importing existing infrastructure is a plan rather than a feature. Run it against a scratch account to see whether the model fits how you think, and keep your existing tooling where the production estate is.

How do I stop my Terraform drifting from what’s actually deployed?

Measure how long a hand-made change survives before anything tells you, then shorten that gap. Change a tag on one resource by hand and time the detection. If nothing reports it until your next terraform plan, the only thing holding the code and the account together between runs is the rule that says don’t touch the console. Terraform Cloud has had drift detection with email, Slack and webhook notifications since June 2022, which replaces “until somebody opens a pull request” with however often the check runs. The code stays the source of truth by policy rather than by construction either way, so the detection delay is the number worth knowing.

Do I have to pick between the Terraform registry and OpenTofu’s?

Check where your providers and modules resolve from before you switch anything, because that’s the part the fork actually split. HashiCorp’s registry terms restrict it to use with Terraform, and OpenTofu launched a registry of its own rather than depend on it. OpenTofu’s stated goal is that everything that works with Terraform keeps working, which they intend rather than guarantee. If you publish modules, you now have two registries to care about and a question about which side you serve.

Resources

Since we recorded

System Initiative reached general availability on 25 September 2024, and Paul came back to walk us through what had changed in Episode 70, System Initiative Goes GA. In early 2026, System Initiative switched to Swamp, a local CLI for coding agents, and archived the systeminit/si repository in February; Episode 92 covers the change with Paul. OpenTofu, the fork Paul wanted to revisit in March 2024, shipped 1.6 as its first stable release in January 2024 and added client-side state encryption in 1.7 that April. We picked the fork up again in Episode 83, OpenTofu vs Terraform: Where We Are Now.