https://github.com/nextjournal/ssh-auth-github
Script to retrieve public SSH keys from teams on GitHub
https://github.com/nextjournal/ssh-auth-github
Last synced: 6 months ago
JSON representation
Script to retrieve public SSH keys from teams on GitHub
- Host: GitHub
- URL: https://github.com/nextjournal/ssh-auth-github
- Owner: nextjournal
- License: mit
- Created: 2020-10-09T10:37:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T10:14:35.000Z (about 3 years ago)
- Last Synced: 2025-04-11T21:09:12.140Z (9 months ago)
- Language: Clojure
- Homepage:
- Size: 7.81 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SSH Auth Github
This is a small [Babashka](https://github.com/borkdude/babashka/) script that retrieves public keys from a specific team under a specific organization on Github.
This can be useful to essentially use GitHub teams as access control, making sure that only the people in a certain team
have SSH access to machines.
This script can be used as `AuthorizedKeysCommand` or piped into `authorized_keys`.
## Usage
You need a `config.edn` next to the script with
```clojure
{:token ""
:organization ""
:team ""}
```
Keep in mind that the token **must have** the following permissions: `read:org`, `read:user`, `user:email`
# Acknowledgements
This library was inspired by the [Rust analogous](https://github.com/dalen/ssh-auth-github)