PagerDuty 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 PagerDuty account that can create services or add integrations to an existing service
Step 1: Get a PagerDuty integration key
1
In PagerDuty, go to Services > Service Directory and select New Service.
2
Name the service, for example
Infisical PKI Alerts, choose Events API v2 as the integration, and select Create Service.To use an existing service, open the service and go to Integrations > Add an Integration > Events API v2.
3
Copy the 32-character Integration Key from the service’s Integrations tab.
Anyone with the integration key can send events to your PagerDuty service, 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 > PagerDuty and paste the key from step 1 into Integration key.
2
Optionally, select Send test to send a test event to the PagerDuty service.
3
Select Continue, check the Review step, and select Create Alert.
Your alert is set up. Infisical opens a PagerDuty incident whenever the alert fires.