Skip to main content
A Slack channel on a certificate alert posts to a Slack channel through an Incoming Webhook whenever the alert fires.
Slack channels are available under Infisical’s Enterprise plan. If you’re self-hosting Infisical, contact [email protected] to purchase an enterprise license.

Prerequisites

  • The Certificate Management Admin role to create an organization-wide alert, or the Admin application role to create an application alert
  • A Slack workspace where you can create apps

Step 1: Create a Slack incoming webhook

1
Go to the Slack API Apps page, select Create New App, then select From scratch.
2
Name the app, for example Infisical PKI Alerts, pick your workspace, and select Create App.
3
In the app settings, go to Incoming Webhooks and turn on Activate Incoming Webhooks.
4
Select Add New Webhook to Workspace, pick the Slack channel for alerts, and select Allow.
5
Copy the Webhook URL.
Anyone with the webhook URL can post to your Slack channel, so store it like a secret.

Step 2: Create the alert

1
Open the alert form:
  • For an organization-wide alert, go to Certificate Manager > Settings, select the Alerts tab, then select Create Alert
  • For an application alert, go to Certificate Manager > Applications and select your application, then select the Settings tab and select Create Alert in the Alerts section
2
Select the Alert Type, then enter an Alert Name and an optional Description. An application can have one alert for each event, so to notify more places about the same event, add more channels to that alert.
3
For an expiration alert, enter Alert Before as a number and a unit. For example: 30d or 2w, up to 365 days.
To get a reminder every day, turn on Repeat daily until expiry. Otherwise, the alert repeats on a schedule based on Alert Before.
Select Continue.
4
For an organization-wide alert, on the Filters step, optionally select Add Filter to narrow the certificates the alert covers, then select Continue. Application alerts and signer certificate expiration alerts skip this step.
To add this channel to an existing alert instead, edit the alert and go to its Channels step.
On the Channels step, add the Slack channel:
1
Select Add Channel > Slack and paste the URL from step 1 into Webhook URL. The URL must start with https://hooks.slack.com.
2
Optionally, select Send test to send a test message to the Slack channel.
3
Select Continue, check the Review step, and select Create Alert.
Your alert is set up. Infisical posts to the Slack channel whenever the alert fires.

Message format

Each Slack message includes the alert’s summary, up to two certificates, and a View in Infisical button. For an application alert, the button opens the application. For an organization-wide alert, it opens the Inventory page, or the Signers page for a signer certificate expiration alert. The message color shows the alert’s severity: