Skip to main content

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

Command line

find-gcp-keys <dir_path> [--no-validate/-n] [--file-pattern/-p <regex>]

Note that by default, the CLI only searches for the JSON key files matching a particular pattern (<project-id>-<key-id>.json). You can override this behavior, e.g. to search for all JSON files:

find-gcp-keys <dir_path> -p '.*\.json'

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):
  ...

Metadata

Release files for find-gcp-keys 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for find-gcp-keys 0.6.2
File Size Uploaded
find-gcp-keys-0.6.2.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for find-gcp-keys 0.6.2
File Interpreter ABI Platform
find_gcp_keys-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / find-gcp-keys-0.6.2.tar.gz

Download URL find-gcp-keys-0.6.2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
71f6d55a72e9b10460ee26e54b587781859fe78c4fdcf82a85b770c34f204849
BLAKE2b-256 checksum
How to use checksums
594a2bcb3979154f5ecd9e1712864b06d5abe2f2d21bbcd916a03add94d12374
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Release files / find_gcp_keys-0.6.2-py3-none-any.whl

Download URL find_gcp_keys-0.6.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7adf4cc5611fbf5653d5f10d9f3cee09c1f69b417550168728e65973502358f
BLAKE2b-256 checksum
How to use checksums
ba4f98d07f94ae7b3b2a94ee8fd7ef012c99f4b272b87ed7ba01b1d8c15da852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page