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.
- Python3
- The following GCP roles on the Organization level:
API Keys Viewer
Organization Administrator
-
Clone the repository locally.
-
Create your virtual environment.
python3 -m venv $path_to_environment
- Activate your environment
source $path_to_environment/bin/activate
-
Change directories into the newly cloned repo.
-
Install the required python packages.
pip install -r requirements.txt
- Execute the script.
python3 apiInventory.py
- Two files will be created:
key_dump.json
keys.csv
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!