keybase / bot-sshca

A chat bot that can manage your team's SSH accounts
BSD 3-Clause "New" or "Revised" License
222 stars 30 forks source link

New Feature: Two Man Realms #68

Open ddworken opened 4 years ago

ddworken commented 4 years ago

This PR adds a new feature to the SSH CA project: The ability to define realms of servers that are only available with approval from someone else on your team. An example config for this feature would be:

export TEAMS="team.ssh.staging,team.ssh.prod,team.ssh.root_everywhere"
export TWO_MAN_TEAMS="team.ssh.root_everywhere"
export TWO_MAN_APPROVERS="dworken, username1, username2" 

Approval is done via reacting with a :+1: to a message posted by the bot. All approvers are logged to the SSH CA audit log.

An example interaction for this mode looks like:

image