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
- Infisical UI
- API
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: Select Continue.
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.
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.
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.