Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.34 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.34 KB

akhttpd - Authorized Keys HTTP Daemon

CI Status

This repository contains a small go daemon that serves authorized_keys files for every GitHub user.

This Daemon has two GET-only endpoints:

  • /<user> - when called from a browser, same as /<user>.html, else /<user>/authorized_keys
  • /<user>/authorized_keys - gets the keys of the user user in a format ready for authorized_keys
  • /<user>.html - gets the keys of the user user and shows them in niceish html
  • /<user>.sh - gets a shell script the writes the file $HOME/.ssh/authorized_keys with the content above.

This is intended to be used inside of Docker, and can be found as a GitHub Package. To start it up run:

docker run -p 8080:8080 ghcr.io/tkw1536/akhttpd:latest

You can also use GitHub OAuth Token like so:

docker run -p 8080:8080 -e GITHUB_TOKEN=my-super-secret-token ghcr.io/tkw1536/akhttpd:latest

You can additionally add authorized key files to override whatever is stored on GitHub by adding:

-v /path/to/additional/keys:/keys:ro

For a more detailed documentation, see the godoc page.

License

The code is licensed under the CC0 License, hence in the public domain.