← All projects

AI security / Data security

AI Access Broker

Give an agent just enough access for one task. Follow a request through a Python broker and OPA policy checks to a narrowly scoped, short-lived grant.

Interactive DemoSynthetic records · hosted demo
The AI agent on the left holds a closed padlock he needs opened, with his other hand empty. The access broker in the centre offers him the single key. Two coworkers watch.

THE IDEA, ILLUSTRATED

One order. One key.

AI agent (left): “Can I just get the master key?”

Access broker (centre): “You asked for one order.”

The closed padlock represents the protected action the agent wants to perform. The broker checks policy before issuing a short-lived, single-use grant for that action. The single key represents the grant; the protected execution path must validate it before allowing access.

A fictional workplace scene.

  1. 01Agent proposal
  2. 02Broker + OPA
  3. 03Scoped grant
  4. 04Synthetic record
Simplified hosted flow. The broker checks policy again when a grant is redeemed.

01 / THE PROBLEM

The problem

An agent may need one record and a few fields while an integration credential can read much more. A model-generated request should not decide its own authority.

02 / THE APPROACH

The approach

Put the authorization boundary in a broker. Bind permission to the selected task and caller, issue a short-lived grant, and recheck the request and current policy before consuming it for a read.

03 / ARCHITECTURE

Architecture

The hosted demo uses temporary Customer A/B test sessions, Gemini-generated proposals, a Python broker and OPA. The records are synthetic. The separate local reference includes MCP and Ollama; those are not part of the hosted path.

04 / IMPLEMENTATION

Inside the implementation

  • The host checks that a model proposal stays within the selected request. A model refusing a request is distinct from a broker denying it.
  • The broker owns grant state and binds redemption to the caller and requested scope. Grants are single-use and expire; possession of a grant alone does not authorize a read.
  • OPA evaluates policy at authorization and redemption. No write tool or arbitrary query endpoint is exposed by this lab.

05 / EVIDENCE

What the evidence supports

The repository records the Customer A/B allow-and-deny matrix for the hosted demo on 4 October 2026. The allowed cases read the matching synthetic record; denied cross-customer cases record zero reads. Those are the project's documented results, not tests rerun for this site. The public page was reachable on 23 October 2026.

06 / LIMITATIONS

Where this stops

  • The public customer selector supplies a test identity. It is not real-user authentication or a live Salesforce integration.
  • Session, grant and usage-budget state is held in memory. This is a demonstration, not a production access service or a durable billing control.
  • Model availability and demo capacity can limit a run. A refusal or no tool call does not establish that the broker blocked a malicious proposal.

A useful review pattern

AI Application Security Assessment ↗

TAKE IT WITH YOU

Separate what an agent asks for from what it is allowed to do.

← Back to the library