engineering
Record a release policy exception for a hotfix
Give an emergency deployment exception a specific release scope, approver, expiry and follow-up so the release decision stays auditable.
TrustIvan · · 10 min read
A billing service is returning failed receipts. A small hotfix passes its functional test and the release owner can verify the image came from the normal build. The service's dependency scanning queue is unavailable. The incident lead asks for emergency approval to deploy the tested image to one cohort. The record needs to say which check was deferred, which evidence is still required, and when normal release policy resumes.
A release exception is a decision about a particular risk and scope. A rule result that says a check failed or did not run should survive the approval. The exception provides the authority and constraints for one decision. An operator should be able to tell what happened even if they read the record after the incident.
Establish the state of the gate before asking for approval
Capture the actual policy version and result at the relevant build, artifact and release target. Separate a confirmed finding, a tool outage, a stale report and unavailable provenance. The reviewer needs different evidence for each. A result marked unavailable leaves the check unresolved. An exception cannot substitute for the integrity check if organizational policy makes it mandatory even during an incident.
Summarize the expected operational harm from waiting and the expected exposure of the proposed deployment, using the evidence available at that time. Include the affected workflow, current incident state and what the emergency fix changes. Consider which supported alternatives are still viable. A rollback to a known acceptable artifact or a targeted configuration change may give a safer way to recover. Record why the proposed release is appropriate and preserve the status of the unperformed requirement.
Define which policy decisions are eligible for emergency review and which must remain blocking with the policy owners ahead of time. Use the organization's established authorization path. Avoid treating a successful unit test as equivalent proof to a missing dependency review. Check the identity of the approval authority and scope of the request. A person able to manage an incident might coordinate the change while a different role authorizes the security exception.
Name the exact release this decision covers
Record the incident identifier, artifact or build identity, source revision, workload, deployment environment, intended cohort, check being deferred and policy revision. When covering a container image index, clarify which child manifests and platforms the approval actually covers. A broad repository exemption cannot show which release a reviewer approved. A mutable tag can also refer to different content by the time a deployment proceeds.
Retain approved tests and build provenance with their result and issuer where available. Provenance answers how an artifact was produced. The deployment record answers which artifact was allowed to run and what actually did. Attach both observations separately. If a build changes after approval, verify whether the new immutable identity is outside the approved scope. The SLSA provenance specification describes attestation fields for identifying artifacts and how they were produced. SLSA build provenance.
Give the exception an effective time, a last time at which it can authorize a new deployment, and any applicable temporary exposure limit. Those clocks can differ. An exception can permit a deployment until 02:45 UTC and still require a review of the running cohort at 03:15. State what expiration does in the implemented workflow. Some policies block new deployments when a decision expires while leaving a running workload for human review. Review a minimal fallback or an explicit reapproval condition for that case.
Work through a synthetic billing incident
In the exercise, the receipt API begins returning errors at 02:08 UTC. A verified build, fixture image H27, contains a small request-handling fix. Its functional and signing checks passed. The dependency scan service has returned no current result. The planned release has one production canary and a larger regional cohort rollout. The approved emergency path allows deferred dependency inspection for a scoped canary only.
| Decision field | Synthetic example |
|---|---|
| Incident and objective | IR-41, restore verified receipt creation |
| Release artifact | Image H27 recovered from approved build B27, Linux amd64 |
| Authorized audience | One canary in the documented production environment |
| Deferred requirement | Dependency scan unavailable under policy P16 |
| Controls that still run | Artifact identity and provenance checks, functional receipts test, release monitoring |
| Approval record | Duty approver accepts the exact scope at 02:20 UTC |
| Access window for new promotion | Until 02:45 UTC, confined to H27 and the specified canary |
| Follow-up | Run the deferred scan against H27, verify runtime identity and report status by 03:15 UTC |
See whether another engineer can determine the intended action from that table and the linked evidence. The approval should identify the approver's role and how it was validated. Keep the terminal gate decision available. The fixture should show that it was allowed under an exception, even if the user's remaining functional checks looked green. Describe the test evidence and user-impact observation that would force the canary to stop.
Change the example before opening the second stage. The application team rebuilds the same commit after a build retry and gets image H28. In this fixture H28 is a new immutable subject. The earlier decision named H27. Another test uses H27 to deploy to a second region. Both requests should stay outside the original exception scope. Have an authorized requester use the documented new review path and keep these outcomes distinguishable from the successful canary case.
Preserve the approval independently of the notification
An incident channel can be useful for coordinating a decision. Record the authorized decision under the organization's emergency process and tie it to the evidence before the allowed release. Keep the identity, time, artifact, policy and constraints available in a reliable system. A reaction or a message such as “go ahead” leaves ambiguous which image was considered when multiple builds exist. If the incident channel supplies part of the record, link the specific dated decision with permitted context.
Keep rejection, cancellation and expiry states available too. A tentative approval that was superseded after a new scanner result should not appear as an active authorization. Add relevant timestamps and links so downstream reviewers can see which decision applied at deployment time. Retain the actor who submitted the request and the role that approved it. Where policy requires separate roles, test that the control enforces the boundary in the emergency path.
Review which event creates the enforcement record. A ticket created at 02:30 might describe a decision that took place at 02:20. Preserve the time of the actual decision and the time the deployment system saw it separately. A missing earlier approval is a distinct operational finding. Include a controlled case where an approval arrives after an attempted deployment and verify that the documented gate behavior is reproducible.
Close the exception using evidence from the running release
Once the scan service recovers, request the deferred check for the artifact that deployed. Match report policy and observation scope. If an updated image with the same tag now exists, identify the original H27 version and keep its evidence separate. Verify the actual running workload and approved platform range. A clean result for the latest mutable tag does not prove the image in the canary is covered.
When a deferred result fails, keep the result and the right owner visible. The next action can follow the approved rollback, isolation or remediation policy. Document which checks are still open while the post-release decision is made. A reopened failure after an initial successful mitigation is a new observation on the retained release evidence. Preserve that sequence and what it changed for the next shift.
If follow-up evidence validates H27 under normal policy, close the exception according to the recorded approval route and verify that later unrelated releases require their standard checks. Restore the existing controls and remove supplemental temporary access through the authorized process. In the exercise, compare a deployment attempt after the expiry with one that satisfies the ordinary policy. A retired exception does not need to remain active just to preserve its historical audit record.
Test failures and renewals in a controlled environment
Give the reviewer a rejection case, a valid single-artifact case, a same-tag replacement, an expired request and a deployment with a disallowed broader scope. Add a case where the approver became unavailable before expiry. The supported handoff should route any new decision to an authorized replacement without changing earlier evidence. Where an extension is approved, create a dated record linked to the earlier one and specify the new scope and rationale. Confirm the old authorization remains identifiable.
Also rehearse a termination where the original hotfix is not deployed. The exception should have a terminal outcome, such as withdrawn or expired, with no misleading audit suggestion that it authorized a completed deployment. Retain comparable tests for rollout success and a later recheck that fails. Ask which evidence differentiates a rule that failed, a scan that never ran and an approval that was already consumed or expired.
Check time boundaries with the real release workflow. A deployment requested just before 02:45 might be admitted after that time if it waits in a queue. Decide whether approval must remain valid at request, admission, execution, or multiple boundaries. Test those conditions with the product's configured semantics. A request timestamp and the time the decision was enforced are both needed to reproduce the outcome. In a staged rollout, use an observation for each promotion step that has its own scope.
Verify the relationship between recovery and residual work
Record the observation that restored receipts and who confirmed it. If the canary repaired new requests but earlier receipts still await reconciliation, preserve the backlog's own owner and validation check. The emergency decision covers the authorized release window. It does not establish recovery of every receipt. Follow the incident team's approved measurement of the remaining outcome.
In one rehearsal, the incident is closed at 02:37 and the deferred scan is still unavailable at 03:15. Check that closing an incident does not automatically resolve the scan task or reset the deployment exception. The approval is expired for new use and the running canary needs the recorded follow-up. Show who was notified, which artifact remains under review and what the approved next decision is when the evidence arrives.
Compare products using the same decisions
Give each evaluation team the same fixture and policy. Ask them to record the approval before deployment, prove the image and cohort matched, demonstrate an expired case and retrieve the scan that eventually evaluated H27. Check whether rule evidence can be exported with the original incident timeline, and whether an operator can tell when normal enforcement resumed. Document where side systems or manual verification are needed. Use the code and cloud security comparison and report-only release gate guide for adjacent workflow criteria.
At the next on-call handoff, another operator should find the active constraint, the evidence still owed and the person responsible for acting at expiry. Give that person a known artifact and reference to the deferred check. A reliable record makes the emergency decision narrow, the deployed release verifiable and the eventual follow-up clear.