← All Frameworks

n8n Guardrails

Workflow automation guardrails (coming soon)

TypeScript

n8n is a workflow automation platform with 50k+ GitHub stars. APort guardrails will integrate as a pre-action node that evaluates tool calls against OAP policies before workflow steps execute.

Quick Start

1. Install guardrail & create passport

setup
npx @aporthq/aport-agent-guardrails n8n

2. Configure the integration

code
# Setup (custom node coming soon)
npx @aporthq/aport-agent-guardrails n8n

# In your workflow: add APort Guardrail node
# before action nodes; branch on allow/deny

Test the authorization boundary

Runtime integration pending: this is a policy example. The setup command prepares configuration; it does not provide runtime enforcement for this target yet.

Installer target: n8n. Aliases: none; use the target ID.

n8n setup
npx @aporthq/aport-agent-guardrails n8n

Denied-action example

Read .env.aport-smoke-test with a passport that blocks .env* paths.

Expected policy result: deny. Use an empty test file. In warn mode the runtime may continue; enforce mode must stop the read. Hosted mode can record the decision; local mode does not prove hosted audit persistence.

Expected policy result, illustrative
{
  "policy_id": "data.file.read.v1",
  "allow": false,
  "reason": "oap.blocked_pattern"
}

How It Works

1

Passport

Your agent gets an OAP passport declaring its identity, capabilities, and operational limits.

2

Evaluate

Before every tool call, the guardrail evaluates it against the passport's policy. Locally or via hosted API.

3

Decision

Allow or deny with structured OAP reason codes. Signed decisions create an auditable trail.

Frequently Asked Questions

When will n8n guardrails be available?

The n8n custom node is under development. The passport wizard and config setup are available today. Full runtime enforcement is coming soon.

Ready to secure your n8n agents?

Review the setup command and denied-action check before enforcing policy.

Start free for local or individual setup. Upgrade to Team for hosted org audit, signed decisions, GitHub guardrails, and shared enforcement across your team.