Skip to main content

Generate Google Service Account tokens with your YubiKey

Project description

google-yubikey

Generate Google Service Account tokens with your YubiKey!

This is perhaps the most secure way to use Google credentials outside of Google Cloud, since the private key never leaves the device, and so it cannot be leaked or stolen without physically stealing the YubiKey.

Requirements

YubiKey 4+

Setup

pip3 install google-yubikey

Usage

  1. Run this only once to set up a private key on the YubiKey, or to renew it after expiration:

    google-yubikey private-key
    
  2. Run this once to register YubiKey with each Service Account:

    google-yubikey public-key -a <service_account_email>
    
  3. Run this every time you'd like to generate a Service Account token:

    google-yubikey token -a <service_account_email>
    
  4. Further customization options are available through:

    google-yubikey [<command>] -h
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-yubikey-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

google_yubikey-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file google-yubikey-0.1.1.tar.gz.

File metadata

  • Download URL: google-yubikey-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 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

Hashes for google-yubikey-0.1.1.tar.gz
Algorithm Hash digest
SHA256 86c5f3984d3451fba06eb183cadb4787f67350f56762f440b945ec76c04c20f4
MD5 6c0d6aa9ef182e3512e7313a78a38d65
BLAKE2b-256 a5a9be83b0379bb5f562f955c0e2e14663357369cfc9bf2d92d44332eb6799c3

See more details on using hashes here.

File details

Details for the file google_yubikey-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: google_yubikey-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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

Hashes for google_yubikey-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0627c246fb2eaad0882361b7e32e26ee7162456388cfbba25ea73365ae57143
MD5 4a9a4200f96ee22e369267a2897f43c0
BLAKE2b-256 8c8c95ede7dc4102793b564aa44edf3a5b174ce71b7300586f8aeab113f9cd37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page