Package Information
Downloads: 101 weekly / 183 monthly
Latest Version: 0.1.1
Author: Hernan Hegykozi
Documentation
n8n-nodes-security-gate
This is an n8n community node that validates an input value against a secure token stored in credentials. It acts as a logic gate with two outputs: Valid and Invalid.
Features
- Secure Validation: Compare sensitive values (like API keys or secrets) without exposing them in the workflow execution data.
- Dual Outputs: Route your workflow based on whether the validation succeeded or failed.
- Metadata Support: Maintains
pairedIteminformation for proper data lineage.
Installation
Follow the installation guide in the n8n community nodes documentation.
For local development:
npm install
npm run build
npm link
Credentials
Security Token
Store your secret key in the Security Token credential.
- Token: The secret string against which the input will be compared.
Usage
Parameters
- Value to Validate: The expression or string to compare (e.g.,
{{ $json.headers["x-api-key"] }}). - Valid Response Override: (Optional) Multiline text or JSON. If provided, this will be returned on Output 0.
- Invalid Response Override: (Optional) Multiline text or JSON. If provided, this will be returned on Output 1.
Outputs
- Valid (Top): Items that strictly match (===) the credential token. Returns original data or override.
- Invalid (Bottom): Items that do not match or where an error occurred. Returns original data or override.