Chapter 11 — Supervised laboratory
Lesson map
Lesson 11 published. Map, example, EX051.
flowchart TD
N0["Learning outcomes"]
N1["11.1 Mirroring the service"]
N2["11.2 Rehearsal and rollback"]
N3["11.3 Closing the lab"]
N4["Synthesis"]
N0 --> N1 --> N2 --> N3 --> N4
N4 --> EX["Worked example"]
EX --> Q["Exercise EX051"]
Logical drawing
flowchart LR
N0["Learning outcomes"]
N1["11.1 Mirroring the service"]
N2["11.2 Rehearsal and rollback"]
N3["11.3 Closing the lab"]
N4["Synthesis"]
N0 --> N1 --> N2 --> N3 --> N4 --> Q["EX051"]
[Learning outcomes]
|
v
[11.1 Mirroring the service]
|
v
[11.2 Rehearsal and rollback]
|
v
[11.3 Closing the lab]
|
v
[Synthesis]
|
v
[Worked example] --> [Exercise EX051]
Learning outcomes
You will (1) set up a contained lab mirroring a client service; (2) rehearse a certificate renewal and rollback; (3) close the lab without leaving trust behind.
11.1 Mirroring the service
Before the agency renews the booking site's certificate on a new hosting platform, Marcus asks Dana to rehearse it in a contained lab. She builds an isolated virtual network with a web server copying the booking site's configuration, a throwaway lab certificate authority and a client machine that trusts only that lab root. No real keys, patient data or production names are used; hostnames end in .lab.copperleaf.example. Mirroring the configuration matters more than mirroring the content, because the renewal risks lie in file paths, chain order and server reload behaviour rather than in the web pages.
11.2 Rehearsal and rollback
Dana writes the steps: generate a new key, request a certificate from the lab authority, install the certificate with its intermediate, reload the server and test. She deliberately installs the chain in the wrong order once and sees the client fail, then fixes it. She also practises rollback: restoring the previous key and certificate from the backup copy and reloading. Timing each step shows the whole renewal takes twelve minutes, with two minutes of reload risk. The agency uses her tested steps and timings to plan a short maintenance window for the real renewal.
11.3 Closing the lab
When the rehearsal ends, Dana deletes the lab authority's private key, removes the lab root from the client, destroys the virtual machines and writes a closure note listing what was removed. Marcus explains why this matters: a lab root left on any machine lets whoever holds its key create certificates that machine trusts. The closure note also records lessons for the real change, such as checking chain order explicitly. A supervised lab is judged not only by what it taught but by whether it left anything risky behind.
Worked example
Dana rehearses the booking renewal in a mirrored lab, reproduces a chain-order failure, practises rollback and closes the lab with a removal note.
Synthetic case. Lab hosts, keys and timings are synthetic.
Errors and limits
Labs cannot reproduce every production difference, such as provider caching. A rehearsed rollback still depends on a current backup.
Exercises
- EX051 — What to mirror. What matters most to mirror in the lab, and why? Rubric: 3 = configuration such as paths, chain order and reload behaviour, where renewal risk lies;; 2 = configuration;; 1 = content;; 0 = none.
- EX052 — Deliberate fault. Which fault did Dana reproduce on purpose? Rubric: 3 = the chain installed in the wrong order;; 2 = chain order;; 1 = vague;; 0 = none.
- EX053 — Renewal timing. How long did the rehearsed renewal take, and how much was reload risk? Rubric: 3 = twelve minutes, two minutes of reload risk;; 2 = one figure;; 1 = vague;; 0 = none.
- EX054 — Lab key deletion. Why delete the lab authority's private key at closure? Rubric: 3 = so nobody can issue certificates that a machine still trusting the root would accept;; 2 = trust risk;; 1 = tidiness;; 0 = none.
- EX055 — Lesson carried over. Name one lesson recorded for the real change. Rubric: 3 = check chain order explicitly;; 2 = lesson;; 1 = vague;; 0 = none.
Synthesis
Rehearsing changes in a contained lab reduces production risk, provided the lab is closed cleanly afterwards.
Continue studying — chapter 11 of 12
← Chapter 10 (draft) · Course chapter index · Chapter 12 (draft) →