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 file_path in find_valid_keys(dir_path):
...
# recursively search for possible keys, but don't validate them
for file_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.3.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for find_gcp_keys-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0ba38b7192138e453ba54eef785c3e46fb68723a150f3cd1421b8af6b5dfb59 |
|
MD5 | f2cd092d4dd10588d793c2c6e0812c57 |
|
BLAKE2b-256 | 2b456c0474d2217100b588ef4658cc503937745f7c19177cb99fa8b2ff2c5207 |