Users and Groups on the Server
On your server:- Each team member gets a user.
- Each project has a group.
- Access to a project is managed by adding users to the right group.
Keyhouse
We don’t use a live database for access control. Instead, we use a GitHub repository known askeyhouse as the database. It’s fast, versioned, and easy to understand.
Watchdog
Watchdog is a Rust binary installed on the server which communicates with the Keyhouse repository to check for privileges, and notifies of any login attempts, successful or otherwise, through Slack messages. As an added feature, we also notify you about any administrative activities likesudo.
It also keeps the server’s users and groups in sync with Keyhouse itself, by polling the repository and applying commit diffs, either automatically on every SSH login (with the auto-update build feature) or via a periodic watchdog update.