A team's method matches each level of definition, from the users' needs down to the design of each part, with a level of testing that proves it.
Waterfall, spiral, agile and DevOps told apart
Teams organise the work of building software in different ways. Some agree everything first and build once. Some build in loops, each loop reducing the biggest remaining risk. Some deliver a small working piece every few weeks and let users steer. Some merge building and running into one continuous flow. No method is secure in itself, but each gives security work a different place to sit. No background in software is assumed.
By the end of this unit you will be able to:
- Tell apart waterfall, the V-model, spiral, prototyping, RAD and cleanroom by how work is ordered
- State the four values of the agile manifesto and explain a Scrum sprint
- Tell apart DevOps, DevSecOps and the Scaled Agile Framework
- Choose a method for a described project and say where security work fits in it
Two plans for one app
An illustrative example
A trust that runs six schools wants an app for parents: absence reporting, payments for trips, messages from teachers. Two suppliers bid.
The first proposes to agree a full specification over two months, build for six, test for one, and hand over a finished app. The second proposes to deliver absence reporting in a fortnight, then add a feature every two weeks, with a group of parents trying each one. The trust's head of IT likes both. Neither proposal mentions security.
Where would the security work go in each supplier's plan?
Plan-driven methods: waterfall and the V-model
The waterfall model performs the activities in a fixed order: concept, requirements, design, implementation, test, installation. Each is largely finished before the next begins. The model allows a step back only to the phase just before, to correct a fault found there, and no further. Like water over a series of steps, the work flows mainly one way.
Waterfall suits a project whose requirements are known and stable, such as software built to a regulation. Its weakness is that problems in early decisions surface late, when they are costly to fix, and users see nothing until the end.
The V-model bends the same sequence into a V. Down the left side, the system is defined in more and more detail, from user needs to the design of each part. At the bottom it is built. Up the right side, the parts are joined and tested, each level against the matching definition on the left. At the top, the whole system is validated against the users' needs.
In both, security requirements must be settled at the start, because there is no planned moment to add them later. The V-model also pairs each security requirement with the test that will prove it.
Methods built on loops: spiral, prototyping, RAD and cleanroom
- Spiral model
- Barry Boehm's model repeats the cycle of requirements, design, build and test in loops that grow the system. Each loop begins by finding the biggest and reducing it. It is the method driven by , suited to large projects with much unknown.
- Iterative and incremental development
- The system is built in a series of pieces, each planned, built and tested, so it is completed bit by bit instead of all at once.
- Prototyping
- A rough early version is built so users can react, feasibility can be tested or a design question answered. A throwaway prototype is built only to learn and is not meant to become the product.
- Rapid application development (RAD)
- Speed through heavy user involvement, prototypes of screens and fixed time limits. It runs in four stages: requirements planning, user design, rapid construction, and transition.
- Joint application design (JAD)
- Workshops in which users and developers analyse and design the system together. RAD uses them in its user design stage.
- Cleanroom
- Aims at software that does not fail in use, by preventing defects instead of removing them. It uses mathematical proof that the design is correct and statistical testing to certify the result.
Common misconception
“A prototype that users like can be put into service to save time.”
A prototype is built quickly to answer a question and usually skips security controls, error handling and testing. Putting it live ships every shortcut taken to build it.
Agile: four values, Scrum sprints and Kanban boards
In 2001 a group of developers published the Manifesto for Agile Software Development. Agile methods follow its four values. Individuals and interactions over processes and tools. Working software over comprehensive documentation. Customer collaboration over contract negotiation. Responding to change over following a plan. The items on the right still matter. The items on the left matter more.
Scrum is a widely used agile framework. Work happens in a sprint, a fixed period of one month or less, which ends with a usable piece of product.
- Product backlog
- The ordered list of everything the product may need, kept by the product owner, who decides what matters most.
- User story
- One short need written from a user's view, such as a parent reporting a child absent before 9 o'clock.
- Sprint backlog
- The items the developers choose for this sprint and their plan to deliver them.
- Definition of done
- The quality checks every finished item must pass. Nothing counts as delivered until it meets them.
- Product owner
- Decides what the product needs and in what order, and keeps the product backlog.
- Developers
- The people in the team who build each usable piece in the sprint.
- Scrum master
- Coaches the team and the organisation in the method and removes obstacles to progress.
These three roles make up the Scrum team. Each sprint has a planning meeting, a daily meeting of fifteen minutes, a review of what was built, and a retrospective on how the team worked. Kanban has no sprints. Work items move across a board through columns such as to do, doing and done, so the work in progress and any blockage are visible. Extreme programming (XP) adds engineering habits: pair programming, two developers at one keyboard, and test-driven development, in which tests are written before the code.
Security fits into agile through its own parts: security stories and misuse stories in the backlog, security checks in the definition of done, and a security specialist in the team.
DevOps, DevSecOps and the Scaled Agile Framework
DevOps joins software development and IT operations into one way of working. Builders and operators collaborate closely, so that changes reach users quickly and reliably. It depends on a pipeline: an automated sequence that builds, tests and releases each change.
DevSecOps, short for , puts security into that same pipeline. Security checks run automatically on every change, and security is a shared duty of the whole team. Independent testing and approval of significant changes still apply.
Scrum describes a single team. The Scaled Agile Framework (SAFe) is a published operating model for applying agile across a large organisation. Its central unit is the Agile Release Train: a long-lived team of agile teams, typically 50 to 125 people, that plans together on a regular rhythm and delivers one or more solutions.
Choosing a method, and where security sits in each
| Method | Shape of the work | Best when | Security sits in |
|---|---|---|---|
| Waterfall | One pass, phase by phase | Requirements are fixed and well understood | Requirements and design at the start |
| V-model | One pass, each level tested against its definition | Requirements must be shown to be met, as in regulated work | Paired requirement and test at each level |
| Spiral | Loops, each reducing the biggest risk | Large, costly projects with much unknown | Risk analysis that opens every loop |
| Prototyping and RAD | Quick versions shown to users | Users cannot say what they want until they see it | Requirements drawn out by prototypes, then rebuilt securely |
| Cleanroom | Proof of correct design, statistical testing | Failure in use is unacceptable | Formal verification of each part |
| Agile, Scrum, Kanban | Short cycles or continuous flow | Needs change and early value matters | Backlog, definition of done, team membership |
| DevOps and DevSecOps | Continuous building, release and running | Frequent change to running services | Automated checks on every change |
The trust's first supplier offers waterfall, so security requirements must be in the two-month specification or they will not be built. The second offers agile, so security stories belong in the backlog and security checks in the definition of done from the first fortnight.
A question, worked through
A national lottery operator plans a new ticket system that must link to a technology it has never used. The project will cost tens of millions of pounds, and the board fears committing the whole budget before the main risks are understood. The chief information security officer is asked which development method to recommend.
Which method BEST fits this project?
Decide on your answer, then open the reasoning
- The deciding facts are a large, costly project, an unfamiliar technology, and a board that wants risk understood before money is committed.
- Rule out c. Kanban manages a continuous flow of work items. It has no step that looks for the biggest project risk before spending.
- Rule out b. Waterfall assumes requirements and technology are well understood, and it reveals problems late, after most of the money is spent.
- Between a and d: cleanroom aims at defect-free software through proof and statistical testing. It answers whether the code is correct, not whether the project is wise. The spiral model starts every loop by finding and reducing the largest risk, and lets funding follow each loop.
- Option a.
Answer: A. The spiral model, with risk assessed at the start of every loop
Choosing between good answers
- A question stresses risk analysis at each repeated cycle of a large project
- the answer is the spiral model.
- Each development level is matched by a test level that proves it
- the answer is the V-model, a variant of waterfall.
- A question asks where security fits in an agile team
- choose security stories in the backlog and security checks in the definition of done. A separate gate after each sprint is the weaker answer.
- A question asks what DevSecOps changes from DevOps
- security checks run automatically in the same pipeline on every change and security is the whole team's duty. Independent review of significant changes still applies.
- Users cannot describe what they need until they see it
- prototyping or RAD fits. A prototype is thrown away or rebuilt, not put live.
Check your understanding
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
What to remember
- Waterfall runs the phases once in order, stepping back at most to the phase just before. The V-model pairs each level of definition with a level of testing. Both need security requirements settled at the start.
- The spiral model is iterative and risk-driven: each loop begins by reducing the biggest remaining risk.
- Prototyping, RAD and JAD put users in front of early versions. Cleanroom prevents defects through proof and statistical testing.
- Agile values people, working software, collaboration and response to change. Scrum delivers in sprints of a month or less, steered by a product backlog and a definition of done.
- DevOps joins building and running through an automated pipeline. DevSecOps puts security checks into that pipeline. SAFe scales agile across many teams through Agile Release Trains.
Say it from memory
Tell apart waterfall, spiral, agile, DevOps, DevSecOps and SAFe, and say where security work sits in each.
Waterfall runs phases once in order, so security requirements go in at the start. Spiral loops, each loop opening with risk analysis. Agile delivers small working pieces in short cycles, with security in the backlog and the definition of done. DevOps joins building and running through an automated pipeline, and DevSecOps runs security checks in it on every change. SAFe scales agile across many teams.
How far back may the waterfall model step, and how does the V-model pair its two sides?
Waterfall allows a step back only to the phase just before, to correct a fault found there. The V-model defines the system in more detail down its left side and tests up its right side, each level against the matching definition. Each security requirement is paired with the test that will prove it.
Give the four stages of rapid application development in order, and say what the cleanroom method aims at.
Requirements planning, user design, rapid construction, and transition. Cleanroom aims at software that does not fail in use by preventing defects instead of removing them, using mathematical proof that the design is correct and statistical testing to certify the result.
What are the three Scrum roles, and how does Kanban differ from Scrum?
The product owner decides what the product needs and in what order and keeps the product backlog. The developers build each usable piece in the sprint. The scrum master coaches the team and removes obstacles. Kanban has no sprints: work items move across a board through columns such as to do, doing and done.
What is a DevOps pipeline, and what is an Agile Release Train in the Scaled Agile Framework?
A pipeline is an automated sequence that builds, tests and releases each change. An Agile Release Train is a long-lived team of agile teams, typically 50 to 125 people, that plans together on a regular rhythm and delivers one or more solutions.
Sources
- SEVOCAB: Software and Systems Engineering Vocabulary, IEEE Computer Society and ISO/IEC JTC 1/SC 7The definitions of the waterfall model, spiral model, incremental and iterative development, prototyping, agile development, DevOps, sprint, product backlog, user story, Kanban board and extreme programming.
- Spiral Development: Experience, Principles, and Refinements (CMU/SEI-2000-SR-008), Software Engineering Institute, Carnegie Mellon University (B. Boehm, W. J. Hansen)Spiral development as repeated iteration of elemental development processes while managing risk so that it is actively reduced.
- Systems Engineering for ITS: the Vee model (section 2.7), Federal Highway Administration, United States Department of TransportationThe V-model: definition and decomposition down the left side, implementation at the bottom, integration and verification up the right, and validation against user needs.
- RAD Procedures Guide, Digital Policy Office, Government of the Hong Kong Special Administrative RegionRapid application development as a faster life cycle relying on user involvement, its four stages, joint application design workshops in the user design stage, prototypes of screens, and timeboxing.
- Cleanroom Software Engineering Reference (CMU/SEI-96-TR-022), Software Engineering Institute, Carnegie Mellon University (R. Linger, C. Trammell)Cleanroom's objective of zero failures in use, defect prevention over defect removal, mathematically based correctness verification and statistical testing to certify fitness for use.
- Manifesto for Agile Software Development, Authors of the Agile ManifestoThe four values of the Manifesto for Agile Software Development and that the items on the right still have value.
- The Scrum Guide (November 2020), Ken Schwaber and Jeff SutherlandSprints of one month or less, Sprint Planning, the 15-minute Daily Scrum, Sprint Review and Retrospective, the product owner, Scrum Master and developers, the backlogs and the Definition of Done.
- NIST SP 800-204C: Implementation of DevSecOps for a Microservices-based Application with Service Mesh, National Institute of Standards and TechnologyDevSecOps as development, security and operations, built on automated pipelines through build, test and deployment.
- Scaled Agile Framework, Scaled Agile, Inc.SAFe as an operating model for scaling Lean and Agile practices.
- Agile Release Train, Scaled Agile, Inc.The Agile Release Train as a long-lived team of agile teams, typically 50 to 125 people, on a regular planning cadence.