If an Approver Loses Their Role Right Before the Deploy, Does the Approval Still Count?
Having approved legitimately at 2 p.m. and being usable as grounds for execution at 4 p.m. are two different questions. Comparing a policy that honors eligibility at approval time with one that requires eligibility at execution time, what to record for auditors, and how to test caches and queued jobs.
At 2 p.m., an authorized production approver approved the deploy of build 218. At 3 p.m., after a handover, that person was removed from the approver group. The deploy is scheduled for 4 p.m. The plan and the file are unchanged; only the approver's eligibility changed. What should the executor do at 4 p.m.?
Having approved legitimately at 2 p.m., and being usable as grounds for execution at 4 p.m., are two different questions. An organization can choose which of the two moments defines whether an approval is in effect.
An approval's legitimacy is judged when it is given; its effect is judged by the policy in force at execution. Record the two judgments separately, and you can explain why something didn't run today without rewriting the past.
Which moment should define an approval's effect?
For routine jobs with frequent shift changes, eligibility at approval time can be the standard. For production targets that need an accountable approver at the moment of execution, eligibility right before execution can be. Side by side (times and build numbers are illustrative):
| Policy | Decision at 4 p.m. | Evidence to record for audit |
|---|---|---|
| Honor eligibility at approval time | Accept the existing approval if the plan is identical, it is within its validity window, and nothing has revoked it | Eligibility and policy version at 2 p.m., approval scope, result of the 4 p.m. expiry/revocation check |
| Require eligibility right before execution | Drop that approval from the current quorum; if too few remain, wait for a new approval | Role removal at 3 p.m., valid approvers at 4 p.m., which approver group must sign again |
In shift work it's common for the next shift to execute a routine job the previous shift lawfully signed off. And even under the second policy, losing one of two approvers does not always mean starting over. Just compute whether the remaining approvers satisfy the current policy's group and headcount requirements.
Either way, revocation of the approval itself, a hold due to a credential incident, and a change to the file or target after approval are separate events. Also keep an approver's reassignment distinct from revocation of the requester's own permission. In a design that re-checks requester and executor permissions right before execution, a user who has lost the right to request cannot push a deploy through on someone else's earlier approval. Evaluating requester, executor, and target together is covered in how far a relationship-based model can express deploy permission.
Is removing the approver on screen enough for acceptance testing?
No, it isn't. Take a deploy that was already queued before the role was revoked and confirm which permission state and policy version it was judged against right before execution. If authorization decisions are cached, also test whether a query right after revocation still returns the old value. Some relationship-based authorization engines offer consistency options that reduce or bypass caching on a query, and the OWASP Authorization Cheat Sheet recommends validating permissions on every request.
What should the auditor's record say?
The record easiest to explain to an auditor reads like this: "The 14:00 approval was valid at the time. The role was revoked at 15:00. At 16:00, per production policy, the deploy waited for a new approval." You can explain why it isn't running now without erasing any history.
- #permissions
- #change-management
- #audit
- #deployment
- #compliance