Admin
SingleFlow Integration
Configure webhook integrations with SingleFlow (n8n) for automated approval workflows.
SingleFlow Integration
CertAssure integrates with SingleFlow (powered by n8n) to automate approval workflows.
What Is SingleFlow?
SingleFlow is our workflow automation platform that can:
- Send notifications when approvals are requested
- Automatically process approval responses
- Update external systems when policies are approved
- Trigger custom workflows based on policy events
Webhook Events
CertAssure sends webhooks for these events:
| Event | Description |
|---|---|
| Approval Requested | When an approver is added to a policy |
| Approval Response | When an approver approves or rejects |
| Policy Approved | When all required approvals are complete |
Accessing Webhook Configuration
- Click SingleFlow in the Admin section of the sidebar
- You'll see a list of configured webhooks
Creating a Webhook
- Click Create Webhook
- Fill in the configuration:
- Name - A descriptive name (e.g., "Slack Notifications")
- Event Type - Which event triggers this webhook
- Webhook URL - Your SingleFlow/n8n webhook endpoint
- Secret Key - For verifying webhook signatures (auto-generated if blank)
- Custom Headers - Any additional headers required
- Active - Whether the webhook is active
- Click Create Webhook
Webhook Payload
Each webhook sends a JSON payload containing:
{
"event": "approval_requested",
"timestamp": "2025-01-15T10:30:00Z",
"data": {
"policy_id": 123,
"policy_name": "Information Security Policy",
"version": "2.0",
"approver_name": "John Smith",
"approver_email": "[email protected]",
"is_external": false,
"is_required": true,
"requested_by": "Jane Doe"
}
}
Webhook Security
Webhooks are secured using HMAC signatures:
- Each webhook has a secret key
- Payloads are signed with
X-Webhook-Signatureheader - Verify the signature in your n8n workflow
- Format:
sha256=<hmac_signature>
Additional Headers
CertAssure includes these headers with every webhook:
Content-Type: application/jsonX-Webhook-Event: <event_type>X-Webhook-Timestamp: <iso8601_timestamp>X-Webhook-Signature: <hmac_signature>
Viewing Delivery Logs
- Open a webhook for editing
- The Recent Deliveries section shows:
- Delivery status (Success, Failed, Pending)
- HTTP response code
- When it was sent
- Click Retry on failed deliveries
Retrying Failed Webhooks
If a webhook fails:
- Open the webhook configuration
- Find the failed delivery
- Click Retry
- The webhook will be re-sent immediately
Testing Webhooks
To verify your webhook is configured correctly:
- Create a test workflow in n8n that logs received webhooks
- Add an approver to a policy
- Check if the webhook was received
- Review the delivery log in CertAssure
Common Use Cases
Email Notifications:
- Send emails when approval is requested
- Alert stakeholders when policies are approved
Slack/Teams Integration:
- Post to channels when approvals are needed
- Notify when policies are rejected
Ticketing Systems:
- Create tickets for approval tasks
- Update ticket status on response
Document Management:
- Archive approved policies externally
- Sync with SharePoint or Google Drive
Best Practices
- Use descriptive webhook names
- Test webhooks before going live
- Monitor delivery logs regularly
- Rotate secret keys periodically
- Have fallback notifications for failed webhooks