https://github.com/wizardishungry/sonclave
Dead-simple OpenBSD user, groups, & ssh key management, backed by Github teams.
https://github.com/wizardishungry/sonclave
github openbsd ssh-key
Last synced: 24 days ago
JSON representation
Dead-simple OpenBSD user, groups, & ssh key management, backed by Github teams.
- Host: GitHub
- URL: https://github.com/wizardishungry/sonclave
- Owner: wizardishungry
- License: mit
- Created: 2016-03-24T16:09:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-11T19:45:06.000Z (about 7 years ago)
- Last Synced: 2025-02-13T08:54:21.058Z (3 months ago)
- Topics: github, openbsd, ssh-key
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sonclave
Dead-simple Unix user, groups, & ssh authorized_keys management, backed by Github teams.## Configuration
You can find an example configuration at [https://github.com/bongozone/beatniks](https://github.com/bongozone/beatniks).
Put this in `.sonclave` for now. Generate a token:
```sh
bin/sonclave-token
```
and put it in your `~/.netrc` (NB: might not work with 2FA disabled on Github)
```
machine api.github.com
login WIZARDISHUNGRY
password deadbeefdeadbeefdeadbeefdeadbeefdeadbeef
```## Run
```sh
bin/sonclave go | ssh root@openbsdmachinehere
```You'll see something like:
```
Sonclave path is /Users/jon/Projects/sonclave/.sonclave
+ set -f
+ usermod -v -S wheel,operator,staff,users -c Jon\ Williams -L staff jon || useradd -v -m -G wheel,operator,staff,users -c Jon\ Williams -L staff jon
```## TODO
- [ ] Better name
- [ ] Delete users
- [ ] Lock users
- [ ] Configuration options `.sonclave/config` or command-line
- [ ] `authorized_keys` location / scheme
- [ ] YAML schema validation
- [ ] String keys inside `unix` configuration array have arbitrary presidence## Prior art
- [stackbuilders/openssh-github-keys](https://github.com/stackbuilders/openssh-github-keys)