twoasks

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Command twoasks demonstrates the #1 cross-cutting AI-agent authorization problem — the CONFUSED DEPUTY — and how Legant closes it. One shared "analytics copilot" agent serves two humans: Alice (entitled to finance and sales data) and Bob (sales only). Today an agent runs under its OWN broad identity, so Bob extracts finance data just by asking, and every query is logged under the agent's service account — the human is never named.

With Legant, each request carries an RFC 8693 sub/act token minted for the ACTUAL human, scoped to THAT human's data; the warehouse authorizes every query OFFLINE against the asker's delegated audiences, and the audit names the human.

No database, no Docker:

go run ./examples/twoasks
# or
make demo-twoasks

NOTE (honest): Legant authorizes the QUERY; it does not redact values inside returned rows — column/row masking remains a warehouse-policy/DLP job. It bounds what the (possibly prompt-injected) agent may ask for, and names who asked.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL