This bot allows you to share MFA one-time tokens with your team members.
They request a token, your admins approve it. And all that on Slack.
- help
- request mfa [service] for [reason]
- grant [@user] mfa [service] for [minutes] minutes
- decline [@user] mfa [service]
- add mfa [service] with key [key]
- remove mfa [service]
- list mfas
- add admin [@user] with priority [priority]
- remove admin [@user]
- list admins
@member <-> @mfa-bot
@member: request mfa acme for testing something new
@admin <-> @mfa-bot
@mfa-bot: User @member is asking permission to access acme in order to 'testing something new' - grant or decline?
@admin: grant @member mfa acme for 5 minutes
@mfa-bot: You granted @member access to acme for 5 minutes.
@member <-> @mfa-bot
@mfa-bot: Your token for acme is: 123456
MongoDB
Run npm install
Run node server.js --token SLACK_BOT_TOKEN --crypt RANDOM_STRING --mongo MONGO_DB_URL