Policy Waivers: Exceptions With a Reason, Scope and Expiry
Why policies without an exception path get switched off, and how to design waivers with a reason, a narrow scope and an expiry so rules stay enforced.
CloudEstate team · · 5 min readKey takeaways
- A policy that cannot be excepted gets disabled, which is worse than a recorded exception.
- A waiver needs a reason, a scope and an expiry, plus who granted it.
- Default to the narrowest scope: one resource before one policy in one environment before the whole organization.
- A waiver with no expiry is a policy change and should be made as one.
- Dry-run a new rule against what is already running before making it blocking.
A policy waiver is a recorded decision to accept a specific policy finding, carrying a reason, a scope and an expiry. It exists because a policy that cannot be excepted gets disabled the first time it blocks something legitimate, and a disabled policy protects nobody. A good waiver is narrow, visible and temporary, and when it lapses the rule comes back without anyone having to remember.
Why does a policy with no exception path get disabled?
Policy as code means rules that are evaluated automatically against infrastructure changes: required tags, no public ingress except on ports 80 and 443, encryption at rest. Each rule is right almost all of the time. The trouble is the rest.
Suppose a team needs a partner-facing SFTP endpoint on port 22 for a two-week data migration, and the ingress rule blocks it. With no exception mechanism there are four options, all bad:
- Refuse. The team builds it by hand outside the pipeline, where no rule applies at all.
- Downgrade the rule to a warning. It now warns for everyone, and warnings nobody is stopped by are soon not read.
- Disable the rule. The legitimate exception has removed the control for the whole organization.
- Hard-code an exception into the rule. It stays there long after the migration is over, because nothing prompts anyone to remove it.
A waiver is the fifth option: the rule stays exactly as strict as it was, and one finding is accepted on the record.
What should a waiver record?
| Field | Question it answers | Sensible default |
|---|---|---|
| Reason | Why is this acceptable? | Required, written by a person |
| Scope | How much does this cover? | The narrowest that solves the problem |
| Expiry | When is this decided again? | A fixed period, not open-ended |
| Author | Who accepted the risk? | Recorded automatically |
Scope: one resource, one policy in one environment, or organization-wide
Scope decides how much of the rule is set aside. Three levels are useful:
- One resource. This security group may have port 22 open. Nothing else is affected.
- Every finding from one policy in one environment. The tagging policy is accepted across the sandbox environment.
- Organization-wide. This policy's findings are accepted everywhere.
The narrowest should be the default. An organization-wide waiver is nearly the same as switching the policy off, and it should feel that way to the person granting it.
Expiry: 7, 30 or 90 days, or none
An expiry turns "we accept this" into "we accept this until then". Short fixed periods work well because they map onto real reasons: a week for an incident workaround, a month for a migration, a quarter for something waiting on a roadmap item.
A waiver that never expires is really a policy change. If a rule is permanently set aside, then the rule as written is no longer the rule your organization follows. Edit the policy so that its text matches what is enforced.
Why must a waiver be a record of its own?
Most policy engines delete and rewrite their findings on every evaluation. If accepting a finding only sets a flag on that finding, the acceptance lasts until the next plan. The team waives it, re-runs the pipeline, and is blocked again.
So the waiver has to be stored separately and consulted while policies are evaluated. Three useful properties follow from that:
- The same finding comes back already accepted on every subsequent run.
- Revoking the waiver, or letting it expire, brings the block back on the next run with no cleanup step.
- A waived finding is still reported, with who accepted it and why. That record should be frozen when the run happens, so revoking a waiver later does not rewrite the history of a run it allowed through.
When should a rule block, and when should it warn?
A blocking rule refuses the change outright: the non-compliant resource is never created. A warning reports the finding and lets the change proceed.
Blocking is the stronger control and costs more when the rule is wrong. Make a rule blocking once you are confident in it and there is a waiver path for the cases you did not foresee. Start newly adopted rules as warnings.
How do you switch a rule on without breaking every pipeline?
The risk in enabling a blocking rule is the infrastructure that already violates it, so find out before saving.
- Dry-run the draft rule against the resources already in your inventory and read what it would flag.
- Fix what is plainly wrong.
- Waive what is legitimately different, each with a reason and an expiry.
- Enable the rule as a warning and watch a few real changes go through.
- Make it blocking.
- Review active waivers regularly, including how often each one has been relied on.
That last step matters because a policy's real strictness is the policy minus its waivers. Ten waivers against one rule is information about the rule.
How CloudEstate handles this
In the SecOps app, policies are declarative rules evaluated twice: at form submission against what the module statically creates, and again on the plan when the full change set and its cost are known. A blocking rule fails the pipeline step. Rules can be written in the console from thirteen rule kinds, and the editor dry-runs a draft against the existing inventory before it is saved.
Waivers are separate records consulted during evaluation. Each has a reason, a scope (one resource, every finding from that policy in one environment, or organization-wide, with the narrowest as the default) and an expiry of 7, 30 or 90 days, or none. The interface states that a waiver with no expiry is really a policy change. Active waivers are listed beside the policies with how often each has been relied on.
Waiving requires a dedicated permission held by administrators and owners, and it cannot be done with an API token. The 27 built-in security checks for AWS install as ordinary policies, so they can be waived the same way; they start as warnings, and making one blocking is the organization's decision. Because the same rules are also pointed at running infrastructure, a waiver written for a pipeline finding also covers the matching finding on what is already deployed.
Waivers carry through to compliance reporting, where a control covered by one is shown as accepted and not as passing. See SOC 2 evidence from AWS configuration, or book a demo to see the dry-run and waiver flow.
Frequently asked questions
It is a record that a specific policy finding has been accepted, stating why, how much it covers and when it lapses. The policy stays enforced everywhere outside the waiver's scope.
As short as the reason behind it. Fixed periods such as 7, 30 or 90 days force the decision to be made again, and when the waiver lapses the finding returns on its own.
A blocking policy refuses the change, so the non-compliant resource is never created. A warning reports the finding and lets the change proceed.
No. Accepting a finding is a judgment about risk, so it should be made by a named person with the authority to make it, not by a pipeline step.
- policy as code
- cloud governance
- security exceptions