Security & FinOps · Governance

Guardrails and Engineering Telemetry: Org Policy, Project Factory, Gatekeeper, Four Keys

Reusable GCP governance modules, cluster-level admission policy and DORA metrics.

  • Terraform
  • GCP Org Policy
  • OPA Gatekeeper
  • Rego
  • Helm
  • BigQuery

// Overview

An org-policy module takes a list of constraints per org, folder or project with allow, deny and enforce rules and CEL conditions. A project and folder factory create opinionated projects with shared VPC, group IAM and API enablement. In-cluster, a Gatekeeper constraint restricts load balancer creation. A Four Keys deployment feeds DORA metrics through BigQuery.

// The problem

A consistent baseline of controls and delivery metrics across many projects and clusters.

// Flow

Guardrails and Engineering Telemetry: Org Policy, Project Factory, Gatekeeper, Four Keys flow1. Define policy list → 2. Apply org policy → 3. Create project → 4. Bind group role → 5. Admission control → 6. Delivery metrics01Define policy list02Apply org policy03Create project04Bind group role05 · GATEAdmission control06Delivery metrics
  1. Define policy listconstraint, scope, rules and conditions
  2. Apply org policyenforce, allow or deny with optional inheritance
  3. Create projectbilling link, APIs, shared-VPC service project, service accounts
  4. Bind group rolegroups, not individuals, hold roles
  5. Admission control gateGatekeeper evaluates load balancer services
  6. Delivery metricsFour Keys parser feeds BigQuery for DORA

// Design decisions & guardrails

  • Policy as data: lists, not bespoke code.
  • Conditions express exceptions explicitly.
  • Groups hold roles; an inheritance toggle controls scope.

// Outcome

Baseline controls and DORA metrics applied the same way everywhere.

// Related