Quickstart
Secure enforcement
Put the authorization check on the real execution path, and avoid the common ways checks get bypassed.
ReQlo returns decisions. Security comes from enforcing them in the one place every execution of an action must pass through. This page shows where that place is and how integrations go wrong.
Where the check goes
The check belongs in trusted server code, immediately before the side effect, wrapping the exact operation that runs.
01
Propose
The model requests a tool call
02
Verify
Resolve the session and load trusted resource facts
03
Authorize
Send the exact action to ReQlo
04
Execute or stop
Run only on allow; deny, approval and errors cannot proceed
Pattern (TypeScript)
import { Reqlo } from "@reqlo/sdk";
const reqlo = new Reqlo({ apiKey: process.env.REQLO_API_KEY! });
async function executeTool(call: ToolCall, session: VerifiedSession) {
const plan = await buildPlan(call, session); // validated, typed, authoritative
await reqlo.enforce(plan.authorizationRequest); // throws on deny, error or timeout
return plan.run(); // runs the same plan that was checked
}Common bypass mistakes
| Mistake | Why it fails | Do this instead |
|---|---|---|
| Asking the model to follow the rules | Prompt injection or a confused model ignores instructions | Check in server code the model can't skip |
| Checking in the browser or client | Users can modify or skip client code | Check on the server that holds the credential |
| Trusting a subject ID the model wrote | The model can be tricked into acting as someone else | Take the subject from the verified session |
| Checking one thing, executing another | Arguments change between the check and the call | Build the request and execution from one validated object |
| Treating errors or timeouts as allow | An outage or bad request becomes a bypass | Only decision: "allow" executes. Everything else stops. |
| Unprotected side doors | Batch jobs, retries, admin endpoints and webhooks skip the check | Route every execution path through the same executor |
| Caching allow decisions | Revocations and policy changes are ignored | Check every execution; see Offline and outage behavior |
| Logging the decision but not blocking | Records a problem without preventing it | Make execution conditional on the decision |
| Sending model-generated values as trusted attributes | Policies then trust attacker-controlled data | Look facts up in your database; register model-supplied fields with provenance: caller so reviewers can see them (Custom attributes) |
Checklist
- Every action with side effects goes through one executor that calls ReQlo.
- Subject identity comes from a verified session or signed claim.
- Resource attributes come from your database, not from the model.
- Only an explicit allow executes. Errors, timeouts and denies stop the action.
- The executed operation is exactly the one that was authorized.
- There is a test proving a denied action does not execute.
Something wrong or unclear? Report an issue with this page.