A Teleport plugin that sends real-time Discord webhook notifications for access requests, providing instant visibility into access management events.
- Real-time monitoring of Teleport access requests
- Discord webhook notifications for:
- New access requests
- Approved access requests
- Denied access requests
- Go 1.21+
- Teleport cluster
- Discord webhook URL
- Teleport authentication credentials (auth.pem)
Create a .env
file with the following environment variables:
Variable | Description | Example |
---|---|---|
PROXY_ADDR |
Teleport proxy address | teleport.example.com:443 |
DISCORD_WEBHOOK_URL |
Discord webhook URL for notifications | https://discord.com/api/webhooks/... |
WATCHER_LIST |
Command to list watchers | tctl |
AUTH_PEM |
Base64-encoded Teleport authentication credentials | LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVkt... |
- Clone the repository
- Copy
.env.example
to.env
and configure your settings - Build the application:
make build
make run
make setup
make build
: Compile the applicationmake test
: Run testsmake lint
: Run code lintersmake run
: Build and run the applicationmake help
: Show all available commands
teleport-discord-bot/
├── cmd/
│ └── teleport-discord-bot/
│ └── main.go # Application entry point
├── internal/
│ ├── config/ # Configuration management
│ ├── discord/ # Discord webhook client
│ ├── teleport/ # Teleport event monitoring
├── go.mod
└── README.md
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
Apache License 2.0