Terraform Custom IAM Role Grants Auditors Only Two Permissions on GCP
A write-up describes replacing broad, predefined GCP access for a third-party auditor with a least-privilege Custom IAM Role managed in Terraform. The setup is aimed at a pre-production review of a Firebase Realtime Database that stores sensitive billing data. The author narrows the Firebase Realtime Database Viewer role down to two control-plane listing permissions and binds it non-authoritatively to avoid accidentally removing other project permissions. The approach is verified using Cloud Asset Inventory's Policy Analyzer, and the full configuration is published in a GitHub repository.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in