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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file find-gcp-keys-0.4.2.tar.gz.
File metadata
- Download URL: find-gcp-keys-0.4.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c72cc32f14354e4f95d26d33032fdb860a778c30fe18842fe263b6dbe295329
|
|
| MD5 |
1768af0877afa6bf021568fcc9e0e910
|
|
| BLAKE2b-256 |
f532c29353bedb40d32c3f0534ada91af897ef36860a5e0130c2d2545a00b405
|
File details
Details for the file find_gcp_keys-0.4.2-py3-none-any.whl.
File metadata
- Download URL: find_gcp_keys-0.4.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
445adb628c08ea3ba1c2fbc1ebdf02ba0500af301bd28d495ae613a4dcf1e560
|
|
| MD5 |
708bb17904e8eac7cc85c64c75b817d2
|
|
| BLAKE2b-256 |
f1b8641ad7626fafafea022c1e55c7f7e86d25060a553a9c6bf3827bd96b923a
|