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 for keeping 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> [--no-validate/-n]
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.5.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for find_gcp_keys-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e9d70590bbbd94aeb91b36d67f088d12fa485f6a5e451652ec1c32ad484be9 |
|
MD5 | b1dbfe2f9f3fd8f9c7d362879eaddfd6 |
|
BLAKE2b-256 | ad1bb8d97340f481d1e454ef15f33a48888634e7385d17ad53533e57b557423b |