-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnotifications.yml
More file actions
45 lines (38 loc) · 1.66 KB
/
notifications.yml
File metadata and controls
45 lines (38 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Notification configuration for DriftHound
# Configure notification channels and their default settings
default: &default
# Notify on first check when drift or error is detected (unknown → drift/error)
# By default, first checks are skipped to establish a baseline
# Set to true to receive notifications immediately on first drift/error
notify_on_first_check: <%= ENV.fetch('NOTIFY_ON_FIRST_CHECK', 'false') == 'true' %>
slack:
# Enable or disable Slack notifications globally
enabled: <%= ENV.fetch('SLACK_NOTIFICATIONS_ENABLED', 'false') == 'true' %>
# Slack Bot Token (starts with xoxb-)
# Get this from https://api.slack.com/apps → Your App → OAuth & Permissions
token: <%= ENV['SLACK_BOT_TOKEN'] %>
# Default channel for drift notifications
# Can be overridden per-project or per-environment
default_channel: "<%= ENV.fetch('SLACK_DEFAULT_CHANNEL', '#infrastructure-drift') %>"
development:
<<: *default
slack:
# In development, you might want to use a test channel
enabled: <%= ENV.fetch('SLACK_NOTIFICATIONS_ENABLED', 'false') == 'true' %>
token: <%= ENV['SLACK_BOT_TOKEN'] %>
default_channel: "<%= ENV.fetch('SLACK_DEFAULT_CHANNEL', '#drift-dev') %>"
test:
<<: *default
notify_on_first_check: false
slack:
# Disable notifications in tests by default
enabled: false
token: "xoxb-test-token"
default_channel: "#test-channel"
production:
<<: *default
slack:
# Production settings
enabled: <%= ENV.fetch('SLACK_NOTIFICATIONS_ENABLED', 'false') == 'true' %>
token: <%= ENV['SLACK_BOT_TOKEN'] %>
default_channel: "<%= ENV.fetch('SLACK_DEFAULT_CHANNEL', '#infrastructure-drift') %>"