# Policy exceptions: enforce every policy, document every exception

DevFeed: [Policy exceptions: enforce every policy, document every exception](<https://devfeed.tech/articles/policy-exceptions-enforce-every-policy-document-every-exception-129258.md>)

Original publisher: [Read original article](<https://www.pulumi.com/blog/policy-exceptions/>)

Author: Alejandro Cotroneo

Published: 2026-11-09T00:00:00Z

Content type: article

Language: en

Sources: [Pulumi](<https://devfeed.tech/sources/pulumi.md>)

Topics: [pulumi](<https://devfeed.tech/topics/pulumi.md>), [policy-as-code](<https://devfeed.tech/topics/policy-as-code.md>), [DevSecOps](<https://devfeed.tech/topics/devsecops.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [exception](<https://devfeed.tech/tags/exception.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [features](<https://devfeed.tech/tags/features.md>), [governance](<https://devfeed.tech/tags/governance.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [log](<https://devfeed.tech/tags/log.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [mandatory](<https://devfeed.tech/tags/mandatory.md>), [needs](<https://devfeed.tech/tags/needs.md>), [policies](<https://devfeed.tech/tags/policies.md>), [policy](<https://devfeed.tech/tags/policy.md>), [policy-as-code](<https://devfeed.tech/tags/policy-as-code.md>), [policy-exceptions](<https://devfeed.tech/tags/policy-exceptions.md>), [preview](<https://devfeed.tech/tags/preview.md>), [product](<https://devfeed.tech/tags/product.md>), [production](<https://devfeed.tech/tags/production.md>), [public](<https://devfeed.tech/tags/public.md>), [pulumi](<https://devfeed.tech/tags/pulumi.md>), [pulumi-cloud](<https://devfeed.tech/tags/pulumi-cloud.md>), [resource](<https://devfeed.tech/tags/resource.md>), [resources](<https://devfeed.tech/tags/resources.md>)

## AI overview

Pulumi policy exceptions let teams enforce mandatory policies while exempting specified resources from specified policies. Other resources and policies remain enforced, and exempted violations still appear in results. Each exception records its reason, requester, scope, approvals and expiry; creation and removal are logged, and expired or removed exceptions remain accessible. Developers can request exceptions through Pulumi Cloud or an experimental CLI command. Organizations can allow audited self-service or require designated approvals; exceptions take effect on the next run after any required approval. The guidance recommends first auditing policies when existing violations are unknown, then making them mandatory and choosing approval based on expected exception volume or policy sensitivity. Local policy pack configuration is supported with any backend. Pulumi Cloud support requires CLI v3.274.1 or later; older versions may report violations without applying exceptions. The feature is in public preview on Essentials, Pro and Enterprise; approval requirements need Pro or Enterprise.

## Source excerpt

Policy exceptions in Pulumi Policies let you keep a policy mandatory while letting specific resources break it for a valid reason. Each exception identifies the resources and policies it applies to, and records who created it and why. You can require approval before it takes effect and set an expiry date so it doesn't last forever. Everything the exception doesn't cover must still comply. Why do mandatory policies stall? An advisory policy only warns. A mandatory policy blocks pulumi preview or pulumi up before a public bucket or an open security group reaches production. That difference matters more as coding agents build more of your infrastructure: agents make changes faster than people can review them, and a warning gets lost in a long preview. A mandatory policy forbids the misconfiguration entirely, so the code must comply before any change is applied, whether a developer or an agent wrote it. Many users struggle with updating their policies from advisory to mandatory. The new required policy applies to every stack, including resources created before the policy existed. Some violations are intentional: a static website bucket needs to be public, and a log bucket needs to allow the log delivery group. The policy is still correct, but it needs a few known exceptions. Without ways to handle edge cases, some users run into these situations: Leaving the policy advisory or disabled. Nothing is blocked, so nothing is prevented. Turning off the policy for a few stacks. A copied policy group with one rule disabled exempts every resource in those stacks, not only the one that needs it, and the copies multiply. Excluding resources in the policy configuration. This is more precise, but the exclusion lists spread across packs and policy groups and quickly become a maintenance burden. In each case, the reason a policy was skipped ends up in a chat thread, a ticket, or someone's memory, where it's hard to trace back to the resource. What changes with policy exceptions? Manda