Overview
Continum can send real-time alerts to Slack, PagerDuty, Discord, or custom webhooks when compliance violations are detected. Alerts are automatically routed by risk level without any dashboard configuration.Quick Setup
Configure alerts in your SDK:Alert Channels
Slack
Receive team notifications for HIGH and CRITICAL violations. Setup:-
Create a Slack webhook:
- Go to https://api.slack.com/apps
- Create a new app or select existing
- Enable “Incoming Webhooks”
- Add webhook to workspace
- Copy webhook URL
- Add to your configuration:
- CRITICAL violations → Immediate alert
- HIGH violations → Immediate alert
- MEDIUM/LOW violations → Not sent to Slack
PagerDuty
Trigger incidents for CRITICAL violations only. Setup:-
Create a PagerDuty integration:
- Go to Services → Select service
- Integrations → Add integration
- Integration type: “Events API v2”
- Copy integration key
- Add to your configuration:
- CRITICAL violations → Incident created
- HIGH/MEDIUM/LOW violations → Not sent to PagerDuty
Discord
Receive community alerts for MEDIUM and LOW violations. Setup:-
Create a Discord webhook:
- Go to Server Settings → Integrations
- Create webhook
- Copy webhook URL
- Add to your configuration:
- MEDIUM violations → Alert sent
- LOW violations → Alert sent
- HIGH/CRITICAL violations → Not sent to Discord (use Slack/PagerDuty)
Custom Webhook
Send all violations to your own endpoint. Setup:- ALL violations → Sent to webhook (regardless of risk level)
Alert Routing Summary
| Risk Level | Slack | PagerDuty | |
|---|---|---|---|
| CRITICAL | ✅ | ✅ | ✅ |
| HIGH | ✅ | ❌ | ✅ |
| MEDIUM | ❌ | ❌ | ✅ |
| LOW | ❌ | ❌ | ✅ |
Environment Variables
Store webhook URLs in environment variables:Interactive Setup
Use the CLI to set up alerts interactively:- Ask which alert channels you want to configure
- Validate webhook URLs (HTTPS required)
- Store them in
.env - Generate configuration files
Custom Alert Handling
For advanced use cases, handle alerts in your code:Alert Filtering
Filter alerts by violation type:Testing Alerts
Test your alert configuration:Security Best Practices
1. Use HTTPS Only
All webhook URLs must use HTTPS:2. Store Webhooks in Environment Variables
Never commit webhook URLs to version control:3. Rotate Webhooks Regularly
Rotate webhook URLs periodically and update your.env file.
4. Limit Webhook Permissions
Use webhooks with minimal permissions (e.g., post-only for Slack).Troubleshooting
Alerts Not Received
- Check webhook URL: Ensure it’s correct and uses HTTPS
- Verify risk level: Check if violations match routing rules
- Test webhook: Send a test request to verify it works
- Check logs: Look for errors in your application logs
Duplicate Alerts
If you’re receiving duplicate alerts:- Ensure you’re not configuring alerts in multiple places
- Check if you have multiple SDK instances
Alert Delays
Alerts are sent asynchronously and typically arrive within 1-2 seconds of violation detection.Next Steps
Blocking Mode
Block requests based on violations
Violation Handlers
React to violations in code
Dashboard
View all violations in the dashboard
Configuration
Advanced SDK configuration

