Sign inSign up

raphink/github_pki

By raphink

•Updated over 10 years ago

Use GitHub as a centralized repository of SSH keys

Image
0

1.4K

raphink/github_pki repository overview

⁠GitHub PKI

Docker Pulls

github_pki is a command that can be used to retrieve and dump SSH keys from GitHub.

⁠Examples

⁠Dump all keys from team devops in organization zeorg to /home/bob/.ssh/authorized_keys
$ AUTHORIZED_KEYS=/home/bob/.ssh/authorized_keys \
  GITHUB_ORG="zeorg" \
  GITHUB_TEAM="devops" \
  GITHUB_TOKEN=398d6d326b546d70f9e1ef91abad1fc5ee0f1f39 \
    github_pki
⁠Dump all keys from specified users as X509 public keys
$ SSL_DIR=/etc/software/ssl \
  GITHUB_USERS="bob,alice" \
  GITHUB_TOKEN=398d6d326b546d70f9e1ef91abad1fc5ee0f1f39 \
    github_pki

⁠Environment variables

⁠GITHUB_TOKEN

The GitHub token used to connect to the GitHub API. It must allow two actions:

  • read:org
  • read:public_key
⁠GITHUB_ORG

An organization from which to select users to authorize.

⁠GITHUB_TEAM

A team of the provided organization from which to select users to authorize. If not specified, all users in GITHUB_ORG will be authorized.

⁠GITHUB_USERS

A list of GitHub users to authorize.

⁠AUTHORIZED_KEYS

The location of the authorized_keys file to create.

⁠SSL_DIR

The location of the SSL directory where X509 public keys should be dumped.

Tag summary

Content type

Image

Digest

Size

258.6 MB

Last updated

over 10 years ago

docker pull raphink/github_pki