CHAPTER DEEP READ · ACCELERATE · CH 6

Integrating Infosec into the Delivery Lifecycle

Accelerate: The Science of Lean Software and DevOps · Ch 6 · Forsgren, Humble & Kim · 2018

中文 →

What is this chapter about?

Behind every app on your phone there is a group of people racing to build new features. There is also a second group whose job is "don't let the bad guys in, don't leak anyone's ID number." In most companies these two groups are, quietly, enemies: one thinks the other is slowing everything down, the other thinks the first is being reckless. Chapter 6 asks whether those two things really are a choice of one or the other.

Start with something strange

Common sense says the more effort a team spends on security, the slower it must ship. The data comes out backwards: the teams that deliver fastest and most reliably spend about half as much time fixing security problems as the teams at the bottom. They move faster and have less security trouble.

Why the old world was hard

Picture renovating an apartment. Design, knock out walls, run the wiring, paint. Three months of work, all finished — and on the last day the building inspector arrives. He takes one look: the fireproofing that was supposed to go inside the walls isn't there.

Now you have two options, and both are bad. Tear the walls open and redo most of three months' work. Or sign a form saying you'll be more careful next time, and leave the risk inside the wall.

Worse still, there are only one or two inspectors for the entire company and hundreds of crews waiting on them. He has become the bottleneck for the whole building. So everyone learns the same lesson: route around him.

The core mechanism: break up the checkpoint and pave it into the road

This chapter's answer is not "hire more inspectors." It is to take that one gate at the end and break it into three small things you do all the time:

One: sit down with him for ten minutes before you start. Asking "could this go wrong?" while you are still drawing the plan is ten thousand times cheaper than opening a wall. And you ask it for every feature, rather than saving it all up for one conversation at the end.

Two: deliver pre-inspected materials to the site. This is the clever one. Instead of posting someone at every site to catch mistakes, put the already-approved cement, wiring and fittings on the shelf, ready to grab. Workers take the easy path, so they take the approved one. Making the right thing the least effortful thing beats explaining the rules a hundred times.

Three: turn the checks into automatic gates on the line. Every time work is handed in, a machine sweeps it: any known-leaky old fittings in there? did anyone leave the front door key lying on the step? Nobody waits; the answer comes back in minutes.

What you get

Do all three and the inspector's job changes shape: he is no longer standing at the door stopping people, he is building the road. He spends his time preparing the materials and the machines — and once the road is good, hundreds of crews find the right path on their own. The shortage of inspectors stops mattering.

There's a side effect that explains the strange result: because problems are found the same day they're made, there is far less rework. That is why these teams end up faster, not slower.

One line to remember

Security isn't a door in front of the release; it's a set of small things you do along the way — and the security team's real job is to pave the secure road so well that walking it is easier than going around it. The honest cost: paving is an up-front investment. Those ready-made materials need someone to keep updating them, and if the machines cry wolf too often, people learn to ignore them very quickly.

Want the mechanisms, the research findings, the comparison tables and the diagrams? → Switch to the deep read