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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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