Skip to main content

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:
  1. 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
  2. Add to your configuration:
Alert format:
Routing:
  • CRITICAL violations → Immediate alert
  • HIGH violations → Immediate alert
  • MEDIUM/LOW violations → Not sent to Slack

PagerDuty

Trigger incidents for CRITICAL violations only. Setup:
  1. Create a PagerDuty integration:
    • Go to Services → Select service
    • Integrations → Add integration
    • Integration type: “Events API v2”
    • Copy integration key
  2. Add to your configuration:
Incident format:
Routing:
  • CRITICAL violations → Incident created
  • HIGH/MEDIUM/LOW violations → Not sent to PagerDuty

Discord

Receive community alerts for MEDIUM and LOW violations. Setup:
  1. Create a Discord webhook:
    • Go to Server Settings → Integrations
    • Create webhook
    • Copy webhook URL
  2. Add to your configuration:
Alert format:
Routing:
  • 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:
Payload format:
Routing:
  • ALL violations → Sent to webhook (regardless of risk level)

Alert Routing Summary

Environment Variables

Store webhook URLs in environment variables:

Interactive Setup

Use the CLI to set up alerts interactively:
The CLI will:
  • 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

  1. Check webhook URL: Ensure it’s correct and uses HTTPS
  2. Verify risk level: Check if violations match routing rules
  3. Test webhook: Send a test request to verify it works
  4. 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