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

  1. Click SingleFlow in the Admin section of the sidebar
  2. You'll see a list of configured webhooks

Creating a Webhook

  1. Click Create Webhook
  2. 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
  3. 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:

  1. Each webhook has a secret key
  2. Payloads are signed with X-Webhook-Signature header
  3. Verify the signature in your n8n workflow
  4. Format: sha256=<hmac_signature>

Additional Headers

CertAssure includes these headers with every webhook:

  • Content-Type: application/json
  • X-Webhook-Event: <event_type>
  • X-Webhook-Timestamp: <iso8601_timestamp>
  • X-Webhook-Signature: <hmac_signature>

Viewing Delivery Logs

  1. Open a webhook for editing
  2. The Recent Deliveries section shows:
    • Delivery status (Success, Failed, Pending)
    • HTTP response code
    • When it was sent
  3. Click Retry on failed deliveries

Retrying Failed Webhooks

If a webhook fails:

  1. Open the webhook configuration
  2. Find the failed delivery
  3. Click Retry
  4. The webhook will be re-sent immediately

Testing Webhooks

To verify your webhook is configured correctly:

  1. Create a test workflow in n8n that logs received webhooks
  2. Add an approver to a policy
  3. Check if the webhook was received
  4. 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