Analyze with AI
Get AI-powered insights from this Mad Devs article:
A cloud estate can grow from a few accounts into dozens of subscriptions and delivery pipelines before its operating model catches up. Leadership then tries to restore control with policies and manual approvals. Neither approach scales: documents are easy to miss, while approval queues turn platform and security teams into bottlenecks.
The goal is not to govern every cloud decision centrally. It is to make acceptable decisions self-service and risky decisions difficult or visible. A practical cloud governance framework connects each material risk to a testable policy, a proportionate control, an enforcement point, an owner, an exception path, evidence, and a review cycle. This article shows how to build that chain so engineering teams can provision infrastructure without waiting for central approval on every change.
Key takeaways
- Start with specific business and operational risks, not a provider's policy catalog.
- Translate policies into controls with defined scope, behavior, ownership, and evidence.
- Block only risks that justify interruption; use warning and detection modes where context or tolerance is less certain.
- Share enforcement across governance, platform, and workload teams.
- Treat exceptions as designed, traceable decisions rather than informal bypasses.
- Measure reduced exposure and delivery impact, not the number of deployed rules or policies alone.
Start with cloud risks, not a policy catalog
Importing a large baseline may create activity without control. A technically valid policy can still be irrelevant to the organization's workloads or tolerance. It can also generate enough low-value findings to hide urgent issues.
Build a risk inventory before selecting cloud governance policies. Include security, privileged access, resource ownership, cost allocation, compliance, provisioning, and operational resilience, but describe failure conditions rather than broad pillars. Useful entries include:
- customer data becomes publicly accessible;
- privileged access exists outside the approved identity model;
- a production resource has no accountable team or cost center;
- regulated data is deployed in a prohibited region;
- required audit logs can be disabled or expire too early;
- a critical workload uses an unsupported configuration;
- infrastructure cannot be traced to a product, environment, and owner.
For every risk, record impact, workloads, tolerance, and scope. Public customer-record exposure may be intolerable; a missing sandbox cost-center tag may be acceptable temporarily. They should not receive the same response.
Use a dedicated multi-cloud security strategy for IAM, encryption, and threat guidance, and cloud cost optimization for rightsizing and purchasing tactics.
Prioritize risks by impact, likelihood, scope, and coverage. Begin where a guardrail materially reduces exposure. The result is a defensible strategy, not every rule a provider can express.
Turn every policy into a testable control
A policy states intent. A control determines what the environment actually does. “Cloud resources must be secure” cannot be tested consistently. “Production storage containing customer data must not allow public access” defines a resource class, environment, condition, and expected state.
Use the following chain as the working cloud governance model:
Risk → Policy → Control → Enforcement point → Owner → Exception path → Evidence → Review
Consider a data-residency risk:
- Policy: Production customer data must remain in approved US regions.
- Control: Reject infrastructure plans that create in-scope data services elsewhere.
- Enforcement point: Organization hierarchy for universal constraints, plus Infrastructure as Code checks for contextual validation.
- Owner: Governance owns intent; the platform team implements the reusable control; workload teams classify their data correctly.
- Exception: A time-limited request names the contractual need, risk owner, and compensating controls.
- Evidence: Denied changes, effective policy state, approved exceptions, and deployed-resource scans.
- Review: Reassess when supported regions, contracts, or architecture change.
Controls can be preventive, detective, or corrective. Preventive controls stop a prohibited action. Detective controls report a deviation and start remediation. Corrective controls return the environment to an approved state. Prevention is not automatically more mature. It fits reliable rules with serious consequences and rare exceptions. Detection may be safer when a rule depends on context.
For each control, write down expected behavior, scope, mode, evidence, and owner. Test one compliant change, one prohibited change, and one legitimate exception. A control is ready when those three paths behave predictably, not merely when its configuration deploys.
Choose the right enforcement point
Enforce a rule as early as practical, but not earlier than the team has enough context to evaluate it correctly. One policy may need several layers because cloud state can change after provisioning.
Organization / account → IaC / CI/CD → Provisioning workflow → Runtime monitoring
Organization and account level
Use the resource hierarchy for near-universal baseline constraints: approved regions, audit foundations, dangerous-service restrictions, or central-log protection. AWS Control Tower applies preventive, detective, and proactive controls to organizational units and member accounts. Google Cloud's Organization Policy Service similarly applies constraints through the organization, folder, and project hierarchy, inheriting them to descendants.
Hierarchy-level controls have broad reach, so verify scope carefully. A universal restriction is efficient only when the requirement is genuinely universal.
Infrastructure as Code and CI/CD
IaC and pull-request checks are suitable when the proposed configuration contains enough context to make a decision before provisioning. Examples include required modules, encryption settings, network exposure, ownership metadata, or approved instance families. Policy as code keeps rules versioned, reviewable, and testable alongside infrastructure workflows.
Do not confuse code with governance. A policy repository still needs an accountable owner, rollout rules, exception handling, and evidence. HashiCorp's policy-as-code guidance distinguishes advisory, soft-mandatory, and hard-mandatory enforcement and recommends evaluating the effect of changes before making them blocking.
Provisioning and runtime
A self-service provisioning workflow can inject approved modules, account placement, tags, logging, and budget settings without asking a central engineer to assemble every environment. This is the paved road: the compliant option becomes the fastest option.
Runtime monitoring remains necessary because resources drift, console changes occur, credentials change, and some conditions are visible only after deployment. Continuous checks need an owner and remediation deadline. A dashboard without a response workflow detects risk but does not control it.
Decide when to block and when to observe
Choose enforcement mode according to consequence, confidence, and reversibility. Blocking is reasonable when a violation creates immediate, material exposure and the rule has a low false-positive rate. Examples include public access to sensitive storage, deployment of regulated data to a prohibited region, or privileged access outside the approved model.
Warning or detection is often better for incomplete tagging during rollout, inefficient instance sizes, or nonstandard but low-risk configurations. These findings still need owners and deadlines, but they do not justify stopping every delivery.
Microsoft's Cloud Adoption Framework recommends a monitor-first approach for lower-priority risks so teams can understand usage before applying restrictive controls. A practical rollout is:
- Detect the condition without blocking.
- Measure frequency, affected teams, and risk.
- Investigate false positives and legitimate exceptions.
- Refine scope, messages, and remediation guidance.
- Enable blocking only where interruption is justified.
Define promotion criteria before monitoring starts: an agreed false-positive threshold, a working exception path, and a compliant template. Otherwise, “monitor first” can become permanent observation with no risk decision.
Design the exception path before enforcing the policy
Restrictive controls will eventually meet a legitimate edge case. If the formal path is slow or unclear, teams will seek privileged credentials, manual deployments, or personal approval in chat. That destroys traceability and makes the framework appear stricter than it is in practice.
An exception record should contain:
- business and technical justification;
- affected resources and policy;
- accountable risk owner;
- approver with the authority to accept that risk;
- start date and expiration;
- compensating controls;
- evidence and review date.
Suppose a workload must run in an uncommon region because a customer contract requires local processing. The request should identify the customer commitment and data involved. The risk owner may approve a limited region exception for a named workload, require additional monitoring and encryption controls, and set expiration to the contract review date. The platform workflow then applies that scoped exception as code or configuration, rather than asking an engineer to bypass the policy manually.
Keep approval proportional. A low-risk, short-lived sandbox exception should not require the same committee as a production data-residency decision. Predefine approvers by risk class and review repeated exceptions as design evidence: if many teams need the same deviation, the policy scope or paved road may be wrong.
Distribute ownership across governance, platform, and workload teams
Central governance should remain accountable for the framework without becoming responsible for every control execution. Microsoft's example cloud governance RACI assigns policy accountability centrally while platform and workload teams perform much of enforcement and monitoring.
| Activity | Governance function | Platform team | Workload team |
|---|---|---|---|
| Identify and prioritize risk | Accountable | Consulted | Responsible for workload context |
| Define policy intent and tolerance | Accountable | Consulted | Consulted |
| Build reusable controls and paved roads | Consulted | Responsible | Consulted and tests usability |
| Maintain workload configuration | Informed | Supports | Responsible |
| Approve exceptions | Accountable risk owner | Implements scoped exception | Requests and supplies evidence |
| Monitor effectiveness | Accountable | Produces platform evidence | Remediates workload findings |
The exact RACI will vary. Governance defines why a control exists and its risk tolerance. Platform engineering provides reusable enforcement and self-service workflows. Workload teams own their configurations and workload-specific risks.
Use a cloud governance control matrix
A control matrix turns the framework into an operational artifact. Keep one row per risk-control relationship. Avoid a composite “governance score” that hides severe gaps behind many low-value checks.
| Risk | Testable policy | Control and mode | Enforcement point | Owner | Exception | Evidence |
|---|---|---|---|---|---|---|
| Public customer data | In-scope storage must remain private | Public-access restriction – preventive | Organization and cloud policy | Platform and security | Approved public use case with data review | Effective policy state and denied changes |
| Unowned resources | Product, environment, owner, and cost-center metadata are required | Tag validation – detective, then preventive | IaC and provisioning | Platform; workload supplies values | Time-limited legacy migration | Unowned-resource report and coverage trend |
| Uncontrolled spend | Workloads must use approved budget and capacity boundaries | Budget alerts and provisioning limits – detective | Billing and provisioning | Workload owner | Approved capacity increase | Budget variance and acknowledged alerts |
| Excessive privilege | Privileged access must use the approved identity model | IAM restrictions plus access review – preventive and detective | Identity and cloud policy | Security and platform | Logged, time-limited break-glass access | Access logs, reviews, and exception expiry |
| Policy drift | Baseline settings must remain compliant | Continuous scan and remediation – detective/corrective | Runtime | Platform; workload remediates local state | Documented workload deviation | Drift age, remediation history, and recurrence |
| Prohibited region | Regulated data must stay in approved regions | Region restriction – preventive | Hierarchy and IaC | Governance and platform | Contract-specific, scoped exception | Denials, deployed-resource scan, exception register |
The matrix forces useful questions: is the policy testable, the mode proportionate, and the evidence actionable? Review rows with security, platform, finance, compliance, and workload teams; a sound central control may lack a delivery remediation path.
Store the matrix where it has change history. Link each row to implementation, runbooks, exception records, and dashboards. Review it when architecture, services, regulations, or operating responsibilities change, or when a control repeatedly delays delivery.
Roll out guardrails without breaking delivery
Do not enable dozens of blocking rules at once. A staged rollout gives teams time to remove existing violations and gives control owners evidence about real behavior.
- Select a small set of high-impact risks.
- Enable visibility and establish a baseline.
- Assign and remediate existing violations.
- Test legitimate exceptions and control messages.
- Enable enforcement for well-understood, high-confidence rules.
- Provide self-service compliant modules and workflows.
- Expand coverage based on measured risk.
Before enforcement, test the developer experience. A pipeline failure should name the policy, condition, remediation, owner, and exception route. The compliant template must meet common workload needs.
Treat control changes like production changes. Version them, test representative plans, use staged scopes, and define rollback conditions. Governance automation implements chosen controls; it does not replace risk decisions.
Measure governance by outcomes, not rule count
More policies do not prove greater maturity. Measure whether exposure is falling without imposing unnecessary delivery cost. Useful indicators include:
- violations by risk and severity;
- unresolved high-risk violations and age;
- percentage of resources with valid ownership metadata;
- exception volume, expiry, and repeated categories;
- median remediation time by risk class;
- policy bypass incidents;
- policy coverage across in-scope resources;
- deployment delays caused by controls;
- false positives and unnecessary blocks;
- drift recurrence after remediation.
Pair a risk metric with a delivery metric. A public-access control may reduce exposed resources but still need redesign if it blocks approved static content repeatedly. Evidence must show the desired operational state, not merely that a check ran.
Do not impose universal benchmark values. Establish a baseline, set targets based on tolerance, and review trends with control owners. Repeated exceptions are especially valuable: they may reveal an emerging workload pattern, a missing platform capability, or a policy whose scope no longer matches the risk.
Example – from policy document to working guardrails
Consider an illustrative SaaS company that has grown from one cloud account to several team-owned accounts. Resources lack owners, region choices are inconsistent, public configuration risk is difficult to see, costs cannot be attributed reliably, and a central DevOps team manually approves infrastructure changes.
The company begins with a focused inventory: public exposure of customer data, prohibited-region deployment, missing ownership, and absent cost attribution. It writes testable policies for each risk and records them in a control matrix. Public exposure and prohibited regions receive preventive controls at hierarchy and IaC layers. Ownership and cost metadata begin in detective mode so the platform team can learn legacy patterns.
The platform team publishes modules and a provisioning workflow for account placement, logging, and metadata. Workload teams own applications and tag values. A time-limited exception records risk owner, justification, compensating controls, and expiry. After legacy remediation, ownership validation becomes preventive for new resources.
Dashboards report exposed resources, region violations, missing owners, expired exceptions, and pipeline delays. The central DevOps queue is no longer the default enforcement point. Teams can use the paved road, while high-risk changes are blocked and unusual cases remain visible and accountable. This example is hypothetical, not a Mad Devs client case.
A rollout checklist for the first guardrails
Before moving a control from observation to enforcement, confirm that:
- the risk, affected scope, and acceptable tolerance are documented;
- the policy is testable and maps to a named control owner;
- the team has tested compliant, non-compliant, and approved-exception paths;
- a self-service template or remediation path exists for the common case;
- evidence, alert routing, and an exception expiry review are in place;
- rollout and rollback criteria are understood by affected teams.
If a control cannot pass it, complete the missing implementation work before blocking delivery.
Build guardrails that preserve autonomy
Cloud governance does not have to mean more manual approvals. A useful framework translates important risks into precise policies and reusable controls, applies them where the necessary context exists, distributes ownership, and provides legitimate exceptions. Evidence and review then show whether each guardrail reduces risk without creating a delivery bottleneck.
Start with a few material risks and make the compliant path self-service. Mad Devs can begin with a focused DevOps and cloud engineering assessment to assess policy gaps, ownership, enforcement points, and delivery impact, then form an implementation roadmap.
DevOps assessment Make cloud governance enforceable Identify policy gaps, ownership risks, and controls that fit your cloud operating model. Review your setup → |







