Lion Cipher Lab

Design Google Cloud Organization Policy guardrails - and evaluate their inheritance offline before you ship them

Why it matters

On Google Cloud, the strongest controls a security team owns are not IAM roles. They are organization policies: guardrails set once at the top of the company's resource tree that say what may exist anywhere below it. No service account keys. No outsiders in IAM. No attaching to the wrong shared network. Set well, one policy protects thousands of projects that nobody has created yet. Set carelessly, the guardrail looks enforced on the dashboard while a single project-level exception quietly turns it off. The rules that decide this are short but surprising. A reset does not mean 'inherit…

What you'll learn

Steps in this lab

  1. What an organization policy is, and why it is not IAM
  2. Set up a folder and check Python (5 minutes)
  3. The rules you are about to implement, straight from the docs
  4. Write the evaluator: hierarchy, catalog, evaluation, linter, fixtures
  5. Run the BEFORE matrix and find the holes
  6. Measure the wrong mental model: 3 of 48 cells
  7. Lint before you ship: the 6 shapes the API refuses
  8. AFTER: exceptions as reviewed code, scoped by a tag
  9. Rehearse a rollout: inventory, dry run, then enforce
  10. Retroactive or not: read the constraint entry every time
  11. Judgment: org policy, IAM deny policies, or VPC Service Controls?
  12. Where this evaluator stops, and how a pro does it better

Open the full interactive lab →