Veripass Policy Evaluation
Evaluates access policies against Veripass Identity Contract.
Asks Veripass for a policy decision on an action over a resource and routes to allow, challenge or deny according to the decision in the response.
How it works
- Resolves the config; leaves through
errorwhenconnection_idoractionis empty. - Resolves the credential on the server: its configuration gives the Veripass base URL (
urlorbaseUrl) and optional extraheaders; its secret gives the authentication. - Sends
POST <base URL>/api/identity/contract/evaluatewith the body{ policy_set, resource, action, context }(contextdefaults to{}). - Reads
decision,reasonandobligationsfrom the response body. - Routes
allowtoallowandchallengetochallenge. Any other value, including a missing one, goes todenywithdecision: "deny"andreasondefaulting toPolicy denied. - A network error or a non-2xx answer leaves through
errorwith the message and the response body.
In a workflow
The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.
{
"node_id": "node-authorize-approval",
"label": "Authorize invoice approval",
"operator_slug": "veripass.evaluate",
"operator_version": "1.0.0",
"config": {
"connection_id": "pi-credential-xxxx",
"policy_set": "finance-approvals",
"resource": "invoice:{{ $json.invoice_id }}",
"action": "approve",
"context": "{{ $json.request_context }}"
}
}{
"ok": true,
"port": "allow",
"data": {
"decision": "allow",
"reason": "Role approver may approve invoices",
"obligations": []
}
}Configuration
-
connection_idstring Required -
Credential for Veripass policy evaluation. Accepts credentials of type `api-key` (Veripass API key).
-
policy_setstring Optional -
Policy Set ID or Name
-
resourcestring Optional -
Resource identifier
-
actionstring Required -
Action (read, write, etc.)
-
contextobject Optional -
Additional context (user_id, IP, etc.)
Behaviour in the code
What the implementation does with these keys beyond what the schema says.
-
connection_id - The credential configuration must include the Veripass base URL as
url(orbaseUrl);headersthere are added to the request. Authentication comes from the secret: an object withtokensendsAuthorization: Bearer <token>, an object withapiKeysendsx-api-key. A plain string secret adds no authentication header. -
context - Sent as-is. Use a pure expression such as
{{ $json.request_context }}to pass an object; mixed text arrives as a string.
Output ports
allow default Veripass answered decision: "allow".
{
"decision": "allow",
"reason": "Role approver may approve invoices",
"obligations": []
}challenge Veripass answered decision: "challenge" (for example step-up authentication).
{
"decision": "challenge",
"reason": "Step-up authentication required",
"obligations": [
"mfa"
]
}deny Veripass answered deny, any other value, or no decision at all.
{
"decision": "deny",
"reason": "Policy denied"
}error Missing connection_id or action, the credential cannot be resolved, or the HTTP call failed.
{
"error": "Request failed with status code 401",
"response": {
"message": "Unauthorized"
}
}In expressions
What a later node can read from this node's output with $("Veripass Policy Evaluation").item.json.<path> (write your node's label instead of Veripass Policy Evaluation). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through allow, from the output shown in Ports.
| Expression | Editor | Worker |
|---|---|---|
$("Veripass Policy Evaluation").item.json.decision | ||
$("Veripass Policy Evaluation").item.json.reason | ||
$("Veripass Policy Evaluation").item.json.obligations |
Errors
| Message | Port | Cause and fix |
|---|---|---|
connection_id is required | error | No Veripass credential is selected. |
action is required | error | action is empty or its expression resolved to nothing. |
Request failed with status code <status> | error | Veripass rejected the call: 401/403 usually means the credential secret does not carry a usable token or apiKey; 404 means the base URL is wrong. response holds the body Veripass returned. |
Failed to resolve connection <connection_id>: <detail> | error | The credential id does not exist or is not available to this workflow. |
Input contract
-
connection_idstring Required -
policy_setstring Optional -
resourcestring Optional -
actionstring Required -
contextobject Optional
Output contract
-
decisionstring Optional -
reasonstring Optional -
obligationsarray Optional
Contracts (JSON Schema)
The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.
{
"slug": "veripass.evaluate",
"name": "Veripass Policy Evaluation",
"category": "identity",
"version": "1.0.0",
"description": "Evaluates access policies against Veripass Identity Contract.",
"capabilities": [
"authz",
"policy",
"veripass",
"identity"
],
"config_schema": {
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"title": "Veripass Credential",
"description": "Credential for Veripass policy evaluation. Accepts credentials of type `api-key` (Veripass API key).",
"ui_widget": "connection_picker",
"ui_options": {
"credential_types": [
"api-key"
],
"types": [
"veripass",
"http"
]
}
},
"policy_set": {
"type": "string",
"description": "Policy Set ID or Name"
},
"resource": {
"type": "string",
"description": "Resource identifier"
},
"action": {
"type": "string",
"description": "Action (read, write, etc.)"
},
"context": {
"type": "object",
"description": "Additional context (user_id, IP, etc.)"
}
},
"required": [
"connection_id",
"action"
]
},
"input_contract_schema": {
"type": "object",
"properties": {
"connection_id": {
"type": "string"
},
"policy_set": {
"type": "string"
},
"resource": {
"type": "string"
},
"action": {
"type": "string"
},
"context": {
"type": "object"
}
},
"required": [
"connection_id",
"action"
]
},
"output_contract_schema": {
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"allow",
"deny",
"challenge"
]
},
"reason": {
"type": "string"
},
"obligations": {
"type": "array"
}
}
},
"ports": [
{
"port_id": "allow",
"label": "Allow",
"description": "Access granted",
"is_default": true,
"supports_condition": true
},
{
"port_id": "deny",
"label": "Deny",
"description": "Access denied",
"is_default": false,
"supports_condition": true
},
{
"port_id": "challenge",
"label": "Challenge",
"description": "MFA or step-up required",
"is_default": false,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "Evaluation error",
"is_default": false,
"supports_condition": false
}
],
"execution_mode": "async",
"required_resources": [],
"compatible_worker_pools": [
"identity-worker",
"standard"
],
"tags": [
"veripass",
"security",
"policy"
],
"is_stateful": false,
"publisher": {
"identity": "org_veripass",
"profile": {
"name": "Veripass",
"verified": true,
"url": "https://me.veripass.com/veripass",
"logo_url": null
}
}
}{
"type": "object",
"properties": {
"connection_id": {
"type": "string",
"title": "Veripass Credential",
"description": "Credential for Veripass policy evaluation. Accepts credentials of type `api-key` (Veripass API key).",
"ui_widget": "connection_picker",
"ui_options": {
"credential_types": [
"api-key"
],
"types": [
"veripass",
"http"
]
}
},
"policy_set": {
"type": "string",
"description": "Policy Set ID or Name"
},
"resource": {
"type": "string",
"description": "Resource identifier"
},
"action": {
"type": "string",
"description": "Action (read, write, etc.)"
},
"context": {
"type": "object",
"description": "Additional context (user_id, IP, etc.)"
}
},
"required": [
"connection_id",
"action"
]
}{
"type": "object",
"properties": {
"connection_id": {
"type": "string"
},
"policy_set": {
"type": "string"
},
"resource": {
"type": "string"
},
"action": {
"type": "string"
},
"context": {
"type": "object"
}
},
"required": [
"connection_id",
"action"
]
}{
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"allow",
"deny",
"challenge"
]
},
"reason": {
"type": "string"
},
"obligations": {
"type": "array"
}
}
}[
{
"port_id": "allow",
"label": "Allow",
"description": "Access granted",
"is_default": true,
"supports_condition": true
},
{
"port_id": "deny",
"label": "Deny",
"description": "Access denied",
"is_default": false,
"supports_condition": true
},
{
"port_id": "challenge",
"label": "Challenge",
"description": "MFA or step-up required",
"is_default": false,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "Evaluation error",
"is_default": false,
"supports_condition": false
}
]Execution
- Execution
async- Stateful
- No
- Credentials
- Resolved on the server from
connection_id; the secret never reaches the workflow. - Capabilities
authzpolicyveripassidentity- Tags
veripasssecuritypolicy
Notes and limits
- Unknown or missing decisions route to
deny, so the node fails closed. - The returned envelopes carry no
okfield, and no request timeout is set on the call. - Leaving through
errordoes not fail the run: the engine follows the edges wired toerror, and if there are none the branch simply ends.
Reviewed against the orchestrator code · 31e874b · 2026-11-26