Configure Notifications

In this guide, you will enable Guardrails Notifications and configure delivery channels so your teams receive alerts about control state changes, enforcement actions, and other events in your cloud infrastructure.

Prerequisites

Step 1: Enable Notifications

Navigate to Policies and select Actions > New Policy Setting. Search for Turbot > Notifications and select the top-level Notifications policy (under Turbot). Set the resource to Turbot (workspace root) and choose Enabled.

[!IMPORTANT] Set this policy at the Turbot (workspace root) level. There is one global notification configuration for the entire workspace.

Step 2: Configure Delivery Channels

Guardrails supports five delivery channels. You configure the channel URLs and settings in the notification rules themselves (see Filter Rules), but some channels require additional policy-level configuration.

Email

SaaS customers: Email is preconfigured. Notifications are sent from [email protected]. Ask your email administrator to add this address to your organization's allow list to prevent notifications from being filtered as spam.

Enterprise customers: Configure SMTP settings by creating policy settings for:

PolicyDescription
Turbot > Notifications > Email > From Email AddressThe sender address (e.g., [email protected]).
Turbot > Notifications > Email > SMTP EndpointYour SMTP server hostname (e.g., smtp.goliathfederalbank.com).
Turbot > Notifications > Email > SMTP PortThe SMTP port (e.g., 25 or 587).
Turbot > Notifications > Email > SMTP UsernameThe SMTP authentication username. Set to null if not required.
Turbot > Notifications > Email > SMTP PasswordThe SMTP authentication password. Set to null if not required.

Slack

Slack notifications are sent via standard incoming webhooks. No policy-level configuration is needed. You provide the webhook URL directly in your filter rules. See the Slack webhook documentation for setup instructions.

Microsoft Teams

Teams notifications use incoming webhooks. Like Slack, the webhook URL goes in your filter rules. See the Microsoft Teams webhook documentation for setup instructions.

Custom Webhooks

Custom webhook notifications can be sent to any HTTPS endpoint that accepts POST requests with JSON payloads. This enables integration with ticketing platforms, monitoring tools, or any service with a webhook endpoint.

Configure webhook delivery using:

PolicyDescription
Turbot > Notifications > WebhookEnable webhook notifications.
Turbot > Notifications > Webhook > Authorization HeaderOptional authorization header for secure delivery (e.g., Token your-secret-token or Bearer your-api-key).

Webhook URLs are specified in your filter rules.

Event Streams (Firehose)

For streaming events to an AWS SNS topic, see the Firehose guide.

Routing to Profiles

You can route notifications dynamically to Guardrails users based on their permissions on the resource that triggered the event. Unlike static email addresses, profile-based routing resolves at delivery time. Guardrails sends the notification to all users who hold the specified permission level via the email address in their profile.

- rules: "NOTIFY $.oldControl.state:ok $.control.state:alarm"
  profiles:
    - "Account/Owner"
    - "Account/Admin"

The * wildcard is supported. For example, send to anyone with any Account permission level:

- rules: "NOTIFY $.oldControl.state:ok $.control.state:alarm"
  profiles:
    - "Account/*"

CC Lists and Tag-Based Routing

The special Account/CC profile routes notifications to a list of email addresses defined per-account (or per-folder) via the Turbot > Notifications > CC policy. This is useful when you want to notify a distribution list or team that isn't represented as individual Guardrails users with grants.

- rules: "NOTIFY $.oldControl.state:ok $.control.state:alarm"
  profiles:
    - "Account/Owner"
    - "Account/CC"

Static CC list

Set Turbot > Notifications > CC on an account or folder to define a static list of email addresses that receive notifications for any rule that includes Account/CC (or Account/*) in its profiles:

- [email protected]
- [email protected]

Tag-based CC routing

You can also route notifications dynamically based on tags on the resource that triggered the event. This lets different resources notify different people without changing the notification rules themselves.

Three policies control this behavior:

PolicyPurpose
Turbot > Notifications > CCStatic list of CC email addresses (per account/folder).
Turbot > Notifications > CC > TagEnable or disable tag-based CC routing. Set to Skip to disable.
Turbot > Notifications > CC > Tag > NameThe tag key to read email addresses from. Default: turbot_notification_cc.

How it works:

  1. When a notification fires and the rule includes Account/CC (or Account/*) in its profiles, Guardrails checks the Turbot > Notifications > CC > Tag policy.
  2. If tag-based routing is enabled, Guardrails reads the Turbot > Notifications > CC > Tag > Name policy to determine which tag key to look for on the resource.
  3. Guardrails reads that tag from the resource. The tag value is treated as a comma-separated list of email addresses.
  4. Those addresses are added to the notification recipients, in addition to any static addresses from the Turbot > Notifications > CC policy.

Example: To route alarm notifications to the team listed in each resource's notify_email tag:

  1. Set Turbot > Notifications > CC > Tag > Name to notify_email at the workspace root.

  2. Tag your AWS resources:

    notify_email = [email protected],[email protected]
    
  3. Add Account/CC to your notification rule:

    - rules: "NOTIFY $.oldControl.state:ok $.control.state:alarm"
      profiles:
        - "Account/Owner"
        - "Account/CC"
    

When a control on that resource goes to alarm, both the Account/Owner and the addresses from the notify_email tag will receive the notification.

[!NOTE] If the tag does not exist on a resource, or the tag value is empty, the tag-based routing is silently skipped for that resource. The static CC list and other profile recipients are still notified.

Notification Triggers

Control Triggers

Control notifications fire when a control runs. Filter rules narrow these to specific state transitions: most commonly, when a control moves from ok to alarm.

Action Triggers

Action notifications fire when Guardrails modifies a cloud resource through enforcement (e.g., Enforce: Stop unapproved if new). Use filter rules to target specific resource types or action categories.

Individual vs Batch Notifications

By default, notifications are sent individually in real time. When a policy change or bulk resource modification triggers hundreds of notifications to the same recipient in a short period, Guardrails automatically switches to batch mode, sending a single message that summarizes multiple alerts.

The batching threshold is configurable on enterprise environments using the Turbot > Workspace > Notifications Batch Size policy.

[!NOTE] Webhook notifications do not support batching. They are always sent individually.

Step 3: Create Filter Rules

After enabling notifications and configuring channels, you need filter rules to control which events trigger notifications and where they're delivered. See Filter Rules for the complete syntax and examples.

Step 4: Verify

Trigger one of your filter rules by making a change that matches a rule condition (for example, modifying a policy to move a control from ok to alarm). Confirm that the notification arrives at your configured delivery channel.

Troubleshooting

IssueSolution
No notifications receivedVerify the Turbot > Notifications policy is set to Enabled at the workspace root.
Email notifications going to spamAdd [email protected] to your email system's allow list.
Slack/Teams not receivingVerify the webhook URL is correct and the webhook is active in your Slack/Teams workspace.
Too many notificationsNarrow your filter rules. Use the IGNORE action to exclude noisy events.
Further assistanceOpen a Support Ticket

Next Steps