Overview
1. Keyhouse: A central database for easy access control
Keyhouse is the central database that allows access control. It stores SSH keys of all members in thekeys/ folder. Access rules for different servers and projects are organized in the hosts/ folder, with one file per member listing the server|group pairs they can access.
Whenever access needs to change (for example, when someone joins or leaves a project), updates are made here and synced automatically.
2. Watchdog: Access Syncing and Real-Time Privilege Monitoring
Watchdog is a Rust binary installed on each server. It keeps the server’s users and groups in sync with Keyhouse by polling the Keyhouse repository and applying commit diffs through thewatchdog_utils_II crate. The sync can run automatically on every SSH login, or periodically via a scheduled watchdog update.
It also keeps an eye on what’s happening on your servers. It watches for key actions like people logging in via SSH, users running sudo commands, and anyone switching users using su.
When any of these events occur, Watchdog sends real-time alerts to a Slack channel, helping teams stay informed and ensuring there’s a clear record of privileged activity.
Together, these two tools give you full control over who can access your servers, what they can do, and when they do it, with everything being tracked and updated automatically. Simple to use and easy to maintain.