https://github.com/horgix/github-ssh-keys-fetcher
Configure system users and their authorized SSH keys from Github Org/Teams
https://github.com/horgix/github-ssh-keys-fetcher
ansible fetch github ssh ssh-key
Last synced: 3 months ago
JSON representation
Configure system users and their authorized SSH keys from Github Org/Teams
- Host: GitHub
- URL: https://github.com/horgix/github-ssh-keys-fetcher
- Owner: Horgix
- Created: 2018-04-17T12:45:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T08:22:28.000Z (almost 8 years ago)
- Last Synced: 2025-07-24T15:36:55.699Z (11 months ago)
- Topics: ansible, fetch, github, ssh, ssh-key
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```bash
export GITHUB_ORG="my-github-organization"
for login in `http https://api.github.com/orgs/${GITHUB_ORG}/members -p b | jq '.[].login' | tr -d '"'` ; do http https://api.github.com/users/${login}/keys -p b | jq '.[].key' ; done
```
# Ideas
## Get refreshed from Github Organization webhooks
Ideally, when using this, you want to keep your users synced to the Team
members, and thus remove people when they are removed from the Team and/or
Organization.
This could be notified directly by [Github
webhooks](https://developer.github.com/webhooks/), especially since
[Organization webhooks were
added](https://developer.github.com/changes/2014-12-03-preview-the-new-organization-webhooks-api/)
## Backups
Backup `/etc/passwd`, `/etc/group` and `/etc/shadow` files with Ansible instead
of the current wrapper shell scripts?