Lion Cipher Lab

Review Google Cloud service-account keys and plan their retirement (key age, last use, and keyless alternatives)

Why it matters

A service-account key is a file that lets a program log in to Google Cloud as a robot user. By default it never expires, it works from anywhere on the internet, and it is easy to copy into a laptop, a CI variable or a public repository. Most cloud estates have dozens or hundreds of them, many on accounts with Owner or Editor power, and nobody remembers which ones are still needed. Google's own guidance is to avoid them. But the obvious cleanup, deleting every old key, takes production down, because old does not mean unused and a deleted key can never come back. In this lab you review a whole…

What you'll learn

Steps in this lab

  1. Service accounts and their keys, in plain words
  2. The three data sources a real key review joins
  3. Build the synthetic estate
  4. The review rules, and why each one exists
  5. Run the review
  6. Read the plan like a reviewer
  7. Measure it: delete everything old vs disable, watch, delete
  8. Lock the door: organization policy
  9. What last-use data cannot tell you
  10. When to use this, when not to, and how a pro does it

Open the full interactive lab →