Find and report valid Google Service Account keys on your filesystem
Project description
find-gcp-keys
This tool finds and prints valid Google Service Account keys on your filesystem. This is useful to keep track of any unexpired/non-disabled keys you may have.
It does NOT require any special permissions, or even to be authenticated with Google Cloud SDK.
Requirements
Python 3.7+
Installation
pip3 install find-gcp-keys
Usage
As a command-line utility:
find_gcp_keys <dir_path>
As a library:
from find_gcp_keys import find_key_paths, find_valid_keys, is_valid_key
...
# Determine if a given file is a valid key
if is_valid_key(file_path):
...
# recursively search for valid keys
for path in find_valid_keys(dir_path):
...
# recursively search for possible keys, but don't validate them
for path in find_key_paths(dir_path):
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
find-gcp-keys-0.4.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for find_gcp_keys-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd963cde5b97325afe99787a0832a4565f62cf68ee44f3a5285646eb44980c20 |
|
MD5 | e68d5f40a2154057bf910e3c30ab87f9 |
|
BLAKE2b-256 | 08236e65e7306ed39827e2b2015418b4e8a4655eddbb45eb80d37b453ea925dd |