- The
API_KEYenvironment variable protects write endpoints (POST, PUT, DELETE) - Never commit
.envfiles or hardcode API keys - Rotate API keys immediately if exposed
- Webhook URLs are stored per-rule in the database
- Webhook URLs contain authentication tokens - treat as secrets
- If a webhook URL is leaked:
- Revoke the webhook in Discord (Server Settings > Integrations > Webhooks)
- Create a new webhook URL
- Update affected rules via API
- Database passwords are in
.env- never commit - Use strong passwords in production
- Restrict database network access (Docker networks, firewall rules)
If you discover a security vulnerability:
- Do not open a public issue
- Email security details privately
- Include steps to reproduce
- Never commit
.envfiles - Use different API keys for dev/staging/production
- Rotate secrets periodically
- Review webhook URLs before committing rule configs
- Use Docker secrets or secret management services in production