Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

ScaleSec/gcp_api_key_inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages