Google Cloud in Production · Foundations: Projects, Identity and Guardrails
The Service Account Key in CI
A service account key stored as a CI secret leaked and was used to mine cryptocurrency. Replace keys with Workload Identity Federation and block key creation by organisation policy.
Scenario
Example team: deployments run from a CI system. Years ago someone created a service account deployer, gave it the
Editor role on the production project, downloaded a JSON key and stored it as a CI secret. The key was also copied to
two engineers' laptops "for debugging".
Premium course
Keep reading with a membership
The rest of this lesson, its practice questions and the whole Google Cloud in Production course are part of the membership.
Reference for this lesson
Free pages on the services and comparisons in this lesson.
- Identity and Access Management (IAM) · Service
Open in the app to mark lessons complete, take notes and track your progress.