Security
Four-eyes principle: approving changes to live systems safely
Most website outages are not caused by attackers but by well-meant changes. A clear approval path with two people catches them before customers see them.
In short
- Whoever builds a change does not approve it themselves and does not check it alone.
- An approval is a complete written sentence with action, scope, target, name and date, not a click on OK.
- A second, independent review compares the result with the approved package.
What it is about
A typical working day in a website project: a package with several hundred changed files is ready, the tests are green, the upload takes a few minutes. This is exactly where the most expensive mistakes happen. Not because someone is careless, but because nobody else is looking.
The four-eyes principle separates three roles: whoever builds a change does not approve it. Whoever approves does not rely solely on the author’s report. And a third view checks whether what is live really matches what was approved. Standards such as ISO/IEC 27001 and the NIST catalogue SP 800-53 call this separation of duties and controlled change.
How it works
In practice, a simple process has proven itself. First, a complete package is created with a file list, checksums and a description of what changes. Then an authorised person, such as the managing director, approves it. The form matters: the approval is typed as a full sentence with action, scope, target, name and date. A click on a button, a forwarded “looks fine” or a thumbs-up is not enough, because none of them can be clearly linked to one version.
After deployment, a second party checks independently: are exactly the files of the package on the server? Do the checksums match? Are security headers, redirects and language versions working? Only then is the new version considered live and marked in the version history.
Where it goes wrong
The most common mistake is an approval that is changed afterwards. A package is approved, then a typo is spotted, it is fixed quickly, and what gets uploaded is a version nobody has seen. The rule must therefore be: every change after approval needs a new approval.
Just as risky is a review by the same person who built the change. They see what they expect to see. In one project, only the independent second review found that an animated logo briefly disappeared at the end. The author had not noticed it in a hundred test runs.
How to proceed
Define in writing for each live system who may build, who may approve and who may review. Formulate a fixed approval sentence that the authorised person types themselves. Make each approval valid only for exactly the version it was based on, identified by package name or checksum. Plan the second review as a separate step with its own checklist and its own report. And keep approvals and reports with date and time, so that every change can be traced later.
Read more: Deployments with checksums: live is what was reviewed, Acceptance tests before go-live: what should be checked automatically and Keeping terms versions under control: which version applies to which order?.
How Airnite helps
We set up an approval and review process for your websites and applications that fits the size of your team, from the typed approval sentence to the review report after go-live. We work exactly this way in our own projects. As part of a penetration test, we can also check whether your approval paths are enforced technically or only exist on paper.
Checklist
Sources
Every fact in this article is based on the following publications. Primary sources are marked.
Matching services
Read on
Deployments with checksums: live is what was reviewed
An upload is quickly done, but how do you know that the reviewed files are really on the server? Checksums turn a feeling into evidence.Software & B2B3 minAcceptance tests before go-live: what should be checked automatically
Before go-live, people look at the home page, click through three subpages and press publish. For websites with hundreds of pages in several languages that is not enough. A fixed set of automated checks is.Software & B2B3 minKeeping terms versions under control: which version applies to which order?
General terms and conditions are revised, extended and translated. Anyone who does not keep versions can hardly prove in a dispute which rules were agreed for an order.Current incidents and warnings are covered in the Zero Day magazine. Go to the magazine