/gcp_api_key_inventory

Inventory, analyze, and report on your GCP API keys in an automated fashion.

Primary LanguagePythonOtherNOASSERTION

Inventory Your GCP API Keys

GitHub Super-Linter

This script will inventory your entire GCP Organization's API keys and create two files: key_dump.json and keys.csv. You can read the blog related to this repository here.

Prerequisites

  • Python3
  • The following GCP roles on the Organization level:
    • API Keys Viewer
    • Organization Administrator

Usage

  1. Clone the repository locally.

  2. Create your virtual environment.

python3 -m venv $path_to_environment
  1. Activate your environment
source $path_to_environment/bin/activate
  1. Change directories into the newly cloned repo.

  2. Install the required python packages.

pip install -r requirements.txt
  1. Execute the script.
python3 apiInventory.py
  1. Two files will be created:
  • key_dump.json
  • keys.csv

Feedback

Feedback is welcome and encouraged via a GitHub issue. Please open an issue for any bugs, feature requests, or general improvements you would like to see. Thank you in advance!