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.
// 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
- Define policy listconstraint, scope, rules and conditions
- Apply org policyenforce, allow or deny with optional inheritance
- Create projectbilling link, APIs, shared-VPC service project, service accounts
- Bind group rolegroups, not individuals, hold roles
- Admission control gateGatekeeper evaluates load balancer services
- 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.