Skip to content
BIASED

Incidents and operational security

Recover a save operation, count request impact and verify the boundaries of credentials and releases.

Coordinate the intervention

A learner presses Save, but the service cannot persist the answer. A permission rollout reached the writer processes shortly before the failure. Restarting everything could restore access or make the interruption larger. The first task is to coordinate a reversible intervention and observe its effect.

We use a fictional answer-saving service. The timeline, counters and planning costs below are specified teaching inputs, not production measurements. A real investigation would have to establish the cause from evidence.

Freeze the rollout and assign responsibility for system changes. A coordinator keeps the objective and next decision clear; a responder makes the agreed change and records the outcome; a communication owner gives support a status and next update time. A small team may combine roles, but each handover must say what transfers.

Keep observations separate from hypotheses. “Reads succeed; writes return access denied” is an observation. “The new identity lost write permission” needs checking. Concurrent unrecorded changes make both recovery and interpretation harder. Record the expected result and reversal procedure for each intervention.

Severity depends on the affected operation, scope, workaround and uncertainty. Failed saves do not by themselves prove stored answers were lost. Suspected credential misuse calls for a security investigation. Keep recovery contacts accessible even when the learning service is unavailable.

Count impact in the indicator units

The example starts at 09:30. A probe alerts at 09:32; the responder acknowledges at 09:33. A partial permission rollback reduces failures at 09:34. All writer groups recover at 09:41; seven complete healthy minute buckets support closure at 09:48. The alert time is supplied by the fixture, not calculated from an alert threshold.

Detection takes two minutes from onset. Mitigation takes eleven minutes from onset, followed by seven minutes of verification. State both endpoints when reporting a duration: closure does not mean every follow-up is complete.

The counters cover complete minute buckets:

Minutes from onset Attempts per minute Failed attempts per minute
0–3 200 50
4–10 400 20
11–17 300 0

There are 4⋅200+7⋅400+7⋅300=57004\cdot200+7\cdot400+7\cdot300=5700 attempts and 4⋅50+7⋅20=3404\cdot50+7\cdot20=340 failures. The affected eleven-minute interval contains 3600 attempts. Failed attempts are not a count of distinct learners or lost answers: retries may refer to the same answer.

For a separately specified fourteen-day period, suppose there are 500000 eligible attempts and these are its only failures. At a 99.5% SLO, the budget is 500000(1−0.995)=2500500000(1-0.995)=2500 bad attempts. This incident consumes 340/2500=13.6%340/2500=13.6\% of it; the period's success rate is 1−340/500000=99.932%1-340/500000=99.932\%.

Traffic varies, so dividing incident minutes by period minutes would measure something different. The period volume is an input, not an extrapolation from this short trace.

Turn evidence into a follow-up

Recovery stops the immediate harm. A postmortem examines why the failure was possible and which change would reduce its impact next time. In this fixture, the rollout check tested reads but not writes, and rollback did not immediately refresh every worker's authorization state.

A useful follow-up has an owner and an observable acceptance condition. The delivery owner adds a canary that writes a disposable answer and reads it back under the real service identity. The runtime owner tests authorization refresh during rollback. The support owner checks that status can be published while the application is down.

“Be more careful” offers no completion test. Blameless analysis still records decisions and responsibilities; it examines available evidence and system conditions without using personal blame as an explanation. Partial recovery is supporting evidence for a hypothesis, not proof of the entire causal story.

Keep missing evidence explicit. Without a persistence audit, we do not know how many failed attempts were later retried successfully. Assign that measurement instead of inventing a user-impact count.

Automate within access boundaries

Suppose seven weekly checks take ten minutes each. Automation takes nine hours to build and ten minutes per week to maintain. The weekly saving is (7⋅10−10)/60=1(7\cdot10-10)/60=1 hour, so time break-even is 9/1=99/1=9 weeks. Over 26 weeks the modeled net saving is 26−9=1726-9=17 hours. These are planning assumptions; more maintenance, fewer checks or added risk can change the decision.

Do not automate recovery by giving the service unlimited access. The writer needs its designated write operation, not permission to create database users or publish releases. Test both the required action and a forbidden action, with the intended resource scope and environment. Two passing tests do not prove the entire policy correct.

A permission accidentally removed and a credential exposed are different incidents. Restore the intended limited permission in the first case. In the second, revoke or rotate the exposed credential and investigate its use. Deleting a file from the current Git tree leaves earlier commits accessible; .gitignore does not erase history, clones or logs. Repository cleanup is a separate task.

Base64 encoding of a Kubernetes Secret is reversible representation. Storage encryption and access controls need configuration and review. Creating a Pod can also permit indirect access to mounted Secrets. Short token lifetime helps only within the issuer's trust boundary: someone able to mint new tokens may retain access.

Check the release identity

An SBOM lists components associated with an artifact. Its usefulness depends on completeness and correct association with those bytes. The list does not prove those components safe.

A signature binds an artifact or statement to a key or verified identity under a trust system. Check the intended identity and issuer as well as the artifact binding. A valid signature from an unrelated identity does not authorize our deployment; a signature on an image does not automatically authenticate an adjacent SBOM.

Provenance records the build's origin and process. The SLSA Build track distinguishes specified build assurances; it does not certify application correctness. We do not assign a SLSA level to the exercise.

Our small policy checks an already trusted verification result: exact artifact digest, expected source repository, release ref and allowed builder identity. It rejects a mismatch in any field and rejects missing evidence. This is policy logic after cryptographic verification. An arbitrary JSON file containing those strings is not verified evidence, and our notebook performs no signature verification.

For updates, map the affected component to deployed bytes and reachable behavior. Rebuild, regenerate the inventory, test and observe rollout. A merged dependency change is not a deployed patch. If rollback restores a vulnerable version, record its temporary containment, owner and deadline.

Rehearse a bounded failure

Rehearse the permission failure in an isolated test environment. Define the expected failed save probe, an abort condition and the restoration procedure before removing write access. Check that both the permission and worker authorization state recover. Avoid real learner records in this exercise.

A successful rehearsal supports this tested scenario under its assumptions. It does not establish resilience against every combination of faults or malicious actions. Use the result to improve the runbook and repeat the bounded test.

The optional notebook reproduces the fictional counters, response intervals, automation arithmetic and policy-only release checks. It uses Python's standard library, makes no network requests and is not required for course progress. Its displayed policy result is not evidence about any real release.

The complete note records the source and example review. Coordination and postmortems draw on Andrew Stribblehill's Managing Incidents and John Lunney and Sue Lueder's Postmortem Culture. Security concepts are checked against OWASP Secrets Management, Git show, Kubernetes Secrets, Cosign verification and SLSA v1.2. Their incident examples, code and diagrams are not used here.

This completes the DevOps route: known build bytes, bounded deployments, relevant observations and controlled recovery. MLOps applies that foundation to model releases and data changes.

Check your understanding

The same questions as in Pulse. Answers are shared between modes.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • Incident counters and release boundariesoptional

    Reproduce fictional request impact, response intervals, automation payback and policy-only release checks. Standard library; no remote systems.

    ~20 min · easier on a computer · The incident lesson and basic Python functions.

    Self-check in the notebook — not part of mastery or the certificate.

Full notes

Answers are saved on the server and tied to this browser until you sign in.