Skip to main content

Pipedream

The Truslay app for Pipedream gates the risky step of a workflow. The Evaluate Action action asks the firewall about one intent — an incoming webhook, a scrape, a database write, a checkout or an agent navigation — and returns ALLOW, REVIEW or BLOCK so the next steps can branch.

The app is implemented with its own branding (truslay.app.mjs + logo), but the truslay slug is not registered in Pipedream yet. Until it is, use the project-local path below.

Connect the account​

The app is key-based: one secret field, api_key, stored by Pipedream as a connected account and never exposed in the workflow.

The app runs in sandbox mode by default: it decides locally, never opens the network, so a placeholder key is enough while you build the workflow. Switching to live is a deploy-time decision in truslay.app.mjs (firewallMode: "live"), not a field the workflow author can widen.

Add the action​

Search for Evaluate Action (key truslay-evaluate-action), pick the connected account and choose:

PropNotes
Intentwebhook_incoming, scraping_request, database_write, checkout, agent_navigation
Target URLOptional, defaults to pipedream_workflow
Shield IDOptional; the account's default shield is used when empty

The action returns the full verdict object:

{
"verdict": "ALLOW",
"reason": "sandbox_mode",
"latencyMs": 0,
"auditId": "trl_9f2c4a71…"
}

Guard the next steps​

Add an if step on steps.evaluate_action.verdict === "ALLOW", or a Node.js step that exits the workflow on anything else:

if (steps.evaluate_action.verdict !== "ALLOW") {
$.flow.exit(`Blocked by Truslay: ${steps.evaluate_action.reason}`);
}

REVIEW is not an approval. The SDK has no approval channel, so anything other than ALLOW must stop the workflow.

Use it before the app is registered​

The action file is an ordinary Pipedream component. In a Pipedream project:

  1. Put actions/evaluate-action/evaluate-action.mjs in the project's components/truslay/actions/evaluate-action/ folder.
  2. Put truslay.app.mjs one level up, in components/truslay/.
  3. Add "@truslay/sdk": "^2.1.0" to the project's package.json.

defineComponent is a Pipedream runtime global, so the file only runs inside Pipedream; node --check is enough for local syntax validation.

Live mode is fail-closed

If verdict is always BLOCK in live mode, check that the connected account holds a valid key for the same environment as the firewall, and that the execution can reach the network. An unreachable firewall returns BLOCK instead of letting the action through.