Skip to content

Python script for collecting and visualising Google Cloud Platform IAM permissions

License

Notifications You must be signed in to change notification settings

marcin-kolda/gcp-iam-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

42592cc · Apr 23, 2017

History

20 Commits
Apr 19, 2017
Apr 23, 2017
Apr 11, 2017
Apr 23, 2017
Apr 23, 2017
Apr 23, 2017
Apr 23, 2017
Apr 23, 2017
Apr 23, 2017
Apr 23, 2017

Repository files navigation

gcp-iam-collector

Python scripts for collecting and visualising Google Cloud Platform IAM permissions

GCP IAM graph is created using vis.js and it's static HTML page, see example interactive graph

Example graph

Features

GCP IAM collector iterates over projects using Google Cloud Resource Manager API and dumps to CSV files:

  • all available GCP projects,
  • projects IAM permissions,
  • projects service account and their keys,
  • BigQuery dataset ACLs,
  • Cloud Storage bucket ACLs

IAM graph currently supports:

  • GCP projects and their permissions,
  • Service accounts and their permissions

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Install gcloud CLI tool.
  2. Setup Google Application Default Credentials:
gcloud auth application-default login

Run Instructions

Command below dumps all IAM to csv files

python collector.py

Creating interactive graph:

python create_iam_graph.py

About

Python script for collecting and visualising Google Cloud Platform IAM permissions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages