Domain 8

Objective 8.2

Security controls in the development environment

What it is

The environment around the code needs controls too. A repository is the shared history of the code. It should have access control, review, and protection of the main branch. CI/CD, continuous integration and continuous delivery, is the conveyor that builds, tests, and ships software. If that conveyor is poisoned, every product on it is poisoned. Separate environments for development, test, and production stop experiments and test data from landing on customers. Secrets such as keys do not belong in the repository. A software bill of materials lists components. Libraries need the same scrutiny as code you typed. The build system is a production system.

Why it matters

Attackers increasingly target the factory instead of only the finished goods. One compromised build agent can sign malware with your good name. Shared admin on the repository means a single phished developer can change what everyone ships. Copying production customer data into laptops “for realism” spreads the crown jewels. Environment separation and least privilege on the pipeline are ordinary hygiene with a large payoff.

A simple example

A bakery's recipe book is the repository. Only bakers can edit recipes, and a second baker glances at changes. The conveyor from mixer to oven is the pipeline. If someone can switch the flour there, every loaf is affected, not one slice. The test kitchen does not serve customers, and it does not use real customer allergy cards as scratch paper. The lock on the recipe book matters as much as the lock on the shop door.

On the exam

Protect the pipeline, the repo, and the secrets. Production data stays in production unless it has been properly masked. Developers do not need permanent production passwords. A trap is a world-writable build script, or API keys in a public repository, treated as a minor tidy-up. That key is live access. Rotate it.

Words worth keeping

CI/CD
Automation that builds, tests, and deploys code. It must be protected like production.
Repository
The controlled store of source code and its history.
Environment separation
Keeping development, test, and production apart so experiments and data do not leak across.
Practice this section