Block 1 - Make Slack Verif Token
- Type / Role
- n8n-nodes-base.code - code
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
Description This template will help you verify that incoming calls from a Slack webhook actually come from Slack and not some unknown third party services. It is mainly used to prevent attacks from...
n8n-nodes-base.code, n8n-nodes-base.crypto, n8n-nodes-base.if, n8n-nodes-base.stopanderror, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.merge
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Henri.
Original n8n.io sourceThis template will help you verify that incoming calls from a Slack webhook actually come from Slack and not some unknown third-party services. It is mainly used to prevent attacks from malicious bots or individuals. This is a Sub-Workflow, so it should be used inside the main workflow that contains the webhook listening for Slack requests.
You should set the Slack Signing Secret that you can find on your Slack App dashboard in the general tab. It should be located under the following URL:
https://api.slack.com/apps/[SLACK_APP_ID]/general
The input should be the received Slack request. This workflow should then be placed directly after the Slack Webhook.
If the signature was verified successfully, we return a key verified_signature set to true along with data from the Slack request itself.
When the signature could not be verified, we raise an error. You can handle this case in your main workflow by using an Error Workflow or by changing your node settings and choosing some actions in case of an error.
replace by replaceAll in JS code in case of several arguments.encodeURIComponent does not take into accountThis catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Slack webhook - verify signature |
|---|---|
| Complexity | intermediate |
| Nodes | 12 |
| Categories | SecOps |
| Author | Henri |
| Published | 09 Dec 2023 |
Use the JSON export at /data/workflows/2009/2009.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Description This template will help you verify that incoming calls from a Slack webhook actually come from Slack and not some unknown third party services. It is mainly used to prevent attacks from...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps use case.